Search found 227 matches

by iPoisonxL
Sat Jan 17, 2015 9:45 pm
Forum: General
Topic: Joke/pun thread
Replies: 40
Views: 33410

Re: Joke/pun thread

Doctory wrote:what did the programmer say to the other blind programmer?
do you C?

ahah im bad at puns ;-;
Other version:

Why does the Java programmer wear glasses? Because he can't C#
by iPoisonxL
Wed Jan 14, 2015 7:09 pm
Forum: General
Topic: Joke/pun thread
Replies: 40
Views: 33410

Joke/pun thread

Let's have some fun and share some jokes & puns with each other. After all, in the description of this forum, it does mention puns doesn't it?

I'll start with a programming pun:
Why did the functions stop calling each other?

Because they had constant arguments.
by iPoisonxL
Wed Jan 14, 2015 6:45 am
Forum: Support and Development
Topic: Jumping with a rectangle
Replies: 8
Views: 3330

Re: Jumping with a rectangle

I'm using http://learnyouahaskell.com, kikito. It's a very good guide but I've had to go to the IRC chat twice so far to get some basic understanding on function currying (all functions take one parameter, but return a function that take another etc) and other stuff that is totally off for programmi...
by iPoisonxL
Fri Jan 09, 2015 3:56 am
Forum: Support and Development
Topic: Jumping with a rectangle
Replies: 8
Views: 3330

Re: Jumping with a rectangle

Azhukar wrote:

Code: Select all

if(self.y+self.yvel*dt>=400-self.h)then
Forgot * dt
Thank you!! I don't think my brain is working too well I've been doing too much Haskell.

myBrain :: Haskell -> Lua

exception: cannot get type Haskell and return Lua
by iPoisonxL
Fri Jan 09, 2015 3:35 am
Forum: Support and Development
Topic: Jumping with a rectangle
Replies: 8
Views: 3330

Re: Jumping with a rectangle

Azhukar wrote:By adding velocity to the check.

Code: Select all

if(self.y+self.yvel>=400-self.h)then
It just does this...

Image
by iPoisonxL
Fri Jan 09, 2015 3:21 am
Forum: Support and Development
Topic: Jumping with a rectangle
Replies: 8
Views: 3330

Jumping with a rectangle

Hello! Just a quick question, how do I eliminate the tiniest bit of lag I get when I have a rectangle jump and land? To clarify: Here's some code if(self.y>=400-self.h)then --if y is greater than the ground height self.yvel = 0 self.y = 400 - self.h self.onGround = true else self.y = self.y + (self....
by iPoisonxL
Wed Dec 24, 2014 12:21 am
Forum: Support and Development
Topic: How would I make a option slider[EX: volume changing slider]
Replies: 4
Views: 3882

Re: How would I make a option slider[EX: volume changing sli

To create gui components such as sliders easily, you could use Love Frames https://love2d.org/forums/viewtopic.php?f=5&t=9116 or Quickie https://love2d.org/forums/viewtopic.php?f=5&t=7811 . There are probably other gui-libraries but those are the two that I've tried and they both seem to ha...
by iPoisonxL
Mon Dec 22, 2014 3:10 am
Forum: Support and Development
Topic: Where to begin with RayTracing?
Replies: 8
Views: 4056

Re: Where to begin with RayTracing?

I guess that is what I get when I try to pull bad code out of bigger portion. I forgot to disable the wasd-keys. Basically the whole point of the thing is just to kind of calculate the "light" area when you drag lines (set walls) with left mouse button. You can turn the light area with ri...
by iPoisonxL
Sun Dec 21, 2014 10:50 pm
Forum: Support and Development
Topic: Where to begin with RayTracing?
Replies: 8
Views: 4056

Re: Where to begin with RayTracing?

I was trying to do something what you have in the picture, although the code I did for LUA is pretty much vommit, tons of globals etc, but here is the code. It probably also has some strange debug output not to mention finnish names I think. It was one of those first lines I did write in LUA. Altho...
by iPoisonxL
Sun Dec 21, 2014 3:29 pm
Forum: Support and Development
Topic: Where to begin with RayTracing?
Replies: 8
Views: 4056

Re: Where to begin with RayTracing?

Thanks both of you, I'm looking into the tutorials and video now. edit: I'm trying to understand these, but I'm just not able to write it down in lua. This is ultimately what I'm trying to achieve: https://love2d.org/imgmirrur/38eetk2.png I didn't make this but it's in my folders for reference, exce...