Forest Escape
You have not uploaded your program! Please edit the page to upload your program.
|
|||||||||||||||
You are an explorer in a very deep forest, and you need to escape it to civilization. You are on your motorcycle, your only way of transportation. Unless you prefer walking. Can you beat the high score? Good luck! Source code:
|
What the community thinks:
Please Enjoy! Edit the download file for changes! ALL comments accepted!!
Hewwo, my name is Achak Claw. I was formerly BioHazard.
Just a quick question. I have been coding with TI-Basic for a while but I am not that skilled in it. So, I was looking over your code, and I wanted to ask, what was the point of the line, "Pxl-On(31,X" if the loop ended with a "pxl-Test(31,X"?
Hey FoxxTrott! I didn't code this game, so Bio_Hazard1282_rPi3 will probably have a better response. But I think I can explain it. What the loop is doing is checking if there is a pixel at (x,y). If there is, you die. If there isn't though, the loop continues and draws a pixel, representing you, at (x,y). Think of the x and y coordinates as being future x and future y positions. If they are the future positions, then it makes sense to check if the player will run into a tree and die at that point in the code. If there is nothing there though, it will just continue as normal. If you're actually wondering about the purpose of "Pxl-On(31,X", it just displays a pixel where the player is. And to be clear, the pxl-test command makes sure that you don't run into anything. If you are still confused, Bio_Hazard will probably post an informative reply (he's the one who wrote the code). If you don't understand what the pixel commands do in general, just look them up in this wiki. This wiki contains an index of most (if not all) available TI-Basic commands.
That makes so much more sense! Thanks and have a good day!
You too!
Just looking through the code, I see two lists: FRUN and FRST. FRUN is initialized and used to store data. FRST is not initialized, but stores your total distance. It is never referenced, either.
Oh I see, it's a typo. But I'll fix it ASAP.
Hewwo, my name is Achak Claw. I was formerly BioHazard.
What is ⸤ this plz help
It is the List command. Press [2nd]+[0]+[L] to access the token
Hewwo, my name is Achak Claw. I was formerly BioHazard.
Controls?
Looks like the controls are:
Arrow keys to move the character side to side
Enter to pause the game
Clear to prematurely end the game
Why are there 2 ClearHome commands? I don't see any usage of Disp or Output(, so even if it's used once to just clear up the screen and make it look nice, I don't think a second one is necessary.
And for the graph initialization at the start, running ZStandard and then ZInteger is redundant - ZInteger overwrites the settings set by ZStandard.
In addition, your code
could be shortened to
and the code
can probably be simplified too, but I'm too tired right now to try to figure out how to optimize it.
Overall, though, great game! Keep up the good work!
Oh, and I was wondering, when you decided to store K to G, you wrote:
is confusing too. Why are you checking for K=25 (The up arrow)? You never reference it in the code at any other point, and it seems like a waste of bytes and speed. Unless I'm missing something here.
The up arrow is checked to make you on your motorcycle go straight. If you used the arrow keys, it would continuously go in the left or right direction. Yes, there are optimizations that can be made. This game was made almost two years ago, so I had less knowledge with TI-Basic. Go ahead and optimize them :)
I could probably remake this game and make it faster with Celtic III…
If you'd like, you can check out other games here that I made.
You can also check the archives here.
Also Z_dude, please edit your posts and add content to the original post instead of posting several times, so it can make posts cleaner to read. Thanks! :)
Hewwo, my name is Achak Claw. I was formerly BioHazard.
Ahh, thanks. Sorry about that.