I made a game that is like the Chrome dino game. (obviously not the same quality. I will work on a version that is more like it later. For now, I will just use letters) It is lacking one major thing, randomly generated "cacti". I was working on this project yesterday, and I couldn't think of a way to do them. I thought about using a list, but I am not sure how I would do that. I will post the code below. If you can think of any way to do the randomly generated "objects", let me know!
Thanks!
CalcNerd
:7->X:16->A:ClrHome
:Output(8,1,"================ //16 Equals
:Repeat K=45 or X=7 and A=2
:getKey->K
:A-1->A
:If A=1
:16->A
:Output(7,1," // 16 spaces
:Output(7,A,"v
:If X=6
:Output(X+1,2," // One Space
:Output(X-1,2," //One Space
:Output(X,2,"θ
:max(4,min(7,X+1-4(K=21->X
:End