Amiga.org

Operating System Specific Discussions => Other Operating Systems => Topic started by: Florida on June 05, 2012, 08:24:36 PM

Title: Very simple sprite programming on C64 in Basic?
Post by: Florida on June 05, 2012, 08:24:36 PM
Anyone have a very simple script for a manoeuvrable sprite with the joystick in basic? A sprite made of a data lines.
 
How about loading a picture file with six different pictures like of a person walking, is that easy and possible in basic?
Title: Re: Very simple sprite programming on C64 in Basic?
Post by: kamelito on June 05, 2012, 08:54:21 PM
Quote from: Florida;695377
Anyone have a very simple script for a manoeuvrable sprite with the joystick in basic? A sprite made of a data lines.
 
How about loading a picture file with six different pictures like of a person walking, is that easy and possible in basic?

You should ask on lemon64 or CSDB or comp.sys.cbm. It's easier to do on a C128, easier maybe on the 64 using simon's basic.  Kamel
Title: Re: Very simple sprite programming on C64 in Basic?
Post by: Nostalgiac on June 05, 2012, 09:05:44 PM
gosh... it's one of the first things I ever did. I used an example from the C64 reference guide and build on that. The trouble is ... it's to slow in BASIC.
Loading the sprite from data lines was slow to start with (even just one). Steering the "moon-lander" to a safe landing (yes, I wasn't very original...) turned out to be so slow my next step was learning assembly :/

Tom UK
Title: Re: Very simple sprite programming on C64 in Basic?
Post by: kamelito on June 05, 2012, 09:17:16 PM
Quote from: Florida;695377
Anyone have a very simple script for a manoeuvrable sprite with the joystick in basic? A sprite made of a data lines.
 
How about loading a picture file with six different pictures like of a person walking, is that easy and possible in basic?

 You've a bouncing sprite in here, http://unusedino.de/ec64/technical/project64/users_guide2.html  Kamel
Title: Re: Very simple sprite programming on C64 in Basic?
Post by: vidarh on June 05, 2012, 11:28:00 PM
Quote from: kamelito;695383
You've a bouncing sprite in here, http://unusedino.de/ec64/technical/project64/users_guide2.html  Kamel


Awesome - the Balloon sprite reproduced in even poorer quality than the original print :)

Btw. scans of the manuals are available here, though frankly the ASCII version referenced above is probably more convenient:  http://www.bombjack.org/commodore/commodore/
Title: Re: Very simple sprite programming on C64 in Basic?
Post by: kamelito on June 06, 2012, 11:50:14 AM
lot of listing for old computers from a french magazine, there's a C64 page so I suppose that there's a lot of basic code for you to try.
Kamel
http://www.hebdogiciel.fr/COMMODORE%2064.htm
Title: Re: Very simple sprite programming on C64 in Basic?
Post by: Florida on September 08, 2012, 09:56:30 PM
Thanks for all the link!