vrld
2abe666ce9
Merge pull request #32 from stfan/patch-1
...
Fix vector:trim_inplace()
2014-03-03 22:58:19 +01:00
vrld
e6ca809a8c
Merge pull request #31 from mifuyne/master
...
ln 179 & 181: second self.y changed to self.x
2014-03-03 22:55:48 +01:00
stfan
65cef0e3dc
Update vector.lua
...
Changed vector:trim_inplace so it actually trims the vector when it is longer than the maxLen
2014-03-03 20:28:40 +01:00
Mifuyne
157ec82cd5
ln 179 & 181: second self.y changed to self.x
...
For vector:angleTo()
2014-02-17 12:32:42 -05:00
vrld
81f0faf476
Merge pull request #30 from headchant/patch-1
...
Update signal.lua
2014-02-16 14:43:54 +01:00
headchant
e9e2019517
Update signal.lua
...
register does not return function handle
2014-02-13 22:36:45 +01:00
vrld
a837d1d802
Merge pull request #29 from Bradshaw/master
...
Added gamepadreleased to all_callbacks
2014-02-10 10:08:51 +01:00
Kevin Bradshaw
21d87e5119
Added gamepadreleased to all_callbacks
2014-02-08 16:49:34 +01:00
Matthias Richter
d42244ba35
[Gamestate] Undo last commit. Add all 0.9 callbacks.
2013-12-16 16:35:06 +01:00
Matthias Richter
4372c6404c
[Gamestate] Add love.textinput to default callback list
2013-12-14 13:01:45 +01:00
vrld
e3770d462b
Merge pull request #26 from karai17/patch-1
...
Update for 0.9.0
2013-11-24 03:56:49 -08:00
Landon Manning
d697664e27
Update for 0.9.0
2013-11-10 00:16:35 -04:00
Matthias Richter
32e0aaeaa6
Fix #25 : vector:angleTo() returns wrong angle.
2013-11-04 22:04:16 +01:00
Matthias Richter
cea730deac
Fix bug in GS.push().
2013-08-24 22:58:30 +02:00
Matthias Richter
ff60ae5372
Fix issue #24 : cancel not removing periodic timers.
2013-08-22 11:10:56 +02:00
Matthias Richter
87b82750ff
Localize function registry to Gamestate.switch().
2013-08-19 14:10:00 +02:00
Matthias Richter
b3c329a1e8
Add vector.dist2(a,b).
2013-08-05 16:35:49 +02:00
Matthias Richter
5c06f3d3d0
[gamestate] Add .current(). Add gamestate stack.
...
New methods:
function GS.current()
retrieves currently active gamestate (i.e. the state on top of the
stack)
function GS.push(state, ...)
Pushes a state on the stack. Calls state:enter(...), but *not*
state:leave() on the previous state.
function GS.pop()
Pops a state from the stack, provided that there are states to pop.
Calls state:leave() on the state on top of the stack before popping.
2013-08-05 16:30:30 +02:00
Matthias Richter
015ff8a23a
Add vector.angleTo(x,y, u,v)
2013-07-30 11:55:06 +02:00
Matthias Richter
1f9a7f1f52
Rename vector:angle(). Shorter implementation. Add vector.zero
2013-07-30 11:54:24 +02:00
vrld
51c31f70b2
Merge pull request #21 from theGoodEvil/vector_light_dist2
...
Add dist2() function to vector-light
2013-07-30 02:41:12 -07:00
vrld
64f11b9ea5
Merge pull request #20 from out-of-pixel/master
...
add angle function
2013-07-30 02:40:50 -07:00
Guido Lorenz
003ebea480
Add dist2() function to vector-light
...
This returns the squared distance between the two vectors.
2013-07-24 16:16:50 +02:00
out-of-pixel
4afcac5b36
add function angle()
...
returns the angle between a vector and the default rotation
2013-06-29 17:39:03 +02:00
Matthias Richter
e9b86ef2d5
Rename truncate to trim. Cleanup code.
2013-04-27 12:26:56 +02:00
vrld
5cecfac51a
Merge pull request #17 from ricardozanini/master
...
Truncate Function on Vector Module
2013-04-27 03:15:27 -07:00
Ricardo Zanini
ba8f724844
Added a truncate function to Vector Module. Based on this article: http://blog.signalsondisplay.com/?p=336
2013-04-25 23:07:57 -03:00
vrld
b2b033c431
Merge pull request #14 from clofresh/fix-gs-leave
...
Fix "self" param to the GS.leave callback
2013-04-12 02:12:01 -07:00
Carlo Cabanilla
11cf27df4d
Fix "self" param to the GS.leave callback
2013-04-11 23:44:17 -03:00
Matthias Richter
4f6c85e514
Add timer.tween
2013-03-31 20:53:53 +02:00
Matthias Richter
c6b75aaa9f
Fix issue #13 : Timer.do_for crashes when after is not supplied
2013-03-23 15:13:12 +01:00
Matthias Richter
ef2c4f6c56
Fix class commons compatibility
2013-02-25 18:46:04 +01:00
Matthias Richter
615dd8f111
Fix gamestate:init() bug, and error on undefined callbacks
2013-02-25 18:46:04 +01:00
vrld
63f1cb933d
Merge pull request #12 from Yonaba/master
...
Small typo fix in the Readme
2013-02-23 04:08:41 -08:00
Roland Yonaba
5685ddf9f4
Update README.md
...
Typo fixed
2013-02-20 19:17:02 +00:00
Matthias Richter
b0e56809b0
Remove ringbuffer.lua
2013-02-20 17:06:00 +01:00
Matthias Richter
e95ca05202
Update readme
2013-02-20 16:58:20 +01:00
Matthias Richter
8d4e5bb65f
Update license header
2013-02-20 16:54:57 +01:00
Matthias Richter
9f678bc0e2
Rewrite class system
2013-02-20 15:53:13 +01:00
Matthias Richter
5b1b67b23e
Deprecate gamestate constructor
2013-02-20 15:51:50 +01:00
Matthias Richter
f080a9c14a
[Gamestate] Remove __index metamethod for new gamestates (world of pain)
2013-01-27 11:43:39 +01:00
Matthias Richter
d22749990d
Allow arbitraty gamestate callbacks
2013-01-26 12:56:59 +01:00
Matthias Richter
bf862c9b40
Issue 9: Add camera:zoom[To]()
2012-11-01 18:59:08 +01:00
Matthias Richter
9b6aba60dd
Add camera:lookAt(x,y). Augment camera:rotation([phi]).
2012-10-07 13:24:28 +02:00
Matthias Richter
914ee08202
Return GS callback result (for love.quit(), etc)
2012-10-06 09:46:36 +02:00
Matthias Richter
b02273c936
timer.lua: Add do_for(). Remove Interpolator, Oscillator.
2012-10-02 18:28:22 +02:00
Matthias Richter
0f29310dcf
Remove camera dependencies. Add pos + rotation getter.
...
hump.camera is not independent of hump.vector-light.
camera:pos() returns the camera position.
camera:rotation() returns the camera rotation.
2012-09-10 10:38:24 +02:00
Matthias Richter
7f92f2c4f1
brief(er) vector factory
2012-06-12 12:58:33 +02:00
Matthias Richter
f78bfa3ca8
Make normalisation in hump.vector-light consistent with hump.vector
2012-05-19 01:36:10 +02:00
Matthias Richter
4f03a71f59
Code cleanup
2012-05-19 01:34:56 +02:00