Search found 81 matches

by bdjnk
Fri Jun 27, 2014 12:34 pm
Forum: Support and Development
Topic: Fixing Collision
Replies: 6
Views: 4620

Re: Fixing Collision

I should really explain my code. Sorry for just dumping it. I should also actually address the question in the first post. Sorry for not doing that originally. Oh, and while I'm being sorry for things, sorry for bumping this thread again. ...provide some guidance on how to improve it. Or if its just...
by bdjnk
Fri Jun 27, 2014 10:22 am
Forum: Support and Development
Topic: [SOLVED] Particle velocities
Replies: 2
Views: 1932

Re: Particle velocities

I was just creating an explosion particle system, and here's what I've discovered. setDirection and setSpread control the arc / triangle of emission. Due to the circular nature of emission, setSpeed might as well be setRadialVelocity, since speed is speed outward from the center. Furthermore, speed ...
by bdjnk
Thu Jun 26, 2014 5:57 pm
Forum: Support and Development
Topic: Fixing Collision
Replies: 6
Views: 4620

Re: Fixing Collision

Honestly, collision detection is one of those things that's best left to those who really know it. Kind of like encryption and security, don't re-invent the wheel. Aw, but reinventing the wheel is the best way to learn about wheels (and really make you appreciate good wheels). Speaking of which, I'...
by bdjnk
Wed Jun 25, 2014 8:19 pm
Forum: Support and Development
Topic: Fixing Collision
Replies: 6
Views: 4620

Re: Fixing Collision

Less complicated is usually better. My code checks the potential collisions (two possible collision per direction) and only move when I won't collide. local sti = require "STI" function love.load() map = sti.new("Map") collision = map:getCollisionMap("Collision") player...
by bdjnk
Wed Jun 25, 2014 6:28 am
Forum: Support and Development
Topic: i don't understand unit testing-and/or Busted
Replies: 2
Views: 2401

Re: i don't understand unit testing-and/or Busted

Although I'm no expert on unit testing, I can give you some small insights. Unit testing is, exactly as it sounds, a method for testing 'units' of code. A unit just being a small testable portion, often a function or method. Relevent to this is the concept of good modularization (at least on the fun...
by bdjnk
Tue Jun 24, 2014 6:42 pm
Forum: Games and Creations
Topic: Egg Battle on Google Play [Android]
Replies: 6
Views: 4374

Re: Egg Battle on Google Play [Android]

Awesome! LÖVE really working of Android in the form of a great little puzzle game. So cool. Here's what would make it infinitely more awesome. Custom levels. Sharable custom level packs would make this even more incredible. In addition to the current 3 sets, we could have sets made by ourselves and ...
by bdjnk
Sun Jun 15, 2014 6:11 pm
Forum: Games and Creations
Topic: Ping - A twist on Pong
Replies: 13
Views: 6495

Re: Ping - A twist on Pong

Needs more juciness ;)
by bdjnk
Thu Jun 12, 2014 4:49 pm
Forum: Libraries and Tools
Topic: flux: A fast, lightweight tweening library
Replies: 42
Views: 33910

Re: flux: A fast, lightweight tweening library

I'm not entirely sure how useful the information of how many tweens are active on an object would be. For example, if you create a tween then create a new tween on the same fields of the same object such as to override the original tween, the original tween still exists for the sake of its onupdate...
by bdjnk
Tue Jun 03, 2014 6:31 pm
Forum: Libraries and Tools
Topic: flux: A fast, lightweight tweening library
Replies: 42
Views: 33910

Re: flux: A fast, lightweight tweening library

Hey rxi, First, I just want to say, this is a phonomenal library. I did however run into one difficulty (which I've resolved) that I thought should perhaps be addressed in the library itself. The source of my trouble seems to be the inability to check if tweens are applied to an object (and how many...
by bdjnk
Thu May 29, 2014 3:15 pm
Forum: General
Topic: Helper Scripts - Vim & Greasemonkey
Replies: 0
Views: 1313

Helper Scripts - Vim & Greasemonkey

If you use Vim, this should be useful. In my .vimrc I've got the following line: :map <F4>l :wa<CR> <bar> :silent !love %:h<CR><C-l> This allows me to hit F4-l have all my open files saved and the directory I've currently in run with love. There are no prompts or hoops of any kind, it just runs the ...