6444bf3fe3
working on supporting custom shaders.
2015-05-05 19:47:00 -07:00
4120eed58a
Fixes memory leak and input issue.
...
The input issue is caused by the fact that the previous screen is
still rendered, even after .setScreen is called. Executing on
the gl thread fixes this.
The documentation says that old screens need to be disposed manually.
This instantly freed up a lot of memory when running my game.
2015-03-07 08:01:32 -08:00
oakes
4324344263
Remove assertion
2015-02-11 20:40:07 -05:00
oakes
8de6baeae2
Add assertions
2015-02-11 19:22:45 -05:00
oakes
5b874400d4
Remove confusing info in defscreen docstring
2014-12-15 13:03:16 -05:00
oakes
7c5d7985e3
Mention (game :x) and (game :y) in defscreen docstring
2014-11-06 13:08:08 -05:00
eb78a44f79
adding music
2014-11-04 12:46:48 -08:00
oakes
6d184d8b98
Change how recording is started
2014-09-23 05:39:07 -04:00
oakes
822d6772c5
Remove run! function
2014-09-20 14:12:09 -04:00
oakes
63f7aaa70a
Don't save duplicate entities vectors in timeline
2014-09-19 14:46:25 -04:00
oakes
ab3ad38890
Add time travel
2014-09-19 12:24:49 -04:00
oakes
1a9edceab9
Make update-fn! take variadic args
2014-09-18 16:06:26 -04:00
oakes
d36a87bff5
Throw exception in deprecated functions
2014-09-17 14:11:18 -04:00
oakes
83b980b30d
Revert "Add breaking changes"
...
This reverts commit f60d65e124 .
2014-09-17 14:06:17 -04:00
oakes
f60d65e124
Add breaking changes
2014-09-17 12:14:14 -04:00
oakes
5061fd75cb
Always clear layers in :on-show
2014-09-06 13:17:08 -04:00
oakes
9558673d01
Deprecate run! infavor of screen! to avoid conflict with clojure 1.7
2014-09-06 11:50:47 -04:00
oakes
5425625709
Remove :on-dispose (no different than :on-hide)
2014-09-04 16:57:28 -04:00
oakes
d6b994602f
Add execute-fn-on-gl! function
2014-09-01 23:18:11 -04:00
oakes
bf77d6b82d
Add :on-dispose
2014-09-01 22:53:48 -04:00
oakes
b7c33a563b
Get function directly from screen object
2014-09-01 11:16:36 -04:00
oakes
27786d6b2a
Add functions to the screen object
2014-09-01 00:54:49 -04:00
oakes
96988182c4
Clean up defscreen
2014-08-31 23:27:22 -04:00
oakes
e02272932f
Remove assert from set-screen! function
2014-08-27 14:05:33 -04:00
oakes
c3f74d97f7
Remove assertions
2014-08-26 21:18:50 -04:00
oakes
00e522948a
Revert "Add :x and :y to all screen maps"
...
This reverts commit 94bf3807ea .
2014-08-26 20:40:59 -04:00
oakes
94bf3807ea
Add :x and :y to all screen maps
2014-08-26 18:50:12 -04:00
oakes
e3ca0ff234
Revert "Add :x and :y to screen map when necessary"
...
This reverts commit 1c85268b95 .
2014-08-26 18:36:11 -04:00
oakes
1c85268b95
Add :x and :y to screen map when necessary
2014-08-26 18:13:31 -04:00
oakes
a72df8b0ad
Remove confusing reference
2014-08-23 23:03:53 -04:00
oakes
522c8b6ea4
Add more assertions to core.clj
2014-08-23 22:59:36 -04:00
oakes
7ce81abe9f
Improve error message when passing invalid defscreen args
2014-08-23 22:20:30 -04:00
oakes
8288139b32
Add 2d physics functions to the docstring
2014-08-23 17:18:26 -04:00
oakes
e437761c3e
Fix on-pause and on-resume comments
2014-08-20 10:40:52 -04:00
oakes
d2481a6aaf
Rearrange imports
2014-08-08 15:52:34 -04:00
oakes
93ad83db7b
Support next version of libGDX
2014-08-08 15:48:52 -04:00
oakes
34f1618f31
Move comments in defscreen docstring for better readability
2014-08-03 13:17:29 -04:00
oakes
86dd54cdc4
Mention input->screen in docstring
2014-06-18 04:52:53 -04:00
oakes
cc17e483b3
Don't remove entities/world when disposing the world
2014-05-25 19:27:21 -04:00
oakes
9f03440009
Clear the physics world during REPL development
2014-05-25 19:01:48 -04:00
oakes
70cea243ca
Use update-fn! instead of swap!
2014-05-25 16:58:06 -04:00
oakes
d6f9d6a944
Fix how the screen is updated
2014-05-25 16:46:34 -04:00
oakes
817d36e82e
Fix how listeners are initialized
2014-05-25 15:28:14 -04:00
oakes
dc54957bae
Improve docstring and symbol names
2014-05-23 12:04:06 -04:00
oakes
a529a19ef2
Add run! function
2014-05-20 03:42:20 -04:00
oakes
aed7e8e57e
Pass metadata the wrapper function so it knows which screen function is running
2014-05-17 23:26:21 -04:00
oakes
edde8e507f
Fix typo
2014-05-16 18:37:47 -04:00
oakes
02bfa2393c
Remove loader macros and improve docstrings
2014-05-16 18:24:43 -04:00
oakes
5a6bf81f5f
Improve wording and add more tips to the defscreen docstring
2014-05-10 16:03:49 -04:00
oakes
4f9d300e0b
Only create input listeners when screen is first created
2014-05-10 13:11:53 -04:00