Search found 17 matches

by jimjamjahaa
Thu Oct 20, 2005 10:38 pm
Forum: PSP Lua Player Development
Topic: [Lua Tutorial] So you wanna different font..
Replies: 25
Views: 12792

hi all, i needed to use a font in my game and looked at this, and tried to get it to work, but the font i had was longer than 512 pixels, and i think that caused it to break because i get errors on loading the image so i redid the scripts to allow for multiple fonts and seperation between characters...
by jimjamjahaa
Thu Oct 20, 2005 6:16 am
Forum: PSP Lua Player Development
Topic: Png
Replies: 14
Views: 5917

are there any free programs that i can use because i dont want to pay $800 dollars to make an inch of a picture transparent.
gimp

it is teh ownage
by jimjamjahaa
Wed Oct 19, 2005 12:54 am
Forum: PSP Lua Player Development
Topic: Help with function to make array
Replies: 2
Views: 1629

local i, j, k = 0 fire = {} for i = 0, 19 do fire[i] = {} for j = 0, 11 do fire[i][j] = {} for k = 0, 4 do fire[i][j][k] = 0 end end end i *think* th...
by jimjamjahaa
Wed Oct 12, 2005 4:20 am
Forum: PSP Lua Player Development
Topic: please help me debug my code
Replies: 2
Views: 1986

-- globals red = Color.new(255, 0, 0); black = Color.new(0, 0, 0); white = Color.new(255, 255, 255); green = Color.new(0, 255, 0); pi = 3.141592653589 rm_menu = 0 rm_game = 1 room = rm_game inside = 0 top = 2 bottom = 4 left = 8 right ...
by jimjamjahaa
Wed Oct 12, 2005 4:19 am
Forum: PSP Lua Player Development
Topic: debugging
Replies: 1
Views: 1669

debugging

how to debug effectively?

i need to track some variables and the like

sorry for all the questions, i appriciate the help i get :)
by jimjamjahaa
Wed Oct 12, 2005 3:27 am
Forum: PSP Lua Player Development
Topic: What did i do wrong?
Replies: 5
Views: 3453

I didn't include mp3, because you have to pay for it: http://www.mp3licensing.com/royalty/ Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod This is absolute crap. I hate when companies attempt to comercialise file format...
by jimjamjahaa
Wed Oct 12, 2005 2:17 am
Forum: PSP Lua Player Development
Topic: please help me debug my code
Replies: 2
Views: 1986

please help me debug my code

i am trying to implement some clipping in to my game here are the 2 functions used for this function compOutCode&#40;x, y&#41; local outcode = 0 if y <0 then outcode = bottom end if y > 272 then outcode = top end if x < 0 then outcode = outcode + left end if x > 480 then outcode = outcode + ...
by jimjamjahaa
Tue Oct 11, 2005 5:30 am
Forum: PSP Lua Player Development
Topic: screen:drawLine(-10, -10, 100, 50, red) ie off screen
Replies: 4
Views: 2586

aha! i see.

thx again shine, you are the most helpful person ever :D

i will have to implement my own clipping etc.
by jimjamjahaa
Tue Oct 11, 2005 4:35 am
Forum: PSP Lua Player Development
Topic: screen:drawLine(-10, -10, 100, 50, red) ie off screen
Replies: 4
Views: 2586

hmm i see where you are coming from, but that seems like a lot of hassle, especially if i have much larger models being drawn etc. take a look at this http://host-a.net/getfile.php?usern=monkey%20dude&file=ship.zip (left click) move the ship off to the side and you will see what im talking about...
by jimjamjahaa
Tue Oct 11, 2005 3:30 am
Forum: PSP Lua Player Development
Topic: screen:drawLine(-10, -10, 100, 50, red) ie off screen
Replies: 4
Views: 2586

screen:drawLine(-10, -10, 100, 50, red) ie off screen

will result in the same as a screen:drawLine(0, 0, 100, 50, red) my question, how do you make it so that the line goes in the right place? ie to the edge of the screen as though it would end at -10, -10. im new to lua and building off of the paint tutorial :). if you need to see my code i can post i...
by jimjamjahaa
Mon Oct 10, 2005 8:46 am
Forum: PSP Lua Player Development
Topic: Please help, function fallin objects( ? )
Replies: 5
Views: 3155

you want a new "object" each time it gets to the trigger or just jump that one? if the former, you might concider actually using "objects" (not that they are really propper classes, but they are almost as good) ie block = {} block.x = 10 block.y = 10 block.vspeed = 1 kinda thing
by jimjamjahaa
Mon Oct 10, 2005 1:23 am
Forum: PSP Lua Player Development
Topic: System:getcwd() or whatever
Replies: 3
Views: 2544

relative you say? how handy....
by jimjamjahaa
Mon Oct 10, 2005 12:29 am
Forum: PSP Lua Player Development
Topic: System:getcwd() or whatever
Replies: 3
Views: 2544

System:getcwd() or whatever

how do you return the current working directory. need it in case people have it in a different dircetory :)

thx
by jimjamjahaa
Fri Oct 07, 2005 6:12 am
Forum: PSP Lua Player Development
Topic: Lua Player WiKi
Replies: 10
Views: 8302

eek! dont tell me i did that for nothing!? oh well.

where do you find documentation on the math library. on the official lua site it didnt go over it in any detail
by jimjamjahaa
Thu Oct 06, 2005 4:02 am
Forum: PSP Lua Player Development
Topic: Lua Player WiKi
Replies: 10
Views: 8302

chrz. yeah i shud have googled.... meh
by jimjamjahaa
Thu Oct 06, 2005 3:52 am
Forum: PSP Lua Player Development
Topic: Lua Player WiKi
Replies: 10
Views: 8302

over the years i have made lots of scripts for game dev. i ported over one of the most useful functions ever. here it is, i hope someone could put it in the wiki (i cant be bothered to learn how) -- you need to set pi as a global variable = to pi function point_direction&#40;x1,y1,x2,y2&#41;...
by jimjamjahaa
Mon Oct 03, 2005 5:04 am
Forum: PSP Lua Player Development
Topic: what is wrong with this code (or lua)?
Replies: 2
Views: 2059

what is wrong with this code (or lua)?

-- input handling if pad&#58;l&#40;&#41; then ship.aimdir = relative&#40;ship.aimdir +2&#41; end if pad&#58;r&#40;&#41; then ship.aimdir = relative&#40;ship.aimdir -2&#41; end ship.aimdir = math.abs&#40;ship.aimdir&#41; if ship.aimdir > 360 then ship....