Search found 227 matches

by iPoisonxL
Fri Apr 25, 2014 8:43 pm
Forum: Support and Development
Topic: dependencies
Replies: 9
Views: 2147

dependencies

Hi. When compiling my game into a .exe, I need to put like 8 dll files in the same folder as the game itself, is there any way I can put it in a separate folder? Like, having the .exe in the main folder, and then having all the dll files in a dll folder (that is inside the main folder)?
by iPoisonxL
Sun Feb 16, 2014 10:16 pm
Forum: Support and Development
Topic: Random A or B
Replies: 13
Views: 4156

Re: Random A or B

Here's a more readable version of the answers that were posted earlier: function randomOr(num1, num2) local rand = math.random(0,1) --create a random number with a 50% chance between 0 and 1 if rand==0 then --if that number is 0 then return first argument return num1 else return num2 --if that numbe...
by iPoisonxL
Fri Feb 14, 2014 2:41 am
Forum: Games and Creations
Topic: Turret Thing
Replies: 0
Views: 1232

Turret Thing

This is a turret thing I made quickly because I had just learned about sin/cos/tan & their inverted functions in math class. I've been waiting to understand this code for a long time now, and now I do! Yay! Here's the thing I made with it. (Deceleration technique credit goes to micha) Have fun. ...
by iPoisonxL
Thu Feb 13, 2014 8:49 pm
Forum: Support and Development
Topic: Graphing a slope
Replies: 3
Views: 1014

Graphing a slope

Hi. I'm trying to graph a slope. The way I have it now doesn't do much, actually it doesn't work at all. Do any of you know how? function love.load() y = 0 m = 3 b = 10 love.graphics.setPointSize(5) end function love.update() for i=1,800 do y = 3*i + b end end function love.draw() for i=1,800 do lov...
by iPoisonxL
Thu Feb 13, 2014 12:35 am
Forum: Libraries and Tools
Topic: Pseudo 3d tunnel (?)
Replies: 9
Views: 4438

Re: Pseudo 3d tunnel (?)

Ref wrote:I personally prefer this type of tunnel.
Aren't these just distorting the screen based on mouse position, though?
by iPoisonxL
Wed Feb 12, 2014 12:53 am
Forum: Libraries and Tools
Topic: Pseudo 3d tunnel (?)
Replies: 9
Views: 4438

Re: Pseudo 3d tunnel (?)

Hey, I made another thing, but don't think I should make a new thread for this. It's basically the same thing as my original post, only you can move up, down, left, and right with the arrow keys. Use W to go forwards. S to go backwards. Mouse to look around. Yes, I realize it's really badly made, bu...
by iPoisonxL
Tue Feb 11, 2014 11:40 pm
Forum: Libraries and Tools
Topic: Game of life, bring your version.
Replies: 15
Views: 6746

Re: Game of life, bring your version.

vrld wrote:I did a sound experiment a while back. Takes some time to load, but you will hear why.
I still can't figure this out... Can someone explain this to me? It's really neat, anyway.
by iPoisonxL
Tue Feb 11, 2014 8:45 pm
Forum: Support and Development
Topic: Smoothly rotate to face the cursor
Replies: 15
Views: 13902

Re: Smoothly rotate to face the cursor

This makes sense, thanks a lot.
by iPoisonxL
Tue Feb 11, 2014 12:29 am
Forum: Support and Development
Topic: Smoothly rotate to face the cursor
Replies: 15
Views: 13902

Re: Smoothly rotate to face the cursor

iPoisonxL's code is almost correct. One thing is missing, namely the two angles zero and 2pi are the same, even though the two numbers differ a lot. To determine whether to turn left or right, you need calculate diff as follows: local diff = (goal-current+math.pi)%(2*math.pi)-math.pi That way diff ...
by iPoisonxL
Sun Feb 02, 2014 4:24 pm
Forum: Libraries and Tools
Topic: Waveform
Replies: 4
Views: 3986

Re: Waveform

This makes a cool song. I like it.