Limitations?

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Limitations?

Post by cgruber »

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?
flattspott
Posts: 22
Joined: Mon Aug 22, 2005 4:06 am

Post by flattspott »

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
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Post by cgruber »

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.
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

@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)
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Post by cgruber »

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.
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

ah, thought you are using squares, not rectanlges :)

what about showing some progress? :D
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Post by cgruber »

Sure this where I am since I started yesterday.
Image

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.
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

nice one! keep it up!
if you need help with gfx, i may help out
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Post by cgruber »

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..
Post Reply