Search found 5 matches

by CaptainChickenpants
Tue Feb 07, 2006 7:14 pm
Forum: PSP Lua Player Development
Topic: Using 2 .Lua's together
Replies: 5
Views: 2809

Dofile isn't the only method for running other scripts.
http://www.lua.org/pil/8.html

CC
by CaptainChickenpants
Thu Feb 02, 2006 7:07 pm
Forum: PSP Lua Player Development
Topic: I get stuck on a "Jump Function".
Replies: 6
Views: 3146

Well you are wanting the object to go up and then down. So the total distance travelled is height *2. Height is the halfway point, so once you are past height, you want to find out how far you are away from 2*height. The easiest way to understand these things is to draw it on a bit of paper and plot...
by CaptainChickenpants
Thu Feb 02, 2006 12:09 am
Forum: PSP Lua Player Development
Topic: Is this a know bug in the Windows Luaplayer?
Replies: 1
Views: 1817

Is this a know bug in the Windows Luaplayer?

I seem to have to do two flips to get my back buffer presented. Just to get myself familiar with Lua and the PSP LuaPlayer I have been modifying the tutorial examples and doing simple test apps. The following code is supposed to print hello world and count the number of presses of the up button (ooh...
by CaptainChickenpants
Wed Feb 01, 2006 8:20 pm
Forum: PSP Lua Player Development
Topic: I get stuck on a "Jump Function".
Replies: 6
Views: 3146

Ok. I have modified the code in the tutorial with the smiley so that it does a bounce when you press the up key. System.usbDiskModeActivate() green = Color.new(0, 255, 0) time = 0 ytime= 0 height=70 pi = math.atan(1) * 4 background = Image.load&#40...
by CaptainChickenpants
Wed Feb 01, 2006 2:42 am
Forum: PSP Lua Player Development
Topic: I get stuck on a "Jump Function".
Replies: 6
Views: 3146

Hi, I am not really a lua programmer, just found out about the PSP luaplayer. Looking at your code there are a few points. a) You are using ==, and = interchangeably. Not sure on the lua syntax but if it is similar to C then your second comparison with time,is actually an assignment. b) I have to as...