decided to start with lazy dev tutorials instead of the other i was starting with. i like that he gives you like homework between episodes, i highly recommend his channel. but this is what i've got so far. no where near done witht the playlist but i really like what i've got going on graphic/theme wise, but i just wanted to post progress. the score, or lives or sword(bombs) don't do anything yet, since, i don't even have enemies, and the bullet resets itself everytime you press the fire button, but now that the tutorial is pretty much done with like, the visual stuff, i believe all that stuff happens next, but i'm done for the night to play some games with my partner. now, i just added the starfield to the start screen, but i can't tell if i like it better than how it was in the begining.
starfield
no starfield
if anyone sees this, if you have an opinion im open to it.
also features HEAVILY referenced art on the start screen by
trouble with animation
i am learning pico 8 and watching some videos to kind of learn how to do things but not copy directly so i actually retain knowledge, and im animating sprite and i got it to work going right and left but not up and down. im wondering if anyone can look at my code and see if its glaringly obvious? its my second day learning game dev in general so any notes would be helpful. here is the code:
okay, the bbs will not let me post my code in a nice little box, it cuts it off very short, so excuse the wall of text if anyone has tips on that too, i would appreciate it.
poke( 0x5f2e, 1 )
pal({[0]=0,4,128,133,1,129,3,139,140,12,14,15,135,138,9,7},1)
-- color palette --
function _init()
position=63
player={
x=63,
y=63,
f=false,
sp=1,
speed=1,
stimer=0,
ani_speed=10,
first_frame=1,
last_frame=4,
}
end
function _update()
--amimation player--
if btn(➡️) then
if player.stimer<player.ani_speed then
player.stimer+=1
else
if player.sp<player.last_frame then
player.sp+=.3
else
player.sp=player.first_frame
end
stimer=0
end
end
if btn(⬅️) then
if player.stimer<player.ani_speed then
player.stimer+=1
else
if player.sp<player.last_frame then
player.sp+=.3
else
player.sp=player.first_frame
end
stimer=0
end
end
if btn(⬇️) then
if player.stimer<player.ani_speed then
player.stimer+=1
else
if player.sp<player.last_frame then
player.sp+=.3
else
player.sp=player.first_frame
end
stimer=0
end
end
if btn(⬆️) then
if player.stimer<player.ani_speed then
player.stimer+=1
else
if player.sp<20 then
player.sp+=.3
else
player.sp=17
end
stimer=0
end
end
--player movement--
if btn (➡️) then
player.x+=player.speed
player.f=false
end
if btn (⬅️) then
player.x-=player.speed
player.f=true
end
if btn (⬇️) then
player.y+=player.speed
player.sp=1
end
if btn (⬆️) then
player.y-=player.speed
player.sp=17
end
end
--speed on roads--
// if mget(flr((player.x+4)/8),flr((player.y+4)/8))==27 then
// player.speed=1.5
// end
function _draw()
cls(7)
map()
spr(player.sp,player.x,player.y,1,1,player.f)
end






0 comments