-
Notifications
You must be signed in to change notification settings - Fork 1
/
mod-notes.txt
163 lines (95 loc) · 2.18 KB
/
mod-notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
Aquaria
Shortcuts: http://www.bit-blot.com/aquaria/mods/leveleditor.html
F2 - save
Tiles: F5
e/r = durchschalten
leer = plazieren
links = verschieben
rechts = drehen
shift + links = kopieren
shift + rechts = skalieren
F9 = kollision sichtbar
o = kollision zu tile
i = schalte schaden an/aus
Layers:
1 - hinter Entities
2
3
4
5
6
7 - vor Entities
8 - Entities
9
n - Background
m
,
.
/
j - darkness
------
effects mit number-block:
0 - keiner
1,2,3 - wabern
4 - glühen / blinken
5,6 - wabern (bei berührung)
8 - transparent
----------
Entities F6:
ctrl+e - place entity
during selection
e/r - change
esc - confirm
space - place
Nodes F7:
n - edit/name
ctrl+space - create
http://aquariawiki.ryanballantyne.name/wiki/index.php/List_of_Nodes
------------
gfx's:
ingredients
------------
Scripts:
http://aquariawiki.ryanballantyne.name/wiki/index.php/Uncategorized_Functions
http://aquariawiki.ryanballantyne.name/wiki/index.php/Callback_Functions
LUA specific:
~= | not equals
.. | string concatination
http://www.lua.org/pil/5.1.html
v.x,v.y = entity_getPosition(v.n) // really returns 2 values Oo
(no array, but returns/assigns them just right away)
http://aquariawiki.ryanballantyne.name/wiki/index.php/Learn_Lua
-------------
Snippets:
---------- text ----------
-- define variables
local function setupRead()
v.rd_dt = 0
v.rd_done = 0
v.rd_time = 0
v.rd_length = 0
v.rd_current = 0
end
-- show text
local function read(dt, duration, text)
if v.rd_done == v.rd_length+1 then return end
-- get length + define current
if v.rd_dt ~= dt then
v.rd_dt = dt
-- calculating time once per dt
v.rd_time = v.rd_time + dt
v.rd_length = v.rd_current
v.rd_current = 0
end
v.rd_current = v.rd_current+1
if v.rd_current-1 == v.rd_done then
if v.rd_time == dt then
-- duration + consider iteration loop + smoothing fading animation
setControlHint(text, 0, 0, 0, duration + v.rd_current + 2)
elseif v.rd_time >= duration then
v.rd_done = v.rd_done+1
v.rd_time = 0
end
end
end
---------- /text ----------