Commit Graph

229 Commits

Author SHA1 Message Date
David Keck
70fc88fc10
cam doesn't exist, but camera does. :) 2018-10-08 17:34:40 -04:00
Matthias Richter
0bf301f710 Fix #103: Unexpected behavior of timer:cancel() 2018-06-17 18:29:30 +02:00
Matthias Richter
0dea46b0b5 Fix #104: Undo aa81292 2018-06-15 17:41:31 +02:00
Matthias Richter
3ac246dd33 Fix(?) #95: hump.gamestate causes random crashes
Overwriting love.errorhandler() causes trouble. This callback must
return a game loop to display the error (see http://love2d.org/wiki/love.errorhandler).
Overwriting this callback in gamestate.registerEvents() would return
GS.errorhandler(), which would return nil and thus (maybe) causing LÖVE
to crash. On the other hand, @lemilonkh reports that LÖVE may still
crash if the love.errorhandler() is returned instead of
GS.errorhandler(), so the underlying issue might be different.

In any case, don't overwrite love.errorhandler, unless you know what you
do.
2018-06-11 18:37:51 +02:00
Matthias Richter
222f99b162 Fix #101: Typo in documentation 2018-05-27 11:56:23 +02:00
Matthias Richter
e750b7e651 Fix #100: Typo in documentation
Happy 100th!
2018-05-27 11:54:15 +02:00
Matthias Richter
77bdf42c68 Document vector integer division 2018-05-27 11:52:33 +02:00
Matthias Richter
158d12e94d Expose vector-light.idiv 2018-05-27 11:50:55 +02:00
Matthias Richter
38d0e5c060
Merge pull request #102 from qwertystop/master
Add floor division to hump.vector and hump.vector-light
2018-05-27 11:39:03 +02:00
David Heyman
aa81292733 Add floor division to hump.vector and hump.vector-light 2018-05-23 11:15:16 -04:00
Matthias Richter
9be68e9e10
Merge pull request #99 from tesselode/patch-1
remove leftover print
2018-05-14 09:21:23 +02:00
Andrew Minnich
23ac57ae5b
remove leftover print 2018-05-13 20:26:02 -04:00
Matthias Richter
a905c592a9 Rename callback: errhand to errorhandler 2018-05-05 13:38:36 +02:00
Matthias Richter
7642755b99 Rockspec for luarocks main server 2018-04-08 15:03:33 +02:00
Matthias Richter
e33ffbe855 shorten code, add comment 2018-04-08 13:40:57 +02:00
Matthias Richter
dde34f98a9
Merge pull request #94 from oniietzschan/fix-timer-bug-shru
Timer Bug Fix - Fixed indeterminate behavior of new timers.
2018-04-08 13:36:49 +02:00
Matthias Richter
7b574c92e8
Merge pull request #93 from oniietzschan/master
Fix erroneous example in timer.rst
2018-04-08 13:34:33 +02:00
Matthias Richter
34936f3808
Merge pull request #90 from jlaceda/patch-1
small typo fix
2018-04-08 13:33:55 +02:00
shru
e62e69999c Timer - Fixed bug where behaviour of new timers added during iteration through timer handles was indeterminate. 2018-02-16 13:52:44 +10:30
ヽ(*≧ω≦)ノ shru
3e439ee2db
Fix erroneous example in timer.rst 2018-01-19 11:17:33 +10:30
John Laceda
459bc81908
small typo fix 2017-11-24 12:03:02 -08:00
Matthias Richter
945423f9f5 Update doc: Add list of functions to every module
Gives a nice overview and makes it easier to navigate the docs.
2017-11-19 21:32:56 +01:00
Matthias Richter
88f501bc77
Merge pull request #88 from grunkgrunk/patch-1
Removed unused variables from randomDirection
2017-11-19 21:04:09 +01:00
Matthias Richter
704895896b Merge branch 'grunkgrunk-randvector-docs' 2017-11-19 21:02:47 +01:00
Matthias Richter
0a6c4ec482 Consistent doc 2017-11-19 21:02:35 +01:00
Matthias Richter
9a8e16a55f Merge branch 'randvector-docs' of https://github.com/grunkgrunk/hump into grunkgrunk-randvector-docs 2017-11-19 20:52:40 +01:00
Daniel
72a6a92ff6
Removed unused variables from randomDirection
I just realized there were some unused variables in the randomDirection function, so I removed them.
2017-11-11 09:43:38 +01:00
grunkgrunk
1fbaa77d75 moved lua-comments in docs down to the same line as the code. 2017-11-05 16:00:37 +01:00
Matthias Richter
96c9648a62 [refactor]: use fromPolar() in randomDirection()
More compact code and one less temporary table in
vector:randomDirection()
2017-11-04 11:19:27 +01:00
Matthias Richter
cdafc00075
Merge pull request #86 from grunkgrunk/randomvector
added random vector function
2017-11-04 11:14:26 +01:00
grunkgrunk
b6c04082b0 changed signature of random and added documentation 2017-11-03 22:04:27 +01:00
Matthias Richter
2c48c4f898 Fix #85 - add rockspec 2017-11-01 23:12:29 +01:00
Matthias Richter
c8fedc1a49 Add Travis CI build indicator 2017-11-01 23:12:22 +01:00
Matthias Richter
99528b5fe4
Merge pull request #83 from hewills/test/travis-ci
Add Travis-CI testing with busted
2017-11-01 20:59:22 +01:00
Matthias Richter
45514e36c9
Merge pull request #84 from EasternMouse/patch-1
Correct the spelling of "This modifies the vector"
2017-11-01 20:52:32 +01:00
grunkgrunk
775862119a added random vector function in both vector files and created default argument to fromPolar function. Also formatted the returned module in both files 2017-11-01 15:44:04 +01:00
EasternMouse
3a5c5191b1 Correct the spelling of "This modifies the vector"
Yhis modifies the vector => This modifies the vector
2017-09-06 08:39:07 +04:00
Hana W
65c40efdc8 Add Travis-CI testing with busted
Run tests setup in spec folder. Need to signup on travis-ci.
2017-08-04 18:01:21 -07:00
Matthias Richter
22d0fb6960 Merge pull request #78 from palmettos/master
Fixed #77 - Allow registering functions to signal patterns
2017-03-16 20:18:34 +01:00
Matthias Richter
192e9112e6 Implement polar <-> cartesian conversions
See pull request #73
2017-03-16 20:14:34 +01:00
palmettos
6154e24b49 Allow registering functions to signal patterns 2017-02-05 16:43:59 -05:00
buckle2000
40aa4cb7c5 Class() constuction
Fix document
2016-09-07 21:52:08 +02:00
buckle2000
15eb5f1e8e easier class creation 2016-09-07 21:52:08 +02:00
vrld
400c8ea75e Merge pull request #68 from Kingdaro/kingdaro-timer-fix
Timer now accounts for "lateness" and repetition
2016-05-24 13:29:58 +02:00
Kingdaro
25e6035d54 Fixed remaining time on during function
When expired, the remaining time should never be less than 0.
2016-05-23 19:05:17 -04:00
Kingdaro
6cf4a54d9d Fix for :during() call without an after function 2016-05-23 19:03:58 -04:00
Kingdaro
08354c472d Write unit test for timer 2016-05-23 19:03:41 -04:00
Kingdaro
d77e0a2324 Fix for https://github.com/vrld/hump/issues/66 2016-05-23 18:45:20 -04:00
Kingdaro
dc589adc32 Merge pull request #2 from Kingdaro/vrld/master
Merge into master
2016-05-23 17:58:16 -04:00
Kingdaro
9a1c4c8b78 Merge remote-tracking branch 'refs/remotes/origin/master' into vrld/master
Resolved conflicts
2016-05-23 17:52:49 -04:00