View Full Version: sprite map maker

Omnimaga: The Coders of Tomorrow > Calculator projects and ideas > sprite map maker


Title: sprite map maker


billthecat - November 3, 2007 02:38 AM (GMT)
really easy sprite map maker for xlib. you put the sprites on a map, and it makes the matrix for you. supports multiple pic files (and all 256 pics) on one map. supports 8x8 and 16x16 sizes. i believe its already finished. you can email me at billthecat21@hotmail.com if you wanna have it, im not going to bother uploading it to any site. most of all, its easy


DJ Omnimaga - November 3, 2007 03:16 AM (GMT)
well i can always add it to this site when I get some time if you want. But I don't understand how you can get all 256 pics support on one map, because if i remember xLIB didn't grabbed sprites further than 3 pics away, for example if the main pic used for the map was 1 you could grab sprites from pic 2 and 3 but not the others

billthecat - November 3, 2007 01:31 PM (GMT)
QUOTE (DJ Omnimaga @ 2 Nov, 2007, 22:16)
well i can always add it to this site when I get some time if you want. But I don't understand how you can get all 256 pics support on one map, because if i remember xLIB didn't grabbed sprites further than 3 pics away, for example if the main pic used for the map was 1 you could grab sprites from pic 2 and 3 but not the others

thats not what i meant i just meant you can access any of the 256 pics, but not on one map :paf: :paf: :paf:

DJ Omnimaga - November 3, 2007 01:51 PM (GMT)
ah ok I see you edited your post now (it was saying 256 pics on one map) <_< thanks for claryfying up :P

billthecat - November 3, 2007 02:29 PM (GMT)
this is what it looks like

first you have your sprite sheet
user posted image

you paste the sprites onto your map
user posted image

and you have your completed matrix!
user posted image

nitacku - November 3, 2007 03:55 PM (GMT)
QUOTE (DJ Omnimaga @ 2 Nov, 2007, 22:16)
well i can always add it to this site when I get some time if you want. But I don't understand how you can get all 256 pics support on one map, because if i remember xLIB didn't grabbed sprites further than 3 pics away, for example if the main pic used for the map was 1 you could grab sprites from pic 2 and 3 but not the others

It only supports up to 256 sprites.
Since pictures can hold 96 sprites each, 256/96 = 2.666667 or in other words 2/3 of the third picture.

Now if you are working with 16x16 sprites, each picture can hold 24 sprites.
Therefore 256/24 = 10.666667 meaning up to 2/3 of the eleventh picture.

DJ Omnimaga - November 4, 2007 01:06 AM (GMT)
nice billithecat, does it supports 8x8 sprites too?

billthecat - November 4, 2007 03:31 PM (GMT)
ya it does, and now it has a collision detection generator that lets you box in the collision surfaces. it puts them in a string so you can just do if not(expr(str1:then:collision logic....

i have two questions.. does the length of the string affect the time it takes to expr( the string? and does if .. and .. take less time than if ... :then if ...

Halifax - November 4, 2007 06:28 PM (GMT)
You realize you can always time these things yourself. ;)
I don't think anyone would really know, off the hand.

billthecat - November 4, 2007 07:22 PM (GMT)
ok here is the collision mapper
user posted image

and here is your collision detector string!
user posted image

all you have to do is in your keypress loop put
x->e:y->f:if not(expr(str1:then:x+d->x
(d is number of px to move) and if there is a collision, your character will not move, otherwise, he'll move!
very easy to use.




* Hosted for free by InvisionFree