Search found 81 matches

by bdjnk
Tue Aug 13, 2013 12:54 am
Forum: Support and Development
Topic: Lua, varaibles, and breaking things
Replies: 11
Views: 3694

Re: Lua, varaibles, and breaking things

Nice work Robin!

Perhaps you should try some diagramming software for the drawings :)

Also, I think your deep copy diagram is wrong...
by bdjnk
Sun Aug 11, 2013 6:56 pm
Forum: General
Topic: What do you do while you code?
Replies: 35
Views: 12532

Re: What do you do while you code?

Sometimes I listen to music, but mostly I pump clenched fists angrily and curse my computer, the language, my own silliness, etc.
by bdjnk
Sun Aug 11, 2013 6:49 pm
Forum: Support and Development
Topic: Lua, varaibles, and breaking things
Replies: 11
Views: 3694

Re: Lua, varaibles, and breaking things

Copying is complicated. The question of expected behavior becomes thorny. See discussions about deep vs. shallow copies and copy contructors (in c++). In many (most?) programming languages, non-primitive variables are just pointers to some memory, which may contain pointers to some more memory, and ...
by bdjnk
Sat Jul 06, 2013 2:23 am
Forum: Support and Development
Topic: 8 direction diagonal movement difficulties
Replies: 14
Views: 8482

Re: 8 direction diagonal movement difficulties

Hey, thanks verilog and Bobbias!

I also found some good information in this discussion.

I guess my keyboard is just cheap as hell. Time to get a better one.
by bdjnk
Sat Jul 06, 2013 2:15 am
Forum: General
Topic: Help!
Replies: 1
Views: 1667

Re: Help!

See this tool as well as the ParticleSystem and love.mouse documentation.

Also, you may want to read this.
by bdjnk
Sat Jul 06, 2013 12:03 am
Forum: Support and Development
Topic: 8 direction diagonal movement difficulties
Replies: 14
Views: 8482

Re: 8 direction diagonal movement difficulties

I can confirm that. If I press up+down+left, it does not move. As raidho said, it probably a hardware problem. At least the code is correct. You can check if this correct by letting the progam output which buttons are pressed: if love.keyboard.isDown('up') then love.graphics.print('Up-key is presse...
by bdjnk
Fri Jul 05, 2013 11:41 pm
Forum: Support and Development
Topic: 8 direction diagonal movement difficulties
Replies: 14
Views: 8482

Re: 8 direction diagonal movement difficulties

First off, why would you hold up and down, those are mutually exclusive controls. Second, is your keyboard is ps/2, or is it USB? Because it might simply have buffer overflow when you press too many characters simultaneously (how many exactly depends on particular key combo). Because I didn't had a...
by bdjnk
Fri Jul 05, 2013 11:15 pm
Forum: Support and Development
Topic: 8 direction diagonal movement difficulties
Replies: 14
Views: 8482

Re: 8 direction diagonal movement speed difficulties

Hm, very clever. Thanks :D However, it doesn't solve the issue, which is that somehow, under certain conditions, dx and dy are not being updated appropriately. As I said before. "For example, if I hold up and down then press right I move right, as expected; but if I press left I don't move left...
by bdjnk
Fri Jul 05, 2013 10:37 pm
Forum: Support and Development
Topic: 8 direction diagonal movement difficulties
Replies: 14
Views: 8482

8 direction diagonal movement difficulties

So I was doing some of the tutorials from the wiki, and when I got to the hamster ball and efficient tile-based scrolling , I noticed the diagonal movement was too fast. Here's what I added to the hamster ball tutorial as an attempted fix: function love.update(dt) dx, dy = 0, 0 if love.keyboard.isDo...
by bdjnk
Fri Jul 05, 2013 8:59 pm
Forum: General
Topic: lua Wikipedia page
Replies: 17
Views: 3390

Re: lua Wikipedia page

Here is the intro to source reliability for wikipedia. I've done some work on wikipedia in the past, and this source issue has always been the biggest challenge. Basically, other people (not associated with löve) need to write about it and get published in well respected (known not to publish crap /...