| View previous topic :: View next topic |
| Author |
Message |
cgruber
Joined: 06 Sep 2005 Posts: 36
|
Posted: Tue Sep 06, 2005 6:42 am Post subject: Limitations? |
|
|
Anyone know what kind of limts there is on the number of pngs that can be drawn? A little background, I'm working on a sokoban clone and have decided to use 32x32 blocks so that 120 of them will pretty much completly fill the screen. In testing I create an array with 120 data points and then use that as my datamap for the level.
It works fine for about the first 32 drawn blocks (4 rows) but then seems to stop drawing them. The windows lua player is doing the same thing so it might be something I'm doing as well. Ideas? |
|
| Back to top |
|
 |
flattspott
Joined: 22 Aug 2005 Posts: 22
|
Posted: Tue Sep 06, 2005 7:52 am Post subject: |
|
|
Its probably you code. Post the part that your using to draw your tiles or whatnot.
Rightnow I am working on two grid based games myself
The first is 5x5 @ 25 tiles
The second is 7x13 @ 91 tiles |
|
| Back to top |
|
 |
cgruber
Joined: 06 Sep 2005 Posts: 36
|
Posted: Tue Sep 06, 2005 11:18 am Post subject: |
|
|
Yep I was doing something wrong and the funny thing is I still don't know what but it works perfect now. Although I did decide to go with
14 32x32 tiles across instead of 15 to give it a little border. |
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Tue Sep 06, 2005 6:16 pm Post subject: |
|
|
@cgruber, how do you get 14 32x32 tiles on a psp screen? that would be 448x448px (psp has 480x272)
--> so i use 17lines and 17 rows of 16pxx16px and my screen is full, all the way down (with blocks on the side to add score aso) |
|
| Back to top |
|
 |
cgruber
Joined: 06 Sep 2005 Posts: 36
|
Posted: Tue Sep 06, 2005 9:15 pm Post subject: |
|
|
width = 480
480/32 = 15 across
height=272
272/32 = 8.5 down (round down to 8)
So you can have 8 rows of 15 32x32 blocks or 120 total.
I scaled it back to 14 across and 8 down so I have a bit of an edge around the blocks thou so I can display a maximum of 112 32x32 blocks. |
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Tue Sep 06, 2005 9:38 pm Post subject: |
|
|
ah, thought you are using squares, not rectanlges :)
what about showing some progress? :D |
|
| Back to top |
|
 |
cgruber
Joined: 06 Sep 2005 Posts: 36
|
Posted: Tue Sep 06, 2005 11:21 pm Post subject: |
|
|
Sure this where I am since I started yesterday.
The circle is the movable charector, the level engine is almost complete. Object hit detection is working as well. Still need to have pushable boxes.
If someone wants to help with graphics that would be great. |
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Tue Sep 06, 2005 11:27 pm Post subject: |
|
|
nice one! keep it up!
if you need help with gfx, i may help out |
|
| Back to top |
|
 |
cgruber
Joined: 06 Sep 2005 Posts: 36
|
Posted: Thu Sep 08, 2005 1:05 am Post subject: |
|
|
Well you can now play the game although there's only one level and the game doesn't know that you won yet.
Still need to figure out the best way to do the winning spots on the map.. |
|
| Back to top |
|
 |
|