Jump to content
IGNORED

Tutorial?


jman1093

Recommended Posts

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

 

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
Link to comment
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...

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...