Jump to content
IGNORED

Help with multisprite kernel...


LukeBob13579

Recommended Posts

rem Hello World...

Alright... I'm having some issues. can someone teach me how to uuse the multisprite kernel to put animated sprites in it? i am a newbie so sorry for any inconvenience.

 

I want all 6 of the avaliable sprites to be animated, 1 frame animation as well. And I would appreciate the use of a joystick for controls for the mouse. Thanks!

 

Here is the .bas file.

 

Animated_Isometric_burger.bas.lst

Animated_coffee.bas.lst

Animated_Mouse.bas.lst

Animated_Fries.bas.lst

Animated_Pancakes.bas

Animated_Plate.bas

Link to comment
Share on other sites

here I've invoked the multisprite kernel

commented out the extraneous stuff

and set the frames of the pancake animation to

three different sprites

 

 

 set kernel multisprite
 set tv ntsc
 x=75 : y =75
 
 pfheight=1
 const screenheight = 80
 
 scorecolor = $1C
 
 playfield:
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
 ..............................
end
 
 
 
main
 COLUP0 = $00
 _COLUP1 = $1C
 COLUP2 = $30
 COLUP3 = $3A
 COLUBK = $86
 
 REFP1 = 0
 
 drawscreen
 
 c = c + 1
 if !(c & $0F) then f=f+1
 
 player0x=10
 player0y=10
 player1x=30
 player1y=30
 player2x=40
 player2y=40
 player3x=50
 player3y=50
 
 
 
 rem  if f=1 then 
 player1:
 %00000000
 %00011000
 %01111110
 %01100110
 %01111110
 %00011000
 %00000000
 %00000000
end
 rem   if f=1 then player1color:
 rem   $40
 rem   $20
 rem   $22
 rem   $24
 rem   $22
 rem   $20
 rem   $40
 rem   $40
 rem   end
 
 rem    if f=2 then
 player2:
 %00000000
 %00000000
 %00000000
 %00011000
 %00000000
 %00000000
 %00000000
 %00000000
end
 rem   if f=2 then player1color:
 rem   $40
 rem   $40
 rem   $40
 rem   $1E
 rem   $40
 rem   $40
 rem   $40
 rem   $40
 rem   end
 
 rem   if f=3 then
 player3:
 %00011000
 %01100110
 %10000001
 %10000001
 %10000001
 %01100110
 %00011000
 %00000000
end
 rem   if f=3 then player1color:
 rem   $0A
 rem   $0C
 rem   $0C
 rem   $0E
 rem   $0C
 rem   $0C
 rem   $0A
 rem   $40
 rem   end
 
 if f=3 then f=0
 rem  drawscreen
 rem   player1x=x :  player1y=y
 if joy0right then REFP1 = 0
 if joy0right then x=x+1
 if joy0left then REFP1 = 8
 if joy0left then x=x-1
 if joy0up then y=y-1
 if joy0down then y=y+1
 goto main
  • Like 1
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...