Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tome
Tales of MajEyal
Commits
173d1ab6
Commit
173d1ab6
authored
12 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
test
git-svn-id:
http://svn.net-core.org/repos/t-engine4@6516
51575b47-30f0-44d4-a5cc-537603b46e54
parent
bf894ce8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/data/gfx/particles/mindsear.lua
+75
-0
75 additions, 0 deletions
game/modules/tome/data/gfx/particles/mindsear.lua
game/modules/tome/data/gfx/particles/shout.lua
+75
-0
75 additions, 0 deletions
game/modules/tome/data/gfx/particles/shout.lua
with
150 additions
and
0 deletions
game/modules/tome/data/gfx/particles/mindsear.lua
0 → 100644
+
75
−
0
View file @
173d1ab6
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
-- Make the 2 main forks
local
distortion_factor
=
1
+
(
distortion_factor
or
0
.
1
)
local
life
=
life
or
10
local
fullradius
=
(
radius
or
0
.
5
)
*
engine
.
Map
.
tile_w
local
basespeed
=
fullradius
/
life
local
points
=
{}
for
fork_i
=
1
,
nb_circles
or
5
do
local
size
=
2
local
r
=
10
local
a
=
0
local
firstspeed
=
rng
.
float
(
basespeed
,
basespeed
*
distortion_factor
)
points
[
#
points
+
1
]
=
{
size
=
size
,
dir
=
a
+
math.rad
(
90
),
vel
=
firstspeed
,
x
=
math.cos
(
a
)
*
r
,
y
=
math.sin
(
a
)
*
r
,
prev
=-
1
}
for
i
=
1
,
35
do
local
a
=
math.rad
(
i
*
10
)
points
[
#
points
+
1
]
=
{
size
=
size
,
dir
=
a
+
math.rad
(
90
),
vel
=
rng
.
float
(
basespeed
,
basespeed
*
distortion_factor
),
x
=
math.cos
(
a
)
*
r
,
y
=
math.sin
(
a
)
*
r
,
prev
=#
points
-
1
}
end
points
[
#
points
+
1
]
=
{
size
=
size
,
dir
=
a
+
math.rad
(
90
),
vel
=
firstspeed
,
x
=
math.cos
(
a
)
*
r
,
y
=
math.sin
(
a
)
*
r
,
prev
=#
points
-
1
}
end
local
nbp
=
#
points
-- Populate the lightning based on the forks
return
{
engine
=
core
.
particles
.
ENGINE_LINES
,
generator
=
function
()
local
p
=
table.remove
(
points
,
1
)
return
{
life
=
life
,
trail
=
p
.
prev
,
size
=
p
.
size
,
sizev
=
0
,
sizea
=
0
,
x
=
p
.
x
,
xv
=
0
,
xa
=
0
,
y
=
p
.
y
,
yv
=
0
,
ya
=
0
,
dir
=
p
.
dir
,
dirv
=
0
,
dira
=
0
,
vel
=
p
.
vel
,
velv
=
0
,
vela
=
0
,
r
=
rng
.
float
(
0
.
8
,
1
),
rv
=
0
,
ra
=
0
,
g
=
rng
.
float
(
0
.
8
,
1
),
gv
=
0
,
ga
=
0
,
b
=
0
,
bv
=
0
,
ba
=
0
,
a
=
1
,
av
=
0
,
aa
=
-
0
.
0005
,
}
end
,
},
function
(
self
)
if
nbp
>
0
then
self
.
ps
:
emit
(
36
)
nbp
=
nbp
-
36
end
end
,
nbp
,
"particles_images/beam"
This diff is collapsed.
Click to expand it.
game/modules/tome/data/gfx/particles/shout.lua
0 → 100644
+
75
−
0
View file @
173d1ab6
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
-- Make the 2 main forks
local
distortion_factor
=
1
+
(
distortion_factor
or
0
.
1
)
local
life
=
life
or
30
local
fullradius
=
(
radius
or
5
)
*
engine
.
Map
.
tile_w
local
basespeed
=
fullradius
/
life
local
points
=
{}
for
fork_i
=
1
,
nb_circles
or
5
do
local
size
=
2
local
r
=
10
local
a
=
0
local
firstspeed
=
rng
.
float
(
basespeed
,
basespeed
*
distortion_factor
)
points
[
#
points
+
1
]
=
{
size
=
size
,
dir
=
a
+
math.rad
(
90
),
vel
=
firstspeed
,
x
=
math.cos
(
a
)
*
r
,
y
=
math.sin
(
a
)
*
r
,
prev
=-
1
}
for
i
=
1
,
35
do
local
a
=
math.rad
(
i
*
10
)
points
[
#
points
+
1
]
=
{
size
=
size
,
dir
=
a
+
math.rad
(
90
),
vel
=
rng
.
float
(
basespeed
,
basespeed
*
distortion_factor
),
x
=
math.cos
(
a
)
*
r
,
y
=
math.sin
(
a
)
*
r
,
prev
=#
points
-
1
}
end
points
[
#
points
+
1
]
=
{
size
=
size
,
dir
=
a
+
math.rad
(
90
),
vel
=
firstspeed
,
x
=
math.cos
(
a
)
*
r
,
y
=
math.sin
(
a
)
*
r
,
prev
=#
points
-
1
}
end
local
nbp
=
#
points
-- Populate the lightning based on the forks
return
{
engine
=
core
.
particles
.
ENGINE_LINES
,
generator
=
function
()
local
p
=
table.remove
(
points
,
1
)
return
{
life
=
life
,
trail
=
p
.
prev
,
size
=
p
.
size
,
sizev
=
0
,
sizea
=
0
,
x
=
p
.
x
,
xv
=
0
,
xa
=
0
,
y
=
p
.
y
,
yv
=
0
,
ya
=
0
,
dir
=
p
.
dir
,
dirv
=
0
,
dira
=
0
,
vel
=
p
.
vel
,
velv
=
0
,
vela
=
0
,
r
=
rng
.
float
(
0
.
8
,
1
),
rv
=
0
,
ra
=
0
,
g
=
rng
.
float
(
0
.
8
,
1
),
gv
=
0
,
ga
=
0
,
b
=
0
,
bv
=
0
,
ba
=
0
,
a
=
1
,
av
=
0
,
aa
=
-
0
.
001
,
}
end
,
},
function
(
self
)
if
nbp
>
0
then
self
.
ps
:
emit
(
36
)
nbp
=
nbp
-
36
end
end
,
nbp
,
"particles_images/beam"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment