Posted August 03, 2022 by A-lox
#axolotl #games #download #more #all #help #moreaxolotls #devlog #indi #starter #yung develuper #finaly #done #imige #views #adds #add #eveerything #mouse #player #king #2d #3rd person #pixle art
past: I added stupid AI (verry stupid)
present: The sound is temporary I probably will make my own sound for the big release. Currently I am using love2d for making my games,
love2d is based of lua, THE SUPIRIOR programing language.
sounds = {} sounds.step1 = love.audio.newSource("sounds/step1.mp3", "static") sounds.step2 = love.audio.newSource("sounds/step2.mp3", "static") sounds.coin1 = love.audio.newSource("sounds/coin1.mp3", "static") sounds.coin2 = love.audio.newSource("sounds/coin2.mp3", "static") sounds.hploose = love.audio.newSource("sounds/-1hp.mp3", "stream") sounds.bg_music = love.audio.newSource("sounds/music.mp3", "stream") sounds.bg_music:play()
function step_sounds() local randome_food_sound = love.math.random(1,2) if randome_food_sound == 1 then sounds.step1:play() end if randome_food_sound == 2 then sounds.step2:play() end randome_food_sound = 0 end function coin_sounds() local randome_coin_sound = love.math.random(1,2) if randome_coin_sound == 1 then sounds.coin1:play() end if randome_coin_sound == 2 then sounds.coin2:play() end randome_coin_sound = 0 end for i,c in ipairs(humans) do if AABB(king.hitboxX,king.hitboxY,king.hitboxW,king.hitboxH,c.hx,c.hy,c.hw,c.hh) then sounds.hploose:play() table.remove(h_hitboxes,i) table.remove(humans,i) king.hp = king.hp - 1 end end