Log In  

Cart #pigeo1k-1 | 2022-05-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Pigeo is starving, help Pigeo feed by collecting flying berries.

This enhanced remake includes

-Sprites with animation
-Sound effects
-Music
-berry ai
-Terminal velocity

All of this was made with 1023 characters of code.

This wouldn't have been possible without @cheepicus's Chr Editor(https://www.lexaloffle.com/bbs/?tid=45943) and @Liquidream's Boulder Dash TTJ walkthrough(https://www.patreon.com/posts/59514050)

Update

-Fixed an exploit
-Fixed Background to save characters
-Pigeo and the flying berry get faster with every point earned.
-Fixed cart label

k="pige0"cartdata(k)g=136function d()b=0a=0r=0s=0h=dget(0)x=72n=0m=0f=0v=1t={}l=0o=40w=0y=x u=x end
function p(a,b,c)?a,b+1,c,7
q=sspr?a,b,c,1
end cls()p(k.." ⁶:0e0b0efe76743010 ⁶:002e6b6ebe5e3c18 ⁶:81c3c3183c3c1800 ⁶:0000dbbdbd180000",0,0)pset(8,0,1)memcpy(0,6^13,g*g)d()c=btn::b::flip()cls(9)for j=0,255 do
circ((j%16)*8+4,(j\16)*8+4,b,14)end
if(c(2)and m>-9)m-=a*2f=(f+1)%2r=1w=1+w%2
if(r==0)q(0,0,o,5,9,32,g,20)p("up to start",42,80)p("by yopenatal",41,118)b=l%g
if r==1 then
a=s/g+.1b=s
for q in all(t)do
if(x<q.x+5and q.x<x+9and q.y<y+9and y<q.y+5)d()?"\aggg"
p("⁶:63772a1c2a776300",q.x-5,q.y-5)end
if(x<u+7 and x+8>u and y<o+8 and y+8>o)s+=1add(t,{x=(x\8)*8,y=((y\8)*8-64)%g})u=rnd(g)o=u*3?"\addff"
x=n+x%g y=m+y%g
if(c(0)and-9<n)v=1n-=a
if(c(1)and n<9)v=-1n+=a
q(24+12*(w-1),0,9,9,x-4*v,y-3,9*v,9)q(48+12*flr(o%2),0,9,9,u-7,o-7)if(m<9)m+=a
u=sin(l/g)*.9-v*a+u%g
o=cos(l/g)*.2-a+o%g
if(s>h)dset(0,s)h=s?"\afafafaf"
end
p("sc0re:"..s,1,10)p("hisc0re:"..h,1,1)l=1+l%g?"\a1"..sub("cdfecffecdfecdde",l/8,l/8).."1"
goto b

past versions


Cart #pigeo-0 | 2021-09-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

My project for the Pico-1k jam.

Collect the green ball and avoid the red balls

--pigeo by yopenatal
cartdata("pigeo")function py(a,b,c)p(a,b+1,c,7)p(a,b,c,1)end
c=btn
r=rnd
p=print
s=circfill
x=68ll=0y=68t=0wa=0ma=0e=8+r(120)d=8+r(120)n=.1g={}z=0a=dget(0,a)st=0ti="pigeo"ef=0cx=ef
::b::flip()w=cos(ef/36)
if(ll>0)cls(7)ll-=1
if ll<=0then
ll=0cls(9)for kx=1,16 do for y=1,16do circ(kx*8-4,y*8-4,cx%36,14)end end if st==0then ef=(ef+1)%36cx=ef/2for i=1,3 do p(ti,53,48+w*5+w*i,7)end p(ti,53,48+w*5,1)py("made by yopenatal",32,118)py("press z to start",32,80)
if(btnp(4))st=1 g={}
end end
if st==1then
cx=z
x=(x+wa)%136y=(y+ma)%136ma+=n if(c(0))wa-=n
if(c(1))wa+=n
if(c(2))ma-=n*2t=(t+1)%2
if(c(3))ma+=n
if(x<e+9)and(x+9>e)and(y<d+9)and(y+9>d)then u={x=-flr(e/8)*8+128,y=-flr(d/8)*8+128}add(g,u)z+=1e=8+r(120)d=8+r(120) end
if(z>=a)a=z dset(0,a)
for o in all(g)do if(x<o.x+8)and(x+8>o.x)and(y<o.y+8)and(y+8>o.y)then x=68z=0y=68wa=0ma=0ll=15st=0end end for o in all(g)do circ(o.x-8,o.y-8,4,8)end s(x-8,y-8,4,13)s(e-8,d-8,4,11)end
py("score : "..z,1,10)py("hiscore : "..a,1,1)goto b

P#97554 2021-09-19 18:57 ( Edited 2022-05-07 19:44)

it's always crazy to me how people do this!

P#97902 2021-09-28 01:12

Cart #pegeomadereadable-0 | 2021-12-03 | Code ▽ | Embed ▽ | No License

For those that want to read and understand the code, this is a deminified version.

Oh and @Yopenatal what was the variable "t" for I couldn't find a use for it so I commented it out and nothing changed.

P#101371 2021-12-03 20:33 ( Edited 2021-12-03 20:35)

@Matcha155
This is awesome. I don't have an idea what t was used for.

P#101376 2021-12-03 21:02

Oh, could I maybe get a link t the the one k jam you made this game for?

P#101465 2021-12-04 21:21

Aand How do you slow down the player I couldn't find any decelaration.

P#101468 2021-12-04 21:38
1

Pico-1k jam page

I didn't have the space to add friction or capping the speed of the player. That is something I plan on adding when I rework the code.

P#101502 2021-12-05 01:35
:: dw817

Really enjoying this game. Didn't know if there was enough space for a "pigeon" sprite. You could then call the game, "Pigeonhole." :)

In any case a gold star for your good gravity game, @Yopenatal.

P#103307 2021-12-22 04:15 ( Edited 2021-12-22 18:03)

This probably the craziest code-golf game I've made.

@Matcha155
t variable was used for animation, which is now in the new version.

P#111390 2022-05-06 13:44

Update

-Fixed an exploit
-Fixed Background to save characters
-Pigeo and the flying berry get faster with every point earned.
-Fixed the cart label

P#111469 2022-05-07 17:30 ( Edited 2022-05-07 17:33)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-07-01 11:42:56 | 0.053s | Q:37