- no scene on collision with batman, fixed starting point

This commit is contained in:
2022-11-02 18:55:59 +01:00
parent 823b771c08
commit b610860746

View File

@@ -4,7 +4,7 @@ function batman.init()
batman.hit=batman.hit
batman.update=batman.update_normal
batman.draw=batman.draw
local habs={5,9,46,36,39}
local habs={5,9,46,36,18}
batman.hab=habs[1+rnd(#habs)]
end
@@ -116,13 +116,7 @@ function batman.update_normal()
if batman.hab==abad.hab then
if aabb(abad,batman) then
if not batman.scene_intro then
start_scene(scenes.batman_intro)
batman.scene_intro=true
elseif not batman.scene_object and abad.objects.gorro~=nil then
start_scene(scenes.batman_gorro)
batman.scene_object=true
end
end
end