Welcome, Guest. Please login or register.

Author Topic: Very simple sprite programming on C64 in Basic?  (Read 1772 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline FloridaTopic starter

  • Full Member
  • ***
  • Join Date: Dec 2010
  • Posts: 195
    • Show only replies by Florida
Very simple sprite programming on C64 in Basic?
« 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?
 

Offline kamelito

Re: Very simple sprite programming on C64 in Basic?
« Reply #1 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
 

Offline Nostalgiac

  • Sr. Member
  • ****
  • Join Date: Dec 2006
  • Posts: 408
    • Show only replies by Nostalgiac
Re: Very simple sprite programming on C64 in Basic?
« Reply #2 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
2000/2060/128mb/2320/2gb/C64-3D/Hydra-Aminet on OS 3.9

c128/1541/1750/1351 with Dolphin Dos and eprom burner
 

Offline kamelito

Re: Very simple sprite programming on C64 in Basic?
« Reply #3 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
 

Offline vidarh

  • Sr. Member
  • ****
  • Join Date: Feb 2010
  • Posts: 409
    • Show only replies by vidarh
Re: Very simple sprite programming on C64 in Basic?
« Reply #4 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/
 

Offline kamelito

Re: Very simple sprite programming on C64 in Basic?
« Reply #5 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
 

Offline FloridaTopic starter

  • Full Member
  • ***
  • Join Date: Dec 2010
  • Posts: 195
    • Show only replies by Florida
Re: Very simple sprite programming on C64 in Basic?
« Reply #6 on: September 08, 2012, 09:56:30 PM »
Thanks for all the link!