LuaPlus extenssion
This commit is contained in:
@@ -1,21 +1,3 @@
|
||||
-- базовый класс актора
|
||||
actor_base = inherit_table(game_object)
|
||||
|
||||
-- инициализация FSM
|
||||
|
||||
|
||||
function actor_base:on_init()
|
||||
game_object.on_init(self)
|
||||
end
|
||||
|
||||
function actor_base:on_shutdown()
|
||||
game_object.on_shutdown(self)
|
||||
end
|
||||
|
||||
function actor_base:on_update(dt)
|
||||
game_object.on_update(self, dt)
|
||||
end
|
||||
|
||||
-- игрок
|
||||
actor_player = inherit_table(actor_base)
|
||||
|
||||
@@ -40,5 +22,5 @@ function actor_player:on_update(dt)
|
||||
end
|
||||
|
||||
function actor_player:on_collide(other)
|
||||
--console.print(string.format("actor_player:on_collide: %s", other:get_classname()))
|
||||
console.print(string.format("actor_player:on_collide: %s", other:get_classname()))
|
||||
end
|
||||
Reference in New Issue
Block a user