Page 2 of 2

Re: Sprites

Posted: Tue Dec 10, 2013 12:53 pm
by Dbug
Looks cute :)

Re: Sprites

Posted: Tue Dec 10, 2013 1:47 pm
by ibisum
Very cute looking - I like the monochrome effect of having motion on top of black/white background .. will be curious to see where you go with this.

Re: Sprites

Posted: Tue Dec 10, 2013 2:35 pm
by Iapetus
@Ibisum

It is a version of a game that was originaly coded for the ZX Spectrum.

Here you can check out my Commodore 64 port: http://www.youtube.com/watch?v=vp73Ls-Ovxw

Re: Sprites

Posted: Tue Dec 10, 2013 3:23 pm
by Chema
Looks really nice! Congrats.

Re: Sprites

Posted: Tue Dec 10, 2013 3:26 pm
by Iapetus
Chema wrote:Looks really nice! Congrats.
Thanks,

But just the sprite engine, gfx and level data are eating most of the memory, I would prefer to go for the tape version but it seems inevitable that it should move to disc version only.

Re: Sprites

Posted: Tue Dec 10, 2013 3:50 pm
by barnsey123
I'm sure you'll find some memory somewhere...just keep looking and thinking... :)

Re: Sprites

Posted: Tue Dec 10, 2013 6:49 pm
by peacer
The animation is so smooth really.

I wonder if sprite motor can be arranged to use under basic as if we are using sprites in c64?

So, for example : Lets say we have a machine code routine in memory and graphic data in somewhere else.

- Put sprite graphic data into predefined area
- Determine X and Y coordinates in memory
- Call machine code routine to show up sprite

This way, many games can be programmed easily with even basic using same algorithm

Lets say

10 POKE 0,1 ' SET SPRITE 1 : ON. This could be binary. For example 2 means only sprite 2 is on, 3 = sprite 1 and 2 is on, 4 = sprite 3 is on etc..
20 POKE 1,100 ' X coordinate of sprite 1
30 POKE 2,150 ' Y coordinate of sprite 1
40 CALL #1000 ' Put sprites to the screen according to defined memory locations
50 D-PEEK(5) ' Set 1 if sprite 1 is collided with something etc..

Like this..

I know its not easy as I wanted to explain but wouldn't be excellent for us who are not talented for machine code programming as you? :)

Re: Sprites

Posted: Tue Dec 10, 2013 10:56 pm
by coco.oric
Nice routines, sprites are moving smoothly
8)

Re: Sprites

Posted: Wed Dec 11, 2013 10:22 am
by Iapetus
Thank you all for the nice words / encouragement. :)