Search found 43 matches

by VgSlag
Tue Apr 11, 2006 6:31 pm
Forum: PSP Lua Player Development
Topic: Game of Life speed help
Replies: 15
Views: 7057

Hey Lumo, I started Pyramid Panic after I split up with my girlfriend... I then subsequently got a new one meaning no free time for personal programing. I've just started working from home now meaning I no longer have to do 5 hours of commuting a day which means I now have free time!! I was knocking...
by VgSlag
Tue Apr 11, 2006 5:20 pm
Forum: PSP Lua Player Development
Topic: Game of Life speed help
Replies: 15
Views: 7057

Shine - Excellent!
KawaGeo - Great, thanks :)
Zenurb - Cheers, I was actually following those rules in this example but cheers for the help :)

Thanks for all your help guys, you've been great as usual.

G
by VgSlag
Tue Apr 11, 2006 9:35 am
Forum: PSP Lua Player Development
Topic: Game of Life speed help
Replies: 15
Views: 7057

Yes Jordy, we've established both that you don't like my code and also that there are better ways with less lines. I would hazzard a guess that "more efficent code" would be more efficent too, but without some examples or ideas it's not going to get any better. For my part I've been readin...
by VgSlag
Tue Apr 11, 2006 7:27 am
Forum: PSP Lua Player Development
Topic: Game of Life speed help
Replies: 15
Views: 7057

Jordy, surely my code is set out fine? Your statement seems a little odd. I would have thought that prefixing my variables with an indication of thier type would make it easier to understand, not harder. It lets people who read the code see what values I'll be pushing into the variables. But, that a...
by VgSlag
Tue Apr 11, 2006 1:47 am
Forum: PSP Lua Player Development
Topic: Game of Life speed help
Replies: 15
Views: 7057

I just knocked it together. Any tips on faster ways?
by VgSlag
Tue Apr 11, 2006 1:00 am
Forum: PSP Lua Player Development
Topic: Game of Life speed help
Replies: 15
Views: 7057

Game of Life speed help

Hi guys, I wrote "Game of Life" (not the board game) in Lua and it was running very slow. I used to get the pixel color to see if it was alive or not but then changed the alive state into a 2d array. My current code is: while not Controls.read():start(&#...
by VgSlag
Sat Mar 25, 2006 4:18 am
Forum: PSP Lua Player Development
Topic: Variable creation
Replies: 3
Views: 2098

Variable creation

How do I go about create variable names out of dynamic elements?

Say I wanted to create 10 vars:

myVar_0 - myVar_9

Using a for loop how would I write this please?

Thanks in advance.
by VgSlag
Sun Aug 14, 2005 9:59 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

That's lovely shine, speed is about 95% - 100% correct here and I'm not seeing any flickering either.

Well done :)
by VgSlag
Thu Aug 11, 2005 8:44 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Nevyn, I've noticed the new looping on sounds doesn't work for extended periods of time. I've got 2 sounds in my game, 1 looping and 1 not. After a while I hear the looping one stop. The looping one always stops after I play the non looping one for the 32nd time if that helps. A nice idea for the o...
by VgSlag
Thu Aug 11, 2005 7:26 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Wicked, cheers for the warning :)
by VgSlag
Thu Aug 11, 2005 6:54 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Nevyn, I've noticed the new looping on sounds doesn't work for extended periods of time. I've got 2 sounds in my game, 1 looping and 1 not. After a while I hear the looping one stop. The looping one always stops after I play the non looping one for the 32nd time if that helps. A nice idea for the of...
by VgSlag
Thu Aug 11, 2005 5:00 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Nice one guys!

Shine, how much did the domain cost; do you want some money towards it?

My GFX card died Sunday night so I've had to code at work or very very slowly at home but I'll fix up the bugs in my game and add some more rooms today and Saturday.
by VgSlag
Wed Aug 10, 2005 7:24 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Nicwe one Nev... wasn't hassling, just saying. I realise it's a nightmare when people start mentioning bugs with a beta release :)

Cheers for your work Nev and Shine.
by VgSlag
Wed Aug 10, 2005 12:54 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

I've got it working with the above code but you have your true and false mixed up that the function returns. voice:playing() returns true when it's not playing, and false when it is or at least it seems that way. With: -- Has the sound finished? if sound_torch_playing:playing(&#4...
by VgSlag
Wed Aug 10, 2005 12:39 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

I didn't see that listed in the functions.txt.. only said it was available for Music and voice.

Will give it a shot incase they missed it out.

EDIT: Sorry, I think I was misreading the file.
by VgSlag
Tue Aug 09, 2005 10:14 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

I have it all updated with the new API. Adding sounds now. Is there any way to get a wav file to loop?
by VgSlag
Tue Aug 09, 2005 3:21 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Thanks shine, I'll update my game at lunch time at work and add some sounds to it then up a new version.

G
by VgSlag
Mon Aug 08, 2005 6:47 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Shine wrote: I've fixed the bug, I hope now everything is ok, perhaps someone can verify, if it is correct for every boundary case:
Thanks Shine, I'll check the latest compiled version with my game and see if it's fixed.
by VgSlag
Mon Aug 08, 2005 2:27 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Is anyone seeing an odd image bug when moving an image off the left hand side of the screen? I haven't tested any other scenarios but what I have is my BG being blitted to screen then blitting and alpha image (16 * 16) on top. When the character moves off the left hand side of the screen the image a...
by VgSlag
Sat Aug 06, 2005 10:28 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Is there a version with all the new functions in yet?
by VgSlag
Thu Aug 04, 2005 10:34 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

nevyn, that's brilliant news! I bought some sounds for the phone version of my game and my friend that does music made me some. I'm going to source or make a jumping sound and add some rooms over the weekend. Will up a new version on Sunday. Will all functionality remain the same when it gets added ...
by VgSlag
Thu Aug 04, 2005 10:14 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

nevyn, have you spoke to shine abou tadding this to the official release?
by VgSlag
Thu Aug 04, 2005 8:08 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Sorry, my mistake, will edit the original; Snow: timerout=0 timer=60 red = getColorNumber&#40;255, 0, 0&#41; while timerout < 60 do waitVblankStart&#40;60&#41; timerout=timerout+1 clear&#40;0&#41;; printText&#40;100, 50, "Timer&#58; " .. timerout, red&#4...
by VgSlag
Thu Aug 04, 2005 8:00 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Snow: Relational expressions Relational operators are supplied which return the boolean values true or false. == equal to ~= not equal to < less than > greater than <= less than or equal to >= greater than or equal to This came from: http://lua-users.org/wiki/ExpressionsTutorial Kins: Cool, I've alr...
by VgSlag
Wed Aug 03, 2005 9:55 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Does:

Code: Select all

while true do 
green = getColorNumber&#40;0, 255, 0&#41; 
blitImage&#40;0, 0, background&#41; 
blitImage&#40;200, 100, nextbutton&#41; 
printText&#40;300, 100, "test", green&#41; 
flipScreen&#40;&#41; 
end
Work?
by VgSlag
Wed Aug 03, 2005 8:53 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

emumaniac, mine so far is just an engine. I need to add enemies, a "goal" and build levels. I've recently split up with my girlfriend so have some free time at weekends now, I'll be working on mine this saturday and maybe Thursday evening. Once I have a full level up I'll do a soft release...
by VgSlag
Wed Aug 03, 2005 1:02 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

New version is up, running full speed! I even had to slow it down.

I've added animated tiles, only torches are in at the moment but I'm going to be doing the lava too.

I haven't included the EBOOT in the rar.
http://www.flash-git.net/pyramidPanic.rar

G
by VgSlag
Tue Aug 02, 2005 11:06 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Shine, wow! I realise now that I was waiting for vblank everytime i call that func and was looping 4 times so it was 4x slower than needs to be yeah? It looks so amazing running fast! I had all my tiles cut up from my other version of the game and have a level editor already built in Flash so I'll k...
by VgSlag
Tue Aug 02, 2005 10:21 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Agreed, that functionality would speed up dev time no end.
by VgSlag
Tue Aug 02, 2005 10:12 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 284956

Ok, The basic engine is done, you can't leave the room yet, I'll work on that when it's running better. D-pad left/right and X to jump, Triangle to take a screenshot. This is where I need your help, am I doing the rendering correctly? Am I messing up my blitting which is making it not run very fast ...