Commit graph

107 commits

Author SHA1 Message Date
Gered 216ee98acc onRender()'s 'delta' param renamed to better reflect its purpose 2013-12-30 15:46:12 -05:00
Gered 8def4a12d6 ScreenEffects should also have both onUpdateGameState and onUpdateFrame 2013-12-30 15:36:52 -05:00
Gered bf659f7bc2 split up onUpdate() methods into onUpdateGameState and onUpdateFrame
this will help avoid needing to place a lot of update logic that is
tied to the frame rate (e.g. anything not related to physics
integration) in onRender()
2013-12-30 14:31:26 -05:00
Gered 8d9457b872 rework the main loop to use a different method for fixed timestep
Use Glenn Fiedler's "Fix your timestep!" article's approach instead.
Just need to remember to always interpolate between prevState and
currentState and not extrapolate from the currentState when rendering
(for best results!)
2013-12-30 14:00:14 -05:00
Gered 8cd834c455 add support for controlling how fast game updates run at 2013-12-15 13:33:52 -05:00
Gered b5fccb3fd4 add Service.register overload allowing to register an object by one of it's sub/super types instead 2013-12-15 13:09:29 -05:00
Gered e815936e63 update gitignore 2013-12-15 12:09:58 -05:00
Gered 18f0dd3a94 fix group id 2013-11-30 12:45:50 -05:00
Gered 6b982af2db update ignore filters 2013-11-19 08:32:24 -05:00
Gered bf5caf0b9e add build.gradle 2013-11-19 08:26:26 -05:00
Gered 7095cbafc6 move source files into standard src/main/java directory structure 2013-11-19 08:23:03 -05:00
Gered f8b27a2c66 remove eclipse project files 2013-11-19 08:21:58 -05:00
Gered 05d9c9276b proper package naming (leading 'ca' vs 'com') 2013-11-19 08:21:35 -05:00
Gered fb24b81566 fix potential NPE if an entity doesn't already have the given component 2013-11-17 23:38:40 -05:00
Gered 2f0b02ad90 fix sorter so it works correctly even when the camera is reassigned 2013-11-17 17:49:52 -05:00
Gered 4dcc40e962 fix naming case 2013-11-16 13:07:34 -05:00
Gered a0277c49e3 call dispose() for EntityPreset's implementing Disposable when removing them from EntityManager's preset list 2013-11-12 21:49:54 -05:00
Gered 2ba3a1be36 add method to check if an Entity is currently inside the entity system 2013-11-12 18:19:19 -05:00
Gered aa6a5dbb4c add basic movement with "dumb" collision response method to SweptSphereHandler 2013-11-11 17:55:10 -05:00
Gered 4b8deb90cb replace RenderContext with ViewContext. use registered "services" to hold the renderer objects that used to live in RenderContext 2013-11-10 12:28:44 -05:00
Gered 1f4d42ab4c add DebugShader which DebugGeometryRenderer now uses
rendering larger points not implemented yet, need to do a second-pass
render over the points generated in end(), but ImmediateModeRenderer
doesn't allow for this, short of using it to generate the list of
vertices twice
2013-10-27 17:35:07 -04:00
Gered 9174cae000 render using thicker lines 2013-10-27 17:30:37 -04:00
Gered 9e9409e957 override for begin(), defaulting to disabling depth testing 2013-10-27 16:58:19 -04:00
Gered 6540b570d6 begin() now allows setting whether to enable/disable depth testing 2013-10-27 16:57:30 -04:00
Gered 6d30c0c333 set depth test enabled 2013-10-27 16:54:54 -04:00
Gered 3b71772397 maybe a bit over the top with all these extra overloads? 2013-10-27 16:45:58 -04:00
Gered 6aba427e60 doc comment 2013-10-27 16:11:43 -04:00
Gered 38328e004d add DebugGeometryRenderer class 2013-10-27 16:07:04 -04:00
Gered 7849d1ad3a convenience helper for checking if an entity is inactive
I figure this is fine to add since InactiveComponent is a so-called
"system" component
2013-10-27 15:10:30 -04:00
Gered 873d16a592 convenience helpers for checking the preset type used to create an entity 2013-10-27 15:08:30 -04:00
Gered cf49f66e85 add entity filter method to find all entities created with a given preset 2013-10-27 11:33:08 -04:00
Gered 4f3b8ff2b7 remove -90 degree adjustment (hacky) and add new helper for getting the angle in the XZ plane between two Vector3s 2013-10-27 09:44:33 -04:00
Gered d5472b2701 wrong way to check if an object is an instance of a given type 2013-10-21 12:33:23 -04:00
Gered f7ba75b9ec add helper overloads 2013-10-14 17:37:32 -04:00
Gered 6dbd0fcce1 add debug helper method for rendering wireframe grid planes 2013-10-14 16:15:55 -04:00
Gered 38313529b4 separate JSON texture atlas loading classes into separate package 2013-10-05 19:17:50 -04:00
Gered 6c6ceeeb09 implement support for loading tile animations alongside the rest of a TextureAtlas definition 2013-10-05 19:00:27 -04:00
Gered bfd2748797 allow for relative texture paths in TextureAtlas config files. start adding support for populating TextureAtlasAnimator objects 2013-10-05 18:48:30 -04:00
Gered 7334389b4e add file loading and path string extraction helper methods 2013-10-05 18:47:43 -04:00
Gered 308b19e815 various code formatting cleanups 2013-09-30 04:40:08 -04:00
Gered f974236432 change to/from ellipsoid space methods to regular instance methods so we don't have to pass an ellipsoid radius every time 2013-09-30 04:32:08 -04:00
Gered d1d4350ac1 uhh... screw it -- lots of fixes
Work in progress code from a couple weeks ago that I just picked up
again today, don't feel like listing everything out separarely.
2013-09-30 04:21:17 -04:00
Gered 625d9e0514 checkForCollisions should return a boolean to simply indicate if a collision was found or not 2013-09-30 03:22:23 -04:00
Gered fa3debbe17 minor changes that don't really affect anything 2013-09-30 03:21:29 -04:00
Gered fa6f1a07a4 update floating-point comparison
using method detailed in http://realtimecollisiondetection.net/blog/?p=89
2013-09-29 23:03:43 -04:00
Gered c85410b885 refactor a bit (merge swept sphere entity and packet classes) 2013-09-14 22:45:21 -04:00
Gered 705f0fab36 add initial unoptimized implementation of the generic swept-sphere collision and response handling system 2013-09-14 22:21:21 -04:00
Gered 513eff7cb5 add helper to specifically set a vector's length along it's direction 2013-09-14 22:20:43 -04:00
Gered 05dd4a1de0 move swept-sphere collision test into it's own class
It's not quite a 'generic' as the other intersection tests and is kind
of lengthy, so would rather the code be more standalone.
2013-09-14 20:08:09 -04:00
Gered 31efacf9a2 not really much point to the use of 'final' here... 2013-09-14 17:36:03 -04:00