File: platform.lua

package info (click to toggle)
btanks 0.9.8083-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 43,616 kB
  • sloc: cpp: 46,425; ansic: 12,005; xml: 4,262; python: 313; sh: 13; makefile: 13
file content (21 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
demolish_house = false
time_to_demolish = 10
time = 0

function make_passage()
	demolish_house = true
end

function on_tick(dt)
	if demolish_house then
		time = time + dt
		if time > time_to_demolish then 
			damage_map(576, 1856, 100)
			demolish_house = false
		end
	end
end
		
function on_load()
	disable_ai('tank')
end