forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Limitations?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Tue Sep 06, 2005 6:42 am    Post subject: Limitations? Reply with quote

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
View user's profile Send private message
flattspott



Joined: 22 Aug 2005
Posts: 22

PostPosted: Tue Sep 06, 2005 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Tue Sep 06, 2005 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Tue Sep 06, 2005 6:16 pm    Post subject: Reply with quote

@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
View user's profile Send private message Visit poster's website
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Tue Sep 06, 2005 9:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Tue Sep 06, 2005 9:38 pm    Post subject: Reply with quote

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

what about showing some progress? :D
Back to top
View user's profile Send private message Visit poster's website
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Tue Sep 06, 2005 11:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Tue Sep 06, 2005 11:27 pm    Post subject: Reply with quote

nice one! keep it up!
if you need help with gfx, i may help out
Back to top
View user's profile Send private message Visit poster's website
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Thu Sep 08, 2005 1:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group