[WIP] Score

This commit is contained in:
2026-03-29 00:23:18 +01:00
parent 398fcda66a
commit 40ea0786c2
4 changed files with 117 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ require "gps"
require "peu"
require "premiere"
require "elalien"
require "score"
local tile_w = arcade_config.tiles_width
local tile_h = arcade_config.tiles_height
@@ -82,6 +83,8 @@ function game_init(menu)
table.insert( actors, zombie.new(68, 3, 3,false) )
table.insert( actors, zombie.new(73, 3, 3,false) )
score.create()
local abad_x, abad_y = coords.room_to_world ( 10, 4, 3 )
-- local abad_x, abad_y = arc_mapa_get_coords ( 77, 3, 2 )
abad:move(abad_x, abad_y)
@@ -175,6 +178,7 @@ function update_game()
arc_mapa_update()
for key,actor in pairs(actors) do
actor:update()
--if actor.hab==cacau.hab and actor~=abad then
@@ -212,6 +216,8 @@ function update_game()
end
end
cacau:draw()
score.draw()
fps_print()
viewp:print()