Jailgames logo
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
require "fps"
|
||||
require "fade"
|
||||
require "game"
|
||||
|
||||
-- require "mapa"
|
||||
-- require "scenes"
|
||||
|
||||
local arcade_config = require("arcade_config")
|
||||
o2aX = arcade_config.org2arc_escala
|
||||
|
||||
intro_wait=40
|
||||
@@ -16,35 +8,35 @@ function intro_init()
|
||||
intro_wait=400
|
||||
surf.cls(16)
|
||||
|
||||
surf.target(logo)
|
||||
local font_default = font.current()
|
||||
font.current(font_sf)
|
||||
surf.target(back)
|
||||
surf.cls(16)
|
||||
draw.text("INTRO_INIT",0,0,15)
|
||||
draw.text("INTRO INIT",0,0,15)
|
||||
font.current(font_default)
|
||||
surf.target(0)
|
||||
surf.source(logo)
|
||||
draw.surf(0,0,36,5,56,70,arcade_config.logo_sf.width,arcade_config.logo_sf.height)
|
||||
surf.source(back)
|
||||
draw.surf(0,0,63,10,100,100,126,20)
|
||||
|
||||
-- surf.source(tiles)
|
||||
fade.fadein()
|
||||
print("INTRO INIT")
|
||||
end
|
||||
|
||||
function intro_intro()
|
||||
intro_wait=intro_wait-1
|
||||
|
||||
if intro_wait==0 or key.press(key.ESCAPE) or key.press(keyShoot) or pad.press(btnShoot) or pad.press(btnPause) then
|
||||
intro_wait=1
|
||||
game_update = intro_update
|
||||
fade.fadeoutin()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function intro_update()
|
||||
fps_print()
|
||||
if key.press(key.ESCAPE) or pad.press(btnPause) then
|
||||
game_init(true)
|
||||
fade.fadeoutin()
|
||||
elseif key.press(key.SPACE) then
|
||||
intro_wait=1
|
||||
end
|
||||
game_init(true)
|
||||
fade.fadeoutin()
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user