Halb ferttiger basis code erstellt
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
Produktion = {}
|
||||
Produktion.timer = 0
|
||||
Produktion.interval = 60000
|
||||
Produktion.fillType = "PAYDIRT"
|
||||
Produktion.amountPerCycle = 1000
|
||||
|
||||
function Produktion:load()
|
||||
print("Produktion.lua wurde geladen")
|
||||
end
|
||||
|
||||
function Produktion:update(dt)
|
||||
Produktion.timer = Produktion.timer + dt
|
||||
if Produktion.timer >= Produktion.interval then
|
||||
print ("Produktion Gestartet")
|
||||
Produktion.timer = 0
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user