[WIP] Començant en el forat negre
This commit is contained in:
@@ -93,7 +93,7 @@ end
|
|||||||
function caco:update_hit()
|
function caco:update_hit()
|
||||||
self.wait=self.wait+1
|
self.wait=self.wait+1
|
||||||
|
|
||||||
if self.wait==6 then
|
if self.wait>=6 then
|
||||||
self.wait=0
|
self.wait=0
|
||||||
self.step=self.step+1
|
self.step=self.step+1
|
||||||
if self.step<40 then
|
if self.step<40 then
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ local view_checking_tile = false
|
|||||||
viewp = viewport.new(arcade_config.resolucion.width, arcade_config.resolucion.height)
|
viewp = viewport.new(arcade_config.resolucion.width, arcade_config.resolucion.height)
|
||||||
viewp:position(0,0)
|
viewp:position(0,0)
|
||||||
|
|
||||||
|
local warp_rot = 0
|
||||||
|
|
||||||
actors={}
|
actors={}
|
||||||
|
|
||||||
function game_init(menu)
|
function game_init(menu)
|
||||||
@@ -223,6 +225,13 @@ function update_game()
|
|||||||
|
|
||||||
score.draw()
|
score.draw()
|
||||||
|
|
||||||
|
-- Proves de warp
|
||||||
|
surf.source(warp)
|
||||||
|
-- draw.surf(0,0,32,32,0,0)
|
||||||
|
draw.surfrot(0,0,32,32,0,0,warp_rot)
|
||||||
|
warp_rot=warp_rot+5
|
||||||
|
if warp_rot>=360 then warp_rot=0 end
|
||||||
|
|
||||||
fps_print()
|
fps_print()
|
||||||
-- viewp:print()
|
-- viewp:print()
|
||||||
-- msg_print(0,14,"ABAD= "..abad.x..", "..abad.y, true)
|
-- msg_print(0,14,"ABAD= "..abad.x..", "..abad.y, true)
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ require "game"
|
|||||||
require "switches"
|
require "switches"
|
||||||
-- require "scenes"
|
-- require "scenes"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
coords.set_config({
|
coords.set_config({
|
||||||
tiles_width = arcade_config.tiles_width,
|
tiles_width = arcade_config.tiles_width,
|
||||||
tiles_height = arcade_config.tiles_height,
|
tiles_height = arcade_config.tiles_height,
|
||||||
@@ -70,6 +67,16 @@ function mini.init()
|
|||||||
local paleta=pal.load("tiles.gif")
|
local paleta=pal.load("tiles.gif")
|
||||||
pal.set(paleta)
|
pal.set(paleta)
|
||||||
|
|
||||||
|
-- Crear el warp
|
||||||
|
warp=surf.new(32,32)
|
||||||
|
surf.source(tiles)
|
||||||
|
surf.target(warp)
|
||||||
|
draw.surfrot(11*16,15*16,16,16,0,0,0)
|
||||||
|
draw.surfrot(11*16,15*16,16,16,15,0,90)
|
||||||
|
draw.surfrot(11*16,15*16,16,16,0,15,270)
|
||||||
|
draw.surfrot(11*16,15*16,16,16,15,15,180)
|
||||||
|
|
||||||
|
|
||||||
logo=surf.new(arcade_config.logo_sf.width,arcade_config.logo_sf.height)
|
logo=surf.new(arcade_config.logo_sf.width,arcade_config.logo_sf.height)
|
||||||
back=surf.new(arcade_config.surface.width,arcade_config.surface.height)
|
back=surf.new(arcade_config.surface.width,arcade_config.surface.height)
|
||||||
sf_mapa=surf.new(mapa_room_cols*mapa_rooms_per_piso,mapa_room_rows*mapa_pisos)
|
sf_mapa=surf.new(mapa_room_cols*mapa_rooms_per_piso,mapa_room_rows*mapa_pisos)
|
||||||
|
|||||||
BIN
data/tiles.gif
BIN
data/tiles.gif
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@@ -82,7 +82,7 @@ end
|
|||||||
function zombie:update_hit()
|
function zombie:update_hit()
|
||||||
self.wait=self.wait+1
|
self.wait=self.wait+1
|
||||||
|
|
||||||
if self.wait==6 then
|
if self.wait>=6 then
|
||||||
self.wait=0
|
self.wait=0
|
||||||
self.step=self.step+1
|
self.step=self.step+1
|
||||||
if self.step<40 then
|
if self.step<40 then
|
||||||
|
|||||||
Reference in New Issue
Block a user