Commit graph

120 commits

Author SHA1 Message Date
Gered c5184a40d4 'loaders' is probably a better name for it 2014-04-15 10:03:22 -04:00
Gered fd057318f0 all custom asset loading to be under a common sub-package 2014-04-15 10:02:34 -04:00
Gered 5fc54e26f3 convenience methods for loading a bit easily 2014-04-15 10:01:25 -04:00
Gered 49885cb5d8 TextureAtlasDesc can really just be a static class like it was before.. 2014-04-15 09:57:51 -04:00
Gered 8e1d8bf3d0 add AssetManager instance to GameApp. initialize with our custom loaders 2014-04-14 15:55:48 -04:00
Gered 6e0e41151d change TextureAtlasLoader to a libgdx asset loader class 2014-04-14 14:48:32 -04:00
Gered 6356c97f2f add TextureAtlasDesc 2014-04-14 14:32:57 -04:00
Gered ad15f2850c add method to register/copy all animations from a TextureAtlas at once 2014-04-14 14:19:45 -04:00
Gered fff74d0b16 use separate Animation class for now to hold info. new addAnimation method. TextureAtlasAnimator will read through these and set up it's own data structures from them 2014-04-14 14:15:18 -04:00
Gered b6de4a38c2 add animations collection to TextureAtlas 2014-04-14 14:09:15 -04:00
Gered 7d2b164f53 fix font rendering (for cases when e.g. rendering a font from a Skin)
in those cases, the glyph src coordinates will be relative to the
font's subtexture region in the Skin, whereas the glyph uv coords will
be correct if rendering from a texture region or a standalone texture
2014-03-10 18:00:24 -04:00
Gered 208a118bc0 add missing call to trigger onResize event in the StateManager 2014-02-16 16:15:40 -05:00
Gered fd60e74393 handleBasicMovementCollision now moves the swept-sphere entity right up to the collision point 2014-01-02 09:32:30 -05:00
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