Commit graph

139 commits

Author SHA1 Message Date
Gered 2225a67d77 update to libgdx 0.9.9 stable 2013-11-10 17:06:29 -05:00
Gered 22a8e6575e alpha test material attr to fix transparent tile rendering (some cases) 2013-11-10 13:21:29 -05:00
Gered b79486172d not used anymore 2013-11-10 13:16:58 -05:00
Gered c62ca2796a check for null, just in case the chunk didn't ever get a mesh generated 2013-11-10 12:01:38 -05:00
Gered 733e1ee751 wat 2013-10-20 12:48:24 -04:00
Gered df6c49e94e minor code tweaks for readability mostly 2013-10-20 12:25:39 -04:00
Gered 6ed06f5cdb add render() overloads allowing custom shader and/or lights 2013-10-20 12:13:13 -04:00
Gered 4b30f313b6 more refactoring. can now also render TileChunks separately 2013-10-20 12:05:54 -04:00
Gered 1514bddf14 refactoring 2013-10-20 12:03:39 -04:00
Gered 70d9ce0c89 update TileMapRenderer 2013-10-20 12:02:33 -04:00
Gered e506d13d21 use a single BoundingBox for both opaque+alpha chunk meshes combined 2013-10-20 12:02:19 -04:00
Gered 4c248d2fda TileChunk is now a RenderableProvider. updated private mesh object fields 2013-10-20 11:41:47 -04:00
Gered 86e1d3a0cb more typo 2013-10-20 11:27:12 -04:00
Gered d215d60b36 typo 2013-10-20 11:26:54 -04:00
Gered 916ddd90c3 have ChunkVertexGenerator return it's results instead of setting them into public fields on the chunk object it's generating a mesh for 2013-10-20 11:18:25 -04:00
Gered 028302db4f fix light source calculations for 1x1x1 tiles
"large tiles" left unimplemented for now, as this there's still several
details surrounding those that need to be fleshed out more anyway
2013-10-16 19:08:24 -04:00
Gered 3e62a4f9f2 minor refactoring 2013-10-16 18:53:48 -04:00
Gered ece9fa98e8 better handling of cube face culling when dealing with alphablended cube tiles 2013-10-14 23:21:25 -04:00
Gered 0d1fd9568f another convenience overload 2013-10-14 22:52:08 -04:00
Gered d32cafbaf2 fix incorrect getter implementation 2013-10-14 22:49:37 -04:00
Gered a64683f74b add TilePrefab saving 2013-10-14 22:29:26 -04:00
Gered 41c7dce4f4 convenience overload 2013-10-14 22:22:45 -04:00
Gered dd4b3ac27f add TilePrefabLoader 2013-10-14 22:21:44 -04:00
Gered 8c8582d044 add POJO for TilePrefab json serialization 2013-10-14 22:13:23 -04:00
Gered 6d152b95a8 reorganize JSON loading sources using more standardized package naming 2013-10-05 19:16:22 -04:00
Gered 554c2c8bb8 allow for relative file paths in TileMeshCollection JSON definition files 2013-10-05 19:12:57 -04:00
Gered 4471358605 minor code readability tweak 2013-09-30 05:08:06 -04:00
Gered 28c99c4bb3 add constant for a zero coordinate 2013-09-15 10:22:34 -04:00
Gered 1d20d0700e record the tile grid position of the closest collision found 2013-09-15 10:21:09 -04:00
Gered b791a041a2 allow resetting the TileMap object being checked for collisions 2013-09-14 23:11:09 -04:00
Gered 890becd05b add SweptSphereWorldCollisionChecker implementation 2013-09-14 23:07:35 -04:00
Gered 0bc881aafd update due to changes in gdx-toolbox's IntersectionTester 2013-09-14 23:06:59 -04:00
Gered King 4aede47e4b Create README.md 2013-08-10 10:38:23 -04:00
Gered 690c7d7952 add a TileMeshCollection parameter to make this a bit more portable between all the subclasses 2013-08-06 18:11:40 -04:00
Gered a8b2c39101 fix incorrect calculations when setting output map dimensions 2013-08-04 16:30:11 -04:00
Gered c7ce2d23d5 cleanup imports 2013-08-04 10:49:40 -04:00
Gered 580f199d1f change some Tile serialization methods to work with the new TileRawDataContainer interface instead 2013-08-04 10:49:29 -04:00
Gered c8b39965ef add new interface for Tile containers which actually keep the array of Tile objects themselves 2013-08-04 10:45:59 -04:00
Gered 1f961356b0 add new Tile fields to serialization methods 2013-08-04 10:39:10 -04:00
Gered 50d8d710b5 add fields to track parent tile (large tile) dimensions
This will be useful for rotating "large tiles" when I eventually get around to implementing that.
2013-08-04 10:33:20 -04:00
Gered 6199f58cf5 adjust TilePrefab rotation to work with the cleaned up Tile rotation stuff 2013-07-25 08:05:43 -04:00
Gered a7d571e477 clean up Tile flags and fields, constants, etc. especially the old crappy rotation handling ...
This "clean up" is still not memory-efficient. Will need to pack values into a bitfield eventually.
2013-07-25 08:05:20 -04:00
Gered ae142ab146 when placing a TilePrefab, apply rotation to rotated tiles being copied 2013-07-24 17:31:18 -04:00
Gered b1d90ac787 add ugly way of rotating a tile 2013-07-24 17:30:42 -04:00
Gered 549cb31149 TilePrefab now subclasses TileContainer 2013-07-22 19:11:55 -04:00
Gered a1f3a737b8 add TilePrefab 2013-07-22 19:08:51 -04:00
Gered 9ba2a0a142 bit of refactoring with the TileMapLighter classes 2013-07-22 18:25:06 -04:00
Gered 2cc12276f0 little bit of code reorganizing 2013-07-21 22:33:48 -04:00
Gered 57b028426a add tile mesh count getter 2013-07-21 22:23:25 -04:00
Gered 2adcc2089b it's annoying to have to put stupid casts when passing in constant numbers (which are ints or longs or something in Java ...) 2013-07-21 21:33:34 -04:00