- no scene on collision with batman, fixed starting point
This commit is contained in:
10
batman.lua
10
batman.lua
@@ -4,7 +4,7 @@ function batman.init()
|
|||||||
batman.hit=batman.hit
|
batman.hit=batman.hit
|
||||||
batman.update=batman.update_normal
|
batman.update=batman.update_normal
|
||||||
batman.draw=batman.draw
|
batman.draw=batman.draw
|
||||||
local habs={5,9,46,36,39}
|
local habs={5,9,46,36,18}
|
||||||
batman.hab=habs[1+rnd(#habs)]
|
batman.hab=habs[1+rnd(#habs)]
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -116,13 +116,7 @@ function batman.update_normal()
|
|||||||
|
|
||||||
if batman.hab==abad.hab then
|
if batman.hab==abad.hab then
|
||||||
if aabb(abad,batman) 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user