This commit is contained in:
MaddoScientisto 2024-04-27 23:05:15 +02:00
commit b4a5a8a211
4 changed files with 104 additions and 77 deletions

16
src/box.lua Normal file
View file

@ -0,0 +1,16 @@
local Actor = require(make_path("actor2"))
local Box = Actor:new()
Box.spriteIndex = 4
function Box:update()
end
--function Barrel:draw()
-- spr(self.spriteIndex,self.x,self.y)
--end
--M.actor = actor
return Box

View file

@ -57,6 +57,7 @@ local map_manager = require(make_path("map"))
local weapons_manager = require(make_path("weapons"))
local Barrel = require(make_path("barrel"))
local Strawberry = require(make_path("strawberry"))
local Box = require(make_path("box"))
include(make_path("pgui" .. ".lua"))
@ -113,7 +114,7 @@ actors_db = {
{name="barrel",sprite=3,actor=Barrel},
{name="strawberry",sprite=72,actor=Strawberry},
{name="player",sprite=65,actor=nil},
{name="box",sprite=4,actor=nil},
{name="box",sprite=4,actor=Box},
{name="alarm",sprite=19,actor=nil},
{name="fan",sprite=16,actor=nil}
}

View file

@ -5,16 +5,16 @@ local Actor = require(make_path("actor2"))
M = {}
local weapons = {}
-- local particles = {}
weapon = {
name = "Ice Blaster",
rate_of_fire = 0.2,
shoot=function(self)
end
local weapons = {
{
name = "Ice Blaster",
rate_of_fire = 0.2,
shoot=function(self)
end
}
}
-- local particles = {}
Particle = Actor:new()
Particle.life=4