QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Lua Stuff: Code and Questions

This is a discussion on Lua Stuff: Code and Questions within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi Guys, Well, first off I finished my beta versions of asteriods and my RPG engine complete with mini RPG. ...

Reply
 
LinkBack Thread Tools
Old 04-03-2006, 07:14 PM   #1
 
Join Date: Sep 2005
Posts: 5
Trader Feedback: 0
Default Lua Stuff: Code and Questions

Hi Guys,
Well, first off I finished my beta versions of asteriods and my RPG engine complete with mini RPG. Sorry the graphics arn't transparent I have to go... "Buy" adobe photoshop or something. So I'll put that out there for anyone who wants the graphics or the code... or fun. Feel free to edit or use the code or graphics as you want. Oh, and before I forget a big thanks goes out to whoever it was that made that lua clock thing or w/e the sin/cos functions gave me what I needed to finish asteroids.

I'm going to completely re-write the asteriods game because of the lag it gets on PSP, even though all its graphics are simple drawLine functions : | and I was just wondering if anybody else found this much lag using internal graphics stuff like drawPixel and drawLine or w/e. Also what do you guys do when you find too much lag in your program? For asteroids I drew to an image instead of screen to try and get rid of some but when there's like 15 asteroids floating around it doesn't help much. Also has anyone noticed a considerable FPS speed increase when porting from lua to C? I was considering taking up porting my apps if there was. Also, this week I hope to start programming a much smoother (x,y or maybe completely 360*) tile scrolling function to use in games and such and I was just wondering if someone has already done this as part of their RPG or something. I've seen some good sidescrollers come out for lua and I'll probably end up basing some of my code around that. And finally I really want to program some emulated 3d game like quake, but I can't find any info on the subject. The closest I got was like emulated 3d graphics for QBasic... : ( can anyone recommend some information books or websites or w/e? OK thanks,
BakuraMx
BakuraMx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-03-2006, 07:16 PM   #2

SHOOP DA WHOOP
 
mannymix03's Avatar
 
Join Date: Aug 2005
Location: Wii forums
Posts: 7,404
Trader Feedback: 0
Default

well i know that if you overclock it then it should see a speed increase and also the drawline function is not the best for a game with as many objects (asteriods) on screen as you are saying...
__________________
Required ReadingPiracy Policy |Positive Posting

mannymix03 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-03-2006, 07:17 PM   #3
 
Join Date: Sep 2005
Posts: 5
Trader Feedback: 0
Default

Oh and also can anyone recommend a freeware program or something that can convert graphics to transparent PNG's? Cause that'd be cool. Kthanks.
BakuraMx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-03-2006, 07:21 PM   #4

SHOOP DA WHOOP
 
mannymix03's Avatar
 
Join Date: Aug 2005
Location: Wii forums
Posts: 7,404
Trader Feedback: 0
Default

Gimp
__________________
Required ReadingPiracy Policy |Positive Posting

mannymix03 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-03-2006, 07:24 PM   #5

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by mannymix03
Gimp
Gimp or Paint.NET
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-03-2006, 07:32 PM   #6

SHOOP DA WHOOP
 
mannymix03's Avatar
 
Join Date: Aug 2005
Location: Wii forums
Posts: 7,404
Trader Feedback: 0
Default

ahhh paint.net forgot that one....

use paint.net instead of gimp.... just my personal preferance
__________________
Required ReadingPiracy Policy |Positive Posting

mannymix03 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-04-2006, 01:52 AM   #7
 
will1234's Avatar
 
Join Date: Oct 2005
Real First Name: Will
Location: Sheffield, UK
Posts: 844
Trader Feedback: 0
Default

i could do some transparancies for you if you like i have photoshop, paint shop pro and GIMP

*edit* and now i have paint.net.
will1234 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-04-2006, 03:34 AM   #8
 
Altair's Avatar
 
Join Date: Jan 2006
Posts: 506
Trader Feedback: 0
Default

Quote:
Originally Posted by mannymix03
... the drawline function is not the best for a game with as many objects (asteriods) on screen as you are saying...
Yeah i noticed that too. Why does the fps go down so much by just drawing 4 lines, im using it to make a selectionbox? When the box becomes bigger and bigger, the fps goes down more and more. Its really annoying.
__________________
LUA manual:
[url]http://www.lua.org/manual/5.0/manual.html[/url]

LUA Wiki:
[url]http://wiki.ps2dev.org/psp:lua_player[/url]
Altair is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-04-2006, 04:33 AM   #9
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

I'm in the process of making something similar to asteroids, called Traveller. It uses basic 2d physics and trigonometry. I used to use drawline for the graphics, and I didn't notice any reductions in speed :O

I've never used LUA, but if other scripting languages are anything to go on you will see a huge performence boost if you were to write your program in C. You calculate vectors etc on a different thread than your render thread, although I think I remember reading that multi-threading is one target for LUA in the future.
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL]

[CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER]

Last edited by Psilocybeing; 04-04-2006 at 04:37 AM..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-04-2006, 04:45 AM   #10
 
will1234's Avatar
 
Join Date: Oct 2005
Real First Name: Will
Location: Sheffield, UK
Posts: 844
Trader Feedback: 0
Default

ye ur traveller game looks great. especially when its on my psp :mrgreen:
will1234 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
code , lua , questions , stuff

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 05:51 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us