Log In  

Cart #tweetcartgame-1 | 2021-06-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


My first try at a tweetcart, was actually pretty fun to figure out the limitations and how to recreate the _update() function.

Source code:

x=60
y=60
mx=0
my=0
s=1
::_::
cls()
?"\f8웃\ff\vm🐱",x,y
x+=mx
y+=my
mx*=.7
my*=.7
if (btn(⬅️)) mx-=s
if (btn(➡️)) mx+=s
if (btn(⬆️)) my-=s
if (btn(⬇️)) my+=s
if (btn(❎)) s=.9 else s=.7
flip()goto _

P#93974 2021-06-24 15:54

1

A good start.

P#94009 2021-06-25 01:41

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 02:38:43 | 0.009s | Q:18