kupo nice now

bow nice
aim nice
arrow nice

all nice
This commit is contained in:
lustlion
2021-10-25 01:41:40 +02:00
parent 5b7924fe4e
commit 1e1f9edb45
22 changed files with 348 additions and 82 deletions

View File

@@ -11,7 +11,7 @@ function love.load()
love.keyboard.setKeyRepeat(true)
love.graphics.setDefaultFilter("nearest") -- good pixel
game = {
scale = 2,
scale = 1,
width = love.graphics.getWidth(),
height = love.graphics.getHeight(),
paused = false
@@ -26,7 +26,8 @@ function love.load()
main_Player = Player:New(1220,220)
LoadedEntities = {}
table.insert(LoadedEntities,main_Player)
table.insert(LoadedEntities,Kupo:New(800,200))
table.insert(LoadedEntities,Kupo:New(700,200))
table.insert(LoadedEntities,Kupo:New(500,300))
main_Player.sprite = love.graphics.newImage("assets/characters/nancy/idle1.png")
main_Player:LoadAnimation(animation.nancy.idle)
end
@@ -52,10 +53,8 @@ function love.update(dt)
if not do_pause then
SetCollisionFlags(main_Player)
for _, enty in pairs(LoadedEntities) do
enty:DoInput()
enty:Smart()
enty:DoPhysics()
enty:HandleAnimation()
enty:Animate()
end
AnimateTiles()
Camera:CenterAt(main_Player.pos.x, main_Player.pos.y,LevelInfo.Width,LevelInfo.Height)
@@ -105,6 +104,8 @@ end
function love.draw()
LevelDisplayBackground()
for _, enty in pairs(LoadedEntities) do
enty:HandleAnimation()
enty:Animate()
enty:Draw()
end
LevelDisplayForeground()