Search found 11 matches

by arrggg
Sat Nov 12, 2005 3:40 am
Forum: PSP Lua Player Development
Topic: ok...simple NOOB problem...
Replies: 14
Views: 5917

I wrote an algorithm for ball bouncing in other language. No time to dig up where I put it on my 160GB HD. But here is a hint: Say the moving ball has a new position (x2,y2) to move from the previous position (x1,y1). If x2 is outside of the vertical wall, mirror it and keep y2 unchanged. Likewise,...
by arrggg
Sat Nov 12, 2005 3:20 am
Forum: PSP Lua Player Development
Topic: ok...simple NOOB problem...
Replies: 14
Views: 5917

assuming:
Begining angle 45 = after bounce 135
Begining angle 80 = after bounce 100


function object.bounce(o)
o.dir = (90 + (90 - (o.dir)) )
if o.dir < -360 then o.dir = o.dir+360 end
end

This is untested.
by arrggg
Sat Nov 05, 2005 12:46 am
Forum: PSP Lua Player Development
Topic: transparent photo
Replies: 7
Views: 3143

Bob535 wrote:ummmm... how about you just put it in photoshop and do it yourself
Translation: Steal Photoshop from a P2P, crack it and do it yourself.


Bob535, that would be wrong, not everybody steals software like you do!
by arrggg
Fri Oct 14, 2005 7:03 am
Forum: PSP Lua Player Development
Topic: [WIP] Clock in the Sky
Replies: 16
Views: 6469

KawaGeo wrote:BTW, i'd prefer red LED's instead of black. There is no such as black LED's.
Unless it's a BlackLight LED:
http://members.misty.com/don/ledbl.html
by arrggg
Wed Oct 12, 2005 4:15 am
Forum: PSP Lua Player Development
Topic: please help me debug my code
Replies: 2
Views: 1970

is "bottom" and "top" defined?
by arrggg
Sat Oct 08, 2005 8:40 am
Forum: PSP Lua Player Development
Topic: [Lua Tutorial] So you wanna different font..
Replies: 25
Views: 12716

Allright, looks great... I need to cleanup my code now.
by arrggg
Fri Oct 07, 2005 11:45 pm
Forum: PSP Lua Player Development
Topic: [TUT] What is a finite state machine?
Replies: 1
Views: 1853

Thanks for the great tutorial! I got a couple ideas for this now.
by arrggg
Fri Oct 07, 2005 9:12 am
Forum: PSP Lua Player Development
Topic: [Lua Functions] Image Rotate & Image Scale
Replies: 2
Views: 2110

it's not that bad really.
by arrggg
Fri Oct 07, 2005 5:25 am
Forum: PSP Lua Player Development
Topic: [Lua Functions] Image Rotate & Image Scale
Replies: 2
Views: 2110

[Lua Functions] Image Rotate & Image Scale

Here's some functions I came up with; I hope someone finds them useful. function rotateImage&#40;theImage&#41; newImage = Image.createEmpty&#40;theImage&#58;height&#40;&#41;, theImage&#58;width&#40;&#41;&#41; for x = 1, theImage&#58;width&#40;&#41;...
by arrggg
Fri Oct 07, 2005 5:16 am
Forum: PSP Lua Player Development
Topic: [Lua Tutorial] So you wanna different font..
Replies: 25
Views: 12716

[Lua Tutorial] So you wanna different font..

Pixel Fonts: ~~~~~~~ First things first I want to say I learned/stole/modified alot of this stuff from LuMo ( http://lumo.at.tt ) Okay, We need to find a font to download: I found some good fonts here http://lumo2000.lu.funpic.de/?action=fonts (careful some of the pics are bigger then 512 so won't w...
by arrggg
Thu Sep 29, 2005 10:12 am
Forum: PSP Lua Player Development
Topic: powerGetBatteryLifePercent ???
Replies: 2
Views: 2517

powerGetBatteryLifePercent ???

I tried a simple program.. System.usbDiskModeActivate&#40;&#41; -- Battery Level View white = Color.new&#40;255, 255, 255&#41; screen&#58;clear&#40;&#41; batlev = System.powerGetBatteryLifePercent&#40;&#41; screen&#58;print&#40;11, 2, string.format&#40...