-
Content Count
6 -
Joined
-
Last visited
Posts posted by Jmche108
-
-
If you know that (rand&127) gives you a range between 0 and 127 and you need less than that, the "Did You Know?" box has the answer. It's also helpful to use this program to find the exact range you are looking for:
randomterrain.com/atari-2600-memories-batari-basic-commands.html#find_border_coordinates
I didn't see the program. Problem fixed, Thanks
-
Look at the "Did You Know?" box here:
randomterrain.com/atari-2600-memories-batari-basic-commands.html#rand
Yeah I looked at it but I'm still not sure how to go about my problem. I need player1 to spawn randomly on the x axis but within a range. The code I have now makes player1 spawn out of the playfield.
-
Ok, I have a basic idea of what the code means.
IF player1y >= _BottomOfScreen then score=score-1:a=a-1:player1y = 0:player1x=(rand&127) + 22 : goto deadsound
If player1 goes to the bottom of the screen then -1 score. player1 on the y axis is equal to 0, player 1 on the x axis is equal to
random.
What I don't understand is the last part "=(rand&127) + 22".
How do I make it where player1 spawns anywhere between point a and point b on the x axis.
I don't want player 1 to spawn at the very edge of the screen.
Thanks
-
-
Hello, I am a complete noob to Batari basic. So far I have made a spinoff of a tutorial I have watched on YouTube. I would like to change the player1 sprite movement but I don't know how. I would like for player1 sprite to move vertically down the screen to where if you let the sprite pass you and exit the screen, you lose a life. Right now the sprite will move to your location. Sorry for my lack of knowledge. Thanks
You can look at the .bas file to see what I'm talking about.

Tie fighter
in batari Basic
Posted · Edited by Jmche108
Hello, I have just finished up my first game using Batari basic. This game is very minimal because my knowledge is minimal. I'm looking for feedback on what I should add or if there is anything to fix. I added the .bas so you can mess with the code if you want. I plan to have this put on a cartridge when it's polished up. Thanks in advance.
tiefighter.bas
tiefighter.bas.bin