Log In  

Cart #tweetcollectorgame-0 | 2021-06-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Another Tweetcart, just a coin collector this time.

Source code:

☉="\agebe"
cx=60
cy=10
c=0
x=60
y=60
mx=0
my=0
::_::
cls(1)
x+=mx
y+=my
mx*=.7
my*=.7
?"\fb웃",x,y
?"\fa●",cx,cy
?"\f5☉:"..c,1,1,0
if pget(x+3,y+2)==10then cx=rnd(126)cy=rnd(126)c+=1print(☉)end
if(btn(⬅️))mx-=.5
if(btn(➡️))mx+=.5
if(btn(⬆️))my-=.5
if(btn(⬇️))my+=.5
flip()goto _

P#94169 2021-06-28 04:15 ( Edited 2021-06-28 17:06)

I am PRETTY new to pico-8 (2 days only), and You way of coding is very compact. I don't get the \fa \a, etc. You make it look so simple and short. lol. Not even using the default functions (init/update/draw).
I am amazed checking your code. :) (And pluzzed) lol.
Thanks for sharing it.

P#95568 2021-08-01 20:45

That’s the style of tweetcarts! These are made to fit in one or two tweets, as a challenge. There’s a guide on the bbs to help decipher them (and write your own).

The escape codes you’re mentioning are documented here: https://www.lexaloffle.com/dl/docs/pico-8_manual.html#Appendix_A

P#95793 2021-08-09 03:00 ( Edited 2021-08-09 03:00)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 14:13:00 | 0.011s | Q:20