IGNORED

# Tutorial?

## Recommended Posts

I'm new to programming in Batari (but not in BASIC), and I was wondering if there are any tutorials for Batari that teach you how to make the games rather than just install the program (refering to the one on the Batari website)

Any help would be appreciated!

jman1093

##### Share on other sites

Take a look at Random Terrain's Site.

Also take a look at this thread with code snippets and samples for beginners.

##### Share on other sites

Thanks for the help... The code snippets REALLY HELP

However, I am currently stuck on tutorial 4 (fire a missile), I don't understand what these lines are for:

``` if x>140 || missile0x>140 then missile0y=11

if !joy0fire then fire=0 : x=p0x : missile0x=0 : missile0y=0

if joy0fire then missile0x=x+8:missile0y=p0y-y-6

if fire<60 && missile0x>135 then missile0y=0
if fire<60 then x=x+2 else missile0y=0
if fire>250 then fire=25

fire=fire+1```

Thanks for the help

Edited by jman1093
##### Share on other sites

Hm... i assume you don't understand the boolean operators ?

##### Share on other sites

Nope... I get those. It's just that I don't know what this section even does for the program.

##### Share on other sites

Nope... I get those. It's just that I don't know what this section even does for the program.

Ok... I'm a bloody beginner myself and i suck at explaining things but basically the lines you asked about move the missile across the screen and check the missile x position and if the joystick button is pressed.

There are other people here who can explain this stuff much better so i hope one of them will answer your question in detail.

But meanwhile i found a thread with a tutorial that's really helpful for beginners:

http://www.atariage.com/forums/index.php?showtopic=111938

Btw, have you compiled anything with bB yet? I learned more stuff from playing around and changing sample code or games than i learned from reading tutorials...

##### Share on other sites

However, I am currently stuck on tutorial 4 (fire a missile), I don't understand what these lines are for . . .

Have you looked at these sections yet:

http://www.randomterrain.com/atari-2600-me...ds.html#boolean

http://www.randomterrain.com/atari-2600-me...ommands.html#if

##### Share on other sites

Yes I have read over those sessions and I understand them for I have programmed in BASIC before. I understand the basic commands, but what I don't get is what will happen when the button is pushed (I know that a missile would fire) but I want to know what each individual line does.

thanks

jman1093

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.