Jump to content

Photo

Aha! Now I get it!


17 replies to this topic

#1 Brad2600 OFFLINE  

Brad2600

    Quadrunner

  • 24,871 posts
  • Formerly known as Kepone, 2002-2012
  • Location:South Burlington, VT

Posted Mon Aug 8, 2005 12:38 PM

I can't for the life of me, make sense of Random Terrain's help page or anything. My mind is kind of overwhelmed now but I'd like to come back to Batari Basic and try to see if I can teach myself how to program in it.

Any advice or way to make it even more clearer so I can understand? Something like a step by step tutorial would be nice, especially if it came with a file that's ready to be edited and compiled and all. That is how I learned to program in java, using step by step and building sample programs.

Any help would be appreciated. I have a week ahead of me to find something to do and I want to play around with this. :D

Edited by Kepone, Wed Aug 10, 2005 11:56 AM.


#2 s0c7 OFFLINE  

s0c7

    Dragonstomper

  • 637 posts

Posted Mon Aug 8, 2005 4:13 PM

Don't try to take too much in at one time. Trust me, if you taught yourself Java you can do this too. My suggestion would be to look at Batari's sample program that comes with the compiler. Look at it and try to see what's going on. Once you feel you understand it (even if only a little), make a few minor changes to it and see if you can get them to work. Then just go from there.

Also, keep in mind there are other docs too. The help file that comes with the compiler and potatohead's User's Guide. The User's Guide in particular might make more sense to you.

Good luck!

Edited by s0c7, Mon Aug 8, 2005 5:04 PM.


#3 Brad2600 OFFLINE  

Brad2600

    Quadrunner

  • Topic Starter
  • 24,871 posts
  • Formerly known as Kepone, 2002-2012
  • Location:South Burlington, VT

Posted Mon Aug 8, 2005 5:23 PM

I'll take a look at the user guide sometime. Thanks for mentioning it.

#4 Brad2600 OFFLINE  

Brad2600

    Quadrunner

  • Topic Starter
  • 24,871 posts
  • Formerly known as Kepone, 2002-2012
  • Location:South Burlington, VT

Posted Tue Aug 9, 2005 10:43 AM

I downloaded what I thought was just plain Stella and it turned out to be StellaX. How come Stella is the emulator that it has to use? I can't figure with versions of Stella are which as well.

Any advice?

#5 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 28,863 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Tue Aug 9, 2005 1:01 PM

I downloaded what I thought was just plain Stella and it turned out to be StellaX. How come Stella is the emulator that it has to use? I can't figure with versions of Stella are which as well.

Any advice?

View Post

Did you go to this web site?

http://stella.sourceforge.net/

I downloaded this:

Download stella-1.4.2-win32.zip

I got stella and StellaX in the same package.

Edited by Random Terrain, Tue Aug 9, 2005 1:03 PM.


#6 SeaGtGruff OFFLINE  

SeaGtGruff

    Quadrunner

  • 5,566 posts
  • Location:South Carolina, USA

Posted Tue Aug 9, 2005 10:03 PM

I can't for the life of me, make sense of Random Terrain's help page or anything. My mind is kind of overwhelmed now but I'd like to come back to Batari Basic and try to see if I can teach myself how to program in it.

Any advice or way to make it even more clearer so I can understand? Something like a step by step tutorial would be nice, especially if it came with a file that's ready to be edited and compiled and all. That is how I learned to program in java, using step by step and building sample programs.

Any help would be appreciated. I have a week ahead of me to find something to do and I want to play around with this. :D

View Post


I agree with s0c7 that you should take it slow. Pick just a few commands at a time, and play around with them until you get the hang of how to use them. Obviously, DRAWSCREEN and GOTO will be two essential commands, because you need to draw the screen, and then keep looping back to redraw it. You don't need to try for anything fancy, just do simple little programs at first. For example, play with the PFHLINE, PFVLINE, and PFPIXEL commands to see how they work, and then you'll be able to design different playfields. Then try adding a player to see how that works. (Note that player shapes must be defined upside-down.) And once you can draw a player and position it wherever you want on the playfield, try moving the player around with the joystick commands, as in the sample program that comes with Batari BASIC.

Maybe we should do a tutorial series for Batari BASIC, as was done in the past for programming the 2600 in assembly? I'd be willing to contribute to such a series. In fact, I've started working on a simple adventure game, so maybe I could turn that into a tutorial, if anyone is interested?

Also, I'm curious how everyone is using Batari BASIC-- that is, on what kinds of computers, compiling manually or with a batch file, etc. For example, I'm using Windows, and the 2600IDE program.

Michael Rideout

#7 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 28,863 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Tue Aug 9, 2005 10:36 PM

Also, I'm curious how everyone is using Batari BASIC-- that is, on what kinds of computers, compiling manually or with a batch file, etc. For example, I'm using Windows, and the 2600IDE program.

View Post

Windows XP and the 2600IDE program for me. I don't do DOS. If it doesn't have a front end, they can stick it up their back end.

#8 Brad2600 OFFLINE  

Brad2600

    Quadrunner

  • Topic Starter
  • 24,871 posts
  • Formerly known as Kepone, 2002-2012
  • Location:South Burlington, VT

Posted Wed Aug 10, 2005 4:33 AM

A tutorial series would be awesome! I kind of have to follow along to simple instructions just to learn new things.

#9 s0c7 OFFLINE  

s0c7

    Dragonstomper

  • 637 posts

Posted Wed Aug 10, 2005 6:31 AM

Also, I'm curious how everyone is using Batari BASIC-- that is, on what kinds of computers, compiling manually or with a batch file, etc. For example, I'm using Windows, and the 2600IDE program.


This might need to go in a seperate thread.......

I'm using Win2k and doing everything from the command line. I do all my testing with z26.

#10 potatohead OFFLINE  

potatohead

    River Patroller

  • 4,404 posts
  • Location:Portland, Oregon

Posted Wed Aug 10, 2005 9:56 AM

Also, I'm curious how everyone is using Batari BASIC-- that is, on what kinds of computers, compiling manually or with a batch file, etc. For example, I'm using Windows, and the 2600IDE program.


This might need to go in a seperate thread.......

I'm using Win2k and doing everything from the command line. I do all my testing with z26.

View Post


Running Linux right now. (Mandrake 10.1 i586) No ide, just basic program in kwrite window (because it shows whitespace), open command shell and run script. I'll keep another kwrite window or two open to cut 'n paste code chunks. Using Random Terrain's help file in another window.

Will have IRIX up this weekend. (SGI)

For controls, I've got a PS2 dual shock connected through one of those little USB thingys.

#11 Brad2600 OFFLINE  

Brad2600

    Quadrunner

  • Topic Starter
  • 24,871 posts
  • Formerly known as Kepone, 2002-2012
  • Location:South Burlington, VT

Posted Wed Aug 10, 2005 12:01 PM

I finally sat down and read through Random Terrain's tutorial while working alongside with Batari Basic and the 2600ide.

I managed to edit the sample.bas file enough to create a little demo, complete with modified sprites that I made using the sprite editor. It looks cool to me so far.

My next step is figuring out how I can implement a missile and all that. Would be nice to have a sample program with missiles implemented that I can "borrow" code from to add into what I have just to understand how it works.

So far, I'm getting the hang of things! :D

I've attached the file for reference.

Attached Files



#12 s0c7 OFFLINE  

s0c7

    Dragonstomper

  • 637 posts

Posted Wed Aug 10, 2005 12:28 PM

My next step is figuring out how I can implement a missile and all that. Would be nice to have a sample program with missiles implemented that I can "borrow" code from to add into what I have just to understand how it works.


My source (included with the bin) uses a missile. I think if you look through the original bB thread there are some samples of missile use also.

I will warn you, I maintain old RPG programs (some written as far back as the 70's) in real life. RPG has it's own bizzare logic and it carries over into my other programs. My source may blow your mind, so if you look at it and it makes no sense - stop and look at something else.

Edited by s0c7, Wed Aug 10, 2005 12:28 PM.


#13 stephena OFFLINE  

stephena

    River Patroller

  • 3,355 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Wed Aug 10, 2005 2:47 PM

I downloaded what I thought was just plain Stella and it turned out to be StellaX. How come Stella is the emulator that it has to use? I can't figure with versions of Stella are which as well.

Any advice?

View Post

As Random Terrain said in a previous message, go to http://stella.sf.net. If you're confused about which one to get, always get the newest one (which as of right now is 1.4.2). Both Stella and StellaX are included in the same package.

Just a little FYI. Stella is the actual emulator, but it's commandline only. StellaX is a Win32 frontend that launches Stella. When Stella 2.0 is released in about a month, it will no longer contain StellaX. The new codebase contains a built-in GUI, frontend and debugger, so no external frontends will be needed any more.

Also, please only use http://stella.sf.net. Other sites have older 1.1-1.3 releases, and they neither work with Batari Basic nor are supported by the Stella team.

Long story short, always get the one with the highest version number and with 'win32' in the name (assuming you want the one for Windows, of course), and always get it from the main Stella website.

Steve

#14 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 28,863 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Aug 10, 2005 3:28 PM

When Stella 2.0 is released in about a month, it will no longer contain StellaX.  The new codebase contains a built-in GUI, frontend and debugger, so no external frontends will be needed any more.

View Post

Ahhhh . . . that's nice. Welcome to the 21st century. :) :thumbsup:

I love a built-in GUI, although external front ends are OK too as long as they work right.

Edited by Random Terrain, Wed Aug 10, 2005 3:30 PM.


#15 JLsoft OFFLINE  

JLsoft

    Space Invader

  • 22 posts

Posted Wed Aug 10, 2005 4:55 PM

Also, I'm curious how everyone is using Batari BASIC-- that is, on what kinds of computers, compiling manually or with a batch file, etc. For example, I'm using Windows, and the 2600IDE program.

View Post


I'm using Notepad/DOS' Edit/2600IDE here under XP, along with alienbill's javascript PlayerPal 2 for sprite editing.


I just as often use it in pure DOS 7.1 on my older DOS/WinXP laptop because Z26's sound works better, and the laptop is also my only choice during recent monsoon-induced power outages here :)

For DOS, I just had to rename some of the .asm files around (and hex-edit the 2600basic.exe to match one of them), edit the .bat file (because LFN/long filename support for DOS doesn't like "longfilename.ext.ext"), and replace the included DASM version with the newest DOS compile I could find: ftp://ftp.profzone.ch/vantage/members/kil...sm22007-dos.zip (linked to from http://www.biglist.c...7/msg00053.html)

#16 Dan Iacovelli OFFLINE  

Dan Iacovelli

    Quadrunner

  • 6,070 posts
  • Location:westchester,IL

Posted Wed Aug 10, 2005 6:04 PM

I'm using 2600IDE as well with help from a ti-extended basic book and a graph of the playfield I did in MS word.(windows xp)

Edited by Dan Iacovelli, Wed Aug 10, 2005 6:04 PM.


#17 batari OFFLINE  

batari

    )66]U('=I;B$*

  • 6,680 posts
  • begin 644 contest

Posted Wed Aug 10, 2005 6:12 PM

Also, I'm curious how everyone is using Batari BASIC-- that is, on what kinds of computers, compiling manually or with a batch file, etc. For example, I'm using Windows, and the 2600IDE program.

View Post


I'm using Notepad/DOS' Edit/2600IDE here under XP, along with alienbill's javascript PlayerPal 2 for sprite editing.


I just as often use it in pure DOS 7.1 on my older DOS/WinXP laptop because Z26's sound works better, and the laptop is also my only choice during recent monsoon-induced power outages here :)

For DOS, I just had to rename some of the .asm files around (and hex-edit the 2600basic.exe to match one of them), edit the .bat file (because LFN/long filename support for DOS doesn't like "longfilename.ext.ext"), and replace the included DASM version with the newest DOS compile I could find: ftp://ftp.profzone.ch/vantage/members/kil...sm22007-dos.zip (linked to from http://www.biglist.c...7/msg00053.html)

View Post

In the upcoming Alpha 0.3, you can use a command-line option to use an alternate variable alias file if you wish to use plain DOS. You'll still need to edit the batch file, rename the asm files and make your own includes file to match the renamed asm files, but you will no longer need to hex-edit the .exe.

#18 stephena OFFLINE  

stephena

    River Patroller

  • 3,355 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Sat Aug 13, 2005 6:32 AM

Ahhhh . . . that's nice. Welcome to the 21st century. :)  :thumbsup:

I love a built-in GUI, although external front ends are OK too as long as they work right.

View Post

Just a note that this is a custom GUI, much like the interface in ScummVM. So it won't look like a Win32 app in Windows or a Cocoa app in OSX.

I expect to get some flack for this, but the one big advantage is that it will work everywhere, which has always been the #1 goal of Stella.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users