Code: Select all
local timer = 12
local radius = 20
function Player:initialize(world, x, y, lives)
Entity.initialize(self, world, x, y, width, height)
self.lives = lives
self.timer = 12
self.radius = 20
end
Code: Select all
local timer = 12
local radius = 20
function Player:initialize(world, x, y, lives)
Entity.initialize(self, world, x, y, width, height)
self.lives = lives
self.timer = 12
self.radius = 20
end
Code: Select all
local myLocalValue = 10 -- gets removed when application closes
function Player:initialize( )
local functionLocalValue = 10 -- gets removed as soon as the function finishes
self.objectValue = 10 -- gets removed when the object is destroyed
end
Users browsing this forum: Bing [Bot], Google [Bot] and 210 guests