Search found 8 matches

by JetSpike
Sat Mar 18, 2006 2:38 pm
Forum: PSP Lua Player Development
Topic: Fade Image (screen) to black
Replies: 2
Views: 2163

Yeah, it's weird, only two values work when blitting to an image, but when I blit to the screen directly, I can use any value I want.
by JetSpike
Sat Mar 18, 2006 1:22 pm
Forum: PSP Lua Player Development
Topic: Fade Image (screen) to black
Replies: 2
Views: 2163

Fade Image (screen) to black

I have created an image like this: imgAlpha = Image.createEmpty(480,272) clrAlpha = Color.new(0,0,0,150) imgAlpha:fillRect(0,0,479,271,clrAlpha) So now I have a black rectangle the size of the screen with an alpha value of 150. I have another image: imgToFade = Image.createEmpty(480,272) imgToFade:c...
by JetSpike
Fri Feb 03, 2006 11:47 am
Forum: PSP Lua Player Development
Topic: Lua Player 0.17dk1
Replies: 8
Views: 5719

Is it possible to add a feature to load a png that is greater than 512x512. Or to at least specify loading of a 512x512 region from a larger png?
by JetSpike
Fri Feb 03, 2006 11:45 am
Forum: PSP Lua Player Development
Topic: [Final Release] Zorblocks v1.0
Replies: 7
Views: 7282

Looks good, I need to download and try it out.

I've been working on a LUA game almost exactly like this. I have a question for you:

Are the levels pre-defined, or are they randomly generated? (I would guess they are pre-defined)
by JetSpike
Tue Jan 17, 2006 11:32 am
Forum: PSP Lua Player Development
Topic: Need Help With Printing Large Numbers
Replies: 2
Views: 1600

Nevermind, I came up with a hack to get the job done, it anyone is interested here is the code I am using: if intTotalScore >= 100000 then iScore = tostring(math.floor(intTotalScore/100000)) .. tostring(intTotalScore - (math.floor(intTotalScore/100000))*100000) fScore:print(300,250,iScore) else fSco...
by JetSpike
Tue Jan 17, 2006 10:18 am
Forum: PSP Lua Player Development
Topic: Need Help With Printing Large Numbers
Replies: 2
Views: 1600

Need Help With Printing Large Numbers

Here is what happens:

x = 123456
print(x)
------------
1.2346+e05


Here is what I want:
x = 123456
print(x)
-------------
123456


Can anyone help me achieve this?
by JetSpike
Thu Dec 08, 2005 1:37 pm
Forum: PSP Lua Player Development
Topic: sound stopping
Replies: 13
Views: 5697

Load your sound file into a variable like this: (use false if you don't want it to loop)

mySound = Sound.load("sound.wav",true)

Then later you can stop it by using:

mySound:stop()
by JetSpike
Mon Sep 19, 2005 2:42 am
Forum: PSP Lua Player Development
Topic: Background Music for your Lua Games -
Replies: 4
Views: 2901

Example code doesn't work

track1 = Sound.load("audio1.wav",true) track1:play() This doesn't work, my game just freezes, and then the psp turns off. I took out the true parameter, and that fixes it. But the music doesn't loop anymore. I tried: Music.playFile("audio1.wav",true) But that freezes and turns of...