Commit Graph

153 Commits (4c0a2e7714d62b88aea58d5a15fa242ab8704353)

Author SHA1 Message Date
Martin Felis 4c0a2e7714 Also populate chunks with entities when chunks are being generated. 2023-11-05 21:46:28 +01:00
Martin Felis 928ddd3937 Some improvements on tile instancing. 2023-11-04 19:15:26 +01:00
Martin Felis 0663263bb7 Further cleanup. 2023-11-01 17:59:43 +01:00
Martin Felis 6ca776014b Minor cleanup. 2023-11-01 17:43:47 +01:00
Martin Felis 36be4bc4c8 Refactored map generation and masking.
World now has textures for height and tile types.
2023-11-01 16:02:39 +01:00
Martin Felis a1f02a8820 Removed rendering artefact on world chunk texture. 2023-11-01 12:49:34 +01:00
Martin Felis 5cabf4ca28 Fixed exception when planning results in an empty path. 2023-11-01 12:34:28 +01:00
Martin Felis 0304b635a6 Minor cleanup WorldView.cs 2023-11-01 12:33:43 +01:00
Martin Felis 0160e72eec Fixed angle stuttering when reaching target. 2023-11-01 12:33:04 +01:00
Martin Felis a0a3fea598 Chunk based world generation works.
Still missing:
- world population (trees, grass, rocks)
- chunk saving/loading
2023-10-30 22:20:32 +01:00
Martin Felis d918da6fd6 Somewhat improved GroundMotionComponent. Still buggy, though. 2023-10-27 23:00:54 +02:00
Martin Felis aaa286bf77 WorldView: make rendering of hex tile borders optional. 2023-10-27 22:58:37 +02:00
Martin Felis c808739b78 Hide WorldChunk Texture overlays by default. 2023-10-27 22:56:49 +02:00
Martin Felis d70d9cd682 For planned paths use the current position as the first NavigationPoint. 2023-10-27 22:11:45 +02:00
Martin Felis 01fde34276 Setting better bounds when performing Path search. 2023-10-27 21:49:37 +02:00
Martin Felis da09c66cb3 Added SceneTileChunk that is used in WorldView to manage state needed for the visible part of a chunk. 2023-10-23 21:22:53 +02:00
Martin Felis 0ce8a0ddd6 Use Vector2 instead of Tuple<int, int> as identifier for chunks in World.cs.
Means we only have ~ +/-9.000.000 valid coordinates, but that should be enough for now.
2023-10-14 21:54:18 +02:00
Martin Felis 30b70d1d7a Added very basic chunk unloading. 2023-10-08 22:38:35 +02:00
Martin Felis f8819937e1 Some progress in tile streaming prototype 2023-10-05 18:17:48 +02:00
Martin Felis e2bb11380d Made debug UI more readable by using float formatting. 2023-09-26 17:00:25 +02:00
Martin Felis e91b64e82f Ground level now at height 0. 2023-09-19 20:32:22 +02:00
Martin Felis 1e7e07f349 Fixed infinite loop when querying CellsForLine. 2023-08-30 08:53:49 +02:00
Martin Felis 83265f5838 Added TestCase for which CheckSweptTriangleCellCollision does not terminate. 2023-08-29 12:23:20 +02:00
Martin Felis 7627aa3699 Properly apply ShowHexTiles for instanced tiles. 2023-08-29 12:21:35 +02:00
Martin Felis 39f20c8e01 Some improvements with path smoothing and interactions. 2023-08-28 18:22:28 +02:00
Martin Felis d61ef6ba45 Prepared UnitTest for StreamContainer. 2023-08-28 14:48:54 +02:00
Martin Felis 53b1f7f414 Use instancing for HexTile3D rendering. 2023-08-28 14:03:02 +02:00
Martin Felis 36306b9e01 Some editor changes... 2023-08-28 14:01:23 +02:00
Martin Felis 64e7db9800 Formatting of Game.cs. 2023-08-28 14:01:09 +02:00
Martin Felis 76a7abf22f Minor cleanup in HexTile3D. 2023-08-28 13:59:39 +02:00
Martin Felis 136de4e246 Tweaked export presets. 2023-08-28 13:58:40 +02:00
Martin Felis 232caf2e8b Added NavigationComponent::CheckSweptTriangleCellCollision(). 2023-08-13 22:03:10 +02:00
Martin Felis 0cbff2a298 Minor style cleanup. 2023-08-13 21:20:45 +02:00
Martin Felis cc54b66d55 Added HexGrid::GetCellsForLine(). 2023-08-13 21:18:46 +02:00
Martin Felis 4839bfcb00 Minor style cleanup. 2023-08-13 21:09:41 +02:00
Martin Felis 6c0bff1de1 Tweaked DebugStats UI. 2023-08-13 21:08:12 +02:00
Martin Felis d963c90912 Minor improvement of the NavigationTest scene. 2023-08-12 18:16:45 +02:00
Martin Felis 0ee11e358c Added additional missing equality operators for HexCell. 2023-08-12 15:20:30 +02:00
Martin Felis 3b73480845 HexGrid::SetBounds by default uses AxialCoords which fixes all tests. 2023-08-12 14:28:01 +02:00
Martin Felis 10afa67d85 Better equality operator for HexCell. 2023-08-12 14:27:30 +02:00
Martin Felis 5b6efaebe9 Spawn chests randomly and also mark according tiles as non-walkable. 2023-08-12 12:55:17 +02:00
Martin Felis e759d6d3d5 Fixed world generation artefacts after changing world size. 2023-07-28 22:23:41 +02:00
Martin Felis 87f7af88f8 Navigation: filtering out invalid start and end points. 2023-07-28 22:22:19 +02:00
Martin Felis b17531e504 Better heuristics to avoid full grid searches. 2023-07-17 22:58:15 +02:00
Martin Felis 667403b334 Better conversion between texture and offset coords. 2023-07-16 22:00:17 +02:00
Martin Felis cfd693938e Minor fixes. 2023-07-16 21:52:09 +02:00
Martin Felis 3f09b3102a FindPath and PathSmoothing somewhat working together. 2023-07-16 20:38:39 +02:00
Martin Felis f56a5bcaa7 Started working on path finding in HexGrid.cs. 2023-07-15 21:50:38 +02:00
Martin Felis c068663c3c Made rocks and player not pickable. Also reverted ItemAttractor radius to a higher value. 2023-07-15 01:00:58 +02:00
Martin Felis a87ed744f2 Should have been added ages ago. 2023-07-15 00:54:10 +02:00