Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Otowa Kotori
Tales of MajEyal
Commits
42f03acc
Commit
42f03acc
authored
9 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
plopo
parent
c955b2cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/gfx/particles/hotkey_feedback.lua
+75
-0
75 additions, 0 deletions
game/modules/tome/data/gfx/particles/hotkey_feedback.lua
with
75 additions
and
0 deletions
game/modules/tome/data/gfx/particles/hotkey_feedback.lua
0 → 100644
+
75
−
0
View file @
42f03acc
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2015 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
base_size
=
64
w
=
w
*
0
.
90
h
=
h
*
0
.
90
local
hw
=
w
/
2
local
hh
=
h
/
2
local
corners
=
{
{
x
=
hw
,
y
=
-
hh
,
xv
=
0
,
yv
=
1
,},
{
x
=
hw
,
y
=
hh
,
xv
=-
1
,
yv
=
0
,},
{
x
=
-
hw
,
y
=
hh
,
xv
=
0
,
yv
=-
1
,},
{
x
=
-
hw
,
y
=
-
hh
,
xv
=
1
,
yv
=
0
,},
}
local
nb
=
0
local
cornerid
=
1
local
posid
=
0
return
{
blend_mode
=
core
.
particles
.
BLEND_SHINY
,
generator
=
function
()
local
corner
=
corners
[
cornerid
]
cornerid
=
cornerid
+
1
if
cornerid
>
4
then
cornerid
=
1
posid
=
posid
+
1
end
if
posid
>
1
then
posid
=
0
end
local
life
=
12
local
size
=
9
local
sizev
=
-
0
.
5
*
size
/
life
local
x
,
y
=
corner
.
x
,
corner
.
y
local
speed
=
w
/
life
-- if posid == 1 then
-- size = size + sizev
-- life = life - 1
-- x = x + speed * corner.xv
-- y = y + speed * corner.yv
-- end
return
{
trail
=
0
,
life
=
life
,
size
=
size
,
sizev
=
sizev
,
sizea
=
0
,
x
=
x
,
xv
=
speed
*
corner
.
xv
,
xa
=
0
,
y
=
y
,
yv
=
speed
*
corner
.
yv
,
ya
=
0
,
dir
=
0
,
dirv
=
0
,
dira
=
0
,
vel
=
0
,
velv
=
0
,
vela
=
0
,
r
=
rng
.
range
(
160
,
255
)
/
255
,
rv
=
0
,
ra
=
0
,
g
=
rng
.
range
(
160
,
255
)
/
255
,
gv
=
0
,
ga
=
0
,
b
=
rng
.
range
(
20
,
85
)
/
255
,
gv
=
0
,
ga
=
0
,
a
=
rng
.
float
(
0
.
3
,
0
.
7
),
av
=
0
,
aa
=
0
,
}
end
,
},
function
(
self
)
if
nb
<=
10
then
self
.
ps
:
emit
(
4
)
end
nb
=
nb
+
1
end
,
40
,
nil
,
true
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