changeset 5825 | a6eab1b7c00d |
parent 5629 | c24d29a538af |
child 5827 | a416f1070fdf |
5823:f906f6645e02 | 5825:a6eab1b7c00d |
---|---|
3 loadfile(GetDataPath() .. "Scripts/Tracker.lua")() |
3 loadfile(GetDataPath() .. "Scripts/Tracker.lua")() |
4 |
4 |
5 --------------------------------------------------- |
5 --------------------------------------------------- |
6 --------------------------------------------------- |
6 --------------------------------------------------- |
7 --------------------------------------------------- |
7 --------------------------------------------------- |
8 --- Space Invasion Code Follows (0.8) |
8 --- Space Invasion Code Follows (0.8.1) |
9 --------------------------------------------------- |
9 --------------------------------------------------- |
10 --------------------------------------------------- |
10 --------------------------------------------------- |
11 -- VERSION HISTORY |
11 -- VERSION HISTORY |
12 ---------------- |
12 ---------------- |
13 -- version 0.1 |
13 -- version 0.1 |
103 ----------------- |
103 ----------------- |
104 --0.8 |
104 --0.8 |
105 ----------------- |
105 ----------------- |
106 -- added a HUD for turntimeleft, ammo, shield |
106 -- added a HUD for turntimeleft, ammo, shield |
107 -- shieldhealth hits 0 properly |
107 -- shieldhealth hits 0 properly |
108 |
|
109 ------------------------ |
|
110 -- version 0.8.1 |
|
111 ------------------------ |
|
112 |
|
113 -- stop hiding non-existant 4th Tag |
|
114 -- redraw HUD on screen resolution change |
|
108 |
115 |
109 -------------------------- |
116 -------------------------- |
110 --notes for later |
117 --notes for later |
111 -------------------------- |
118 -------------------------- |
112 -- maybe add a check for a tie, NAH |
119 -- maybe add a check for a tie, NAH |
299 |
306 |
300 |
307 |
301 |
308 |
302 function HideTags() |
309 function HideTags() |
303 |
310 |
304 for i = 0, 3 do |
311 for i = 0, 2 do |
305 SetVisualGearValues(vTag[i],0,0,0,0,0,1,0, 0, 240000, 0xffffff00) |
312 SetVisualGearValues(vTag[i],0,0,0,0,0,1,0, 0, 240000, 0xffffff00) |
306 end |
313 end |
307 |
314 |
308 end |
315 end |
309 |
316 |
795 CreateMeSomeCircles() |
802 CreateMeSomeCircles() |
796 RebuildTeamInfo() -- control |
803 RebuildTeamInfo() -- control |
797 |
804 |
798 end |
805 end |
799 |
806 |
807 function onScreenResize() |
|
808 |
|
809 -- redraw Tags so that their screen locations are updated |
|
810 if (CurrentHedgehog ~= nil) and (tumbleStarted == true) then |
|
811 DrawTag(0) |
|
812 DrawTag(1) |
|
813 DrawTag(2) |
|
814 end |
|
815 |
|
816 end |
|
800 |
817 |
801 function onNewTurn() |
818 function onNewTurn() |
802 |
819 |
803 primShotsLeft = primShotsMax |
820 primShotsLeft = primShotsMax |
804 stopMovement = false |
821 stopMovement = false |