bluetechnx
July 9th, 2005, 05:31 PM
Hello,
I have been looking around the net for packaging ruby files and also into the the level editor details. I was wondering if you had any ideas how to begin a level editor.
I suppose that for a tile-based approach have tiles of certain sizes (8x8, 16x16,32x32..ect) and have a map canvas (grid layout) to place tiles into...
So once that is done though, how do you encode data like "this is a wall" or "asteroid" and the ship can't pass through say this region which is 16x16: [[8,8][24,24]] to create what is typically called a .lvl file (bmp + this "objects" data).
Also, how would using tiles allow for pixel collesion. So say you have a wall in a tile (that isn't the WHOLE tile)...encoding that tile as a wall would be a bad thing because on the screen you'd hit an invisible wall....
Anyways...perhaps somebody could help enlighten me. Also what would you guys use for a gui toolkit in this case? Having used a fair bit of Java Swing...I just don't relish using any Ruby gui toolkits....perhaps I'm wrong...
I have been looking around the net for packaging ruby files and also into the the level editor details. I was wondering if you had any ideas how to begin a level editor.
I suppose that for a tile-based approach have tiles of certain sizes (8x8, 16x16,32x32..ect) and have a map canvas (grid layout) to place tiles into...
So once that is done though, how do you encode data like "this is a wall" or "asteroid" and the ship can't pass through say this region which is 16x16: [[8,8][24,24]] to create what is typically called a .lvl file (bmp + this "objects" data).
Also, how would using tiles allow for pixel collesion. So say you have a wall in a tile (that isn't the WHOLE tile)...encoding that tile as a wall would be a bad thing because on the screen you'd hit an invisible wall....
Anyways...perhaps somebody could help enlighten me. Also what would you guys use for a gui toolkit in this case? Having used a fair bit of Java Swing...I just don't relish using any Ruby gui toolkits....perhaps I'm wrong...