- Pony Express (Google Doodle Recreation)
- 14 Apr 2015 09:11:44 pm
- Last edited by Michael2_3B on 14 Apr 2015 09:54:49 pm; edited 1 time in total
Pony Express (monochrome)
---------------------------------
So if you saw on google on Tuesday, there was a cool little game that you could play. I decided to try to recreate this on the calculator. This may or may not turn into another of my projects, so if someone else wants to take it up and make it faster and more playable (in Axe, ASM, whatever) you can.
Screenshot: (the game doesn't actually look buggy on my calc; that's just jsTIfied)
The lines represent cacti, and the boxes represent mail. Currently, there's no collision detection/mail detection, as I literally just started coding this like 20 mins ago...
EDIT: Things (hopefully) to be added
-More obstacles and paths
---obstacles: rocks, cacti(added), falling snow, cowboy, fences, water, trees, houses
---paths: bridges, horse stable
-mail counter (points)
-finish line (town)
-optimization and movement smoothing probably using DoorsCS basic libs
Anyways, the code is currently written in almost pure basic, with 1 hex code that shifts the screen left 4. I chose left 4 because the program was too slow to support smoother movement.
Code:
prgmZPONY:
Code:
Also, the way it generates the obstacles and mail is just random. On the google doodle, the map is the same every time, so the code could be improved to do that. I'm not super good when it comes to scrolling and maps, so maybe someone else could program that.
---------------------------------
So if you saw on google on Tuesday, there was a cool little game that you could play. I decided to try to recreate this on the calculator. This may or may not turn into another of my projects, so if someone else wants to take it up and make it faster and more playable (in Axe, ASM, whatever) you can.
Screenshot: (the game doesn't actually look buggy on my calc; that's just jsTIfied)
The lines represent cacti, and the boxes represent mail. Currently, there's no collision detection/mail detection, as I literally just started coding this like 20 mins ago...
EDIT: Things (hopefully) to be added
-More obstacles and paths
---obstacles: rocks, cacti(added), falling snow, cowboy, fences, water, trees, houses
---paths: bridges, horse stable
-mail counter (points)
-finish line (town)
-optimization and movement smoothing probably using DoorsCS basic libs
Anyways, the code is currently written in almost pure basic, with 1 hex code that shifts the screen left 4. I chose left 4 because the program was too slow to support smoother movement.
Code:
AxesOff
CoordOff
GridOff
ClrDraw
0->Xmin:1->DeltaX
0->Ymin:1->DeltaY
For(A,0,50,10
Horizontal A
End:34->A
Repeat K=45
Repeat K
Text(A,15," pi
Asm(prgmZPONY
If not(randInt(0,7 //no particular reason why i chose 7
Text(3+10randInt(1,5),90,"plotsquare
For(B,0,50,10
Pt-On(94,B
End
If not(randInt(0,10
Then
2+10randInt(0,4
Line(94,Ans,94,Ans+6
End
getKey->K
End
Text(A,15," //5 spaces
A+10((K=34)(A<54)-(K=25)(A>14->A
End
prgmZPONY:
Code:
AsmPrgm213F960E40AF060CED6F2B10FB0D20F5EF6A48C9
Also, the way it generates the obstacles and mail is just random. On the google doodle, the map is the same every time, so the code could be improved to do that. I'm not super good when it comes to scrolling and maps, so maybe someone else could program that.