Commit Graph

418 Commits

Author SHA1 Message Date
SeanOMik fa6511bff1 render: create TileMap with a 'RelativeToTile' component to position entities along the grid 2024-11-30 22:12:17 +00:00
SeanOMik 4afd518f45 render: remove unused field from SpriteInstance struct on gpu 2024-11-30 22:12:17 +00:00
SeanOMik e1f48d525a render: implement sprite pivot, fix sprite centering in ortho projection 2024-11-30 22:12:17 +00:00
SeanOMik 3c3025668a Make sprite texture atlas more generic 2024-11-30 22:12:17 +00:00
SeanOMik 7e9ece83a2 Format some code, update wgsl-preprocessor crate 2024-11-30 22:12:17 +00:00
SeanOMik 05ed1f1135 2d: support animating from ResHandle<AtlasAnimations>, not just non-asset handles 2024-11-30 22:12:17 +00:00
SeanOMik af2d7b4980 2d: create an animation sheet component 2024-11-30 22:12:17 +00:00
SeanOMik e3b0b1de8f implement texture atlases for sprites, allow storage of assets not from a loader 2024-11-30 22:12:17 +00:00
SeanOMik b78101718e game: create TopDown2dCamera controller, fix warning 2024-11-30 22:12:17 +00:00
SeanOMik c73ba3b943 rename FreeFlyCamera to FreeFly3dCamera 2024-11-30 22:12:17 +00:00
SeanOMik b2f0abf34d render: add more option for scaling modes of orthographic projection 2024-11-30 22:12:17 +00:00
SeanOMik c14c46f75d Return Result for asset handle wait_for_load, create shader asset loader that uses the preprocessor 2024-11-30 22:12:17 +00:00
SeanOMik 865fbf9b91 update examples to use new camera bundles 2024-11-30 22:12:17 +00:00
SeanOMik 6a09b64902 ecs: implement Bundle traits for structs 2024-11-30 22:12:17 +00:00
SeanOMik c4e5147967 render: fix 2d camera 2024-11-30 22:12:17 +00:00
SeanOMik 6b9561d9bd render: implement 2d sprite rendering 2024-11-30 22:12:17 +00:00
SeanOMik 62adcf2b50 ecs: create DynTypeId::as_unknown
CI / build (push) Failing after 6m11s Details
2024-11-06 21:23:01 -05:00
SeanOMik 4816b7333e
Make system_update_world_transforms also update world transforms for SceneGraphs
CI / build (push) Failing after 2m53s Details
Before this couldn't be done since lyra-scene could not depend on lyra-resource, it would have caused a cyclic dependency. The last commit, where I created lyra-gltf from code inside lyra-resource, made this possible
2024-11-01 19:45:29 -04:00
SeanOMik 5542467d7e
separate GLTF loader to its own crate 2024-11-01 12:09:01 -04:00
SeanOMik 3ce9ab6fb3
move crates into 'crates' folder 2024-11-01 11:17:36 -04:00
SeanOMik f02d3c6b2f
render: create a transform pass for sending transforms to the GPU
CI / build (push) Failing after 3m33s Details
2024-11-01 11:05:51 -04:00
SeanOMik 7ae0eae6ac Merge pull request 'Improve Lua ECS' (#30) from feat/improve-lua-ecs-29 into main
CI / build (push) Failing after 3m52s Details
Reviewed-on: #30
2024-10-29 23:22:19 -04:00
SeanOMik fae2cdfadc
lua: remove old implementation of world:view, replacing it with the new version
CI / build (pull_request) Failing after 4m7s Details
2024-10-29 23:20:52 -04:00
SeanOMik 076676e486
lua: write lua annotations for all queries and view one
CI / build (pull_request) Failing after 3m6s Details
2024-10-29 23:04:00 -04:00
SeanOMik 0e613bd216
lua: implement world:view_one for lua 2024-10-29 21:56:07 -04:00
SeanOMik 964c4ec423
lua: create LuaOptionalQuery 2024-10-29 14:22:03 -04:00
SeanOMik 23a215ba46
lua: create LuaTickOfQuery 2024-10-29 09:32:32 -04:00
SeanOMik 42112c2cf1
lua: create LuaOrQuery 2024-10-29 09:19:54 -04:00
SeanOMik f2ff2a9855
lua: start using LuaQueryResult in all lua ecs queries 2024-10-29 09:10:14 -04:00
SeanOMik 7c2efe3c6f
lua: create LuaNotQuery 2024-10-29 08:48:30 -04:00
SeanOMik cb3c3a601f
lua: create LuaQueryResult for simplying implementation of queries and filters 2024-10-23 16:47:45 -04:00
SeanOMik 8072ec1c7e
lua: create LuaHasQuery 2024-10-23 16:31:47 -04:00
SeanOMik 4dbd96832f
lua: add world:get_tick() to lua, write some missing type annotations
I tried to use generics to improve existing annotations, but I don't think it changed anything since the annotations for generics are kind of garbage
2024-10-21 21:58:22 -04:00
SeanOMik 2e33de5da2
lua: implement Changed query that supports components and resources 2024-10-20 21:20:43 -04:00
SeanOMik 74465ce614
lua: code cleanup 2024-10-19 20:51:54 -04:00
SeanOMik 380b15e560
lua: implement ecs queries that work with the new Views 2024-10-19 20:42:28 -04:00
SeanOMik 2ffdd4085b
lua: create `View`s that can query from the world 2024-10-19 17:45:59 -04:00
SeanOMik 156cbf25a4
fix ci by ignoring tracy tsc check
CI / build (push) Failing after 3m13s Details
2024-10-19 11:48:24 -04:00
SeanOMik b2d259ac71 Merge pull request 'Expose structs to Lua and write Lua type annotations' (#28) from feat/lua-type-defs into main
CI / build (push) Failing after 2m43s Details
Reviewed-on: #28
2024-10-19 11:16:33 -04:00
SeanOMik d001e136d0
lua: expose WorldTransform
CI / build (pull_request) Failing after 3m20s Details
2024-10-17 17:11:46 -04:00
SeanOMik d0e6fc6ecd
lua: make it easier to expose events and asset handle wrappers 2024-10-13 12:30:06 -04:00
SeanOMik 6a47cd2671
lua: expose DeviceEvent 2024-10-13 11:43:49 -04:00
SeanOMik 8e56ee1f0f
lua: start exposing events 2024-10-11 20:49:00 -04:00
SeanOMik 9e9478966b
lua: cleanup 2024-10-09 12:06:08 -04:00
SeanOMik 624cd5362f
lua: change lyra-scripting path in lyra-engine crate 2024-10-09 11:08:21 -04:00
SeanOMik eff6b221e0
remove unused code, cleanup some warnings 2024-10-09 10:56:54 -04:00
SeanOMik 77ec620adb
lua: remove unused fields in FreeFlyCamera 2024-10-09 10:30:45 -04:00
SeanOMik 6f65e2ce35
lua: add lua type defs for FreeFlyCamera and change name of field 2024-10-08 20:49:57 -04:00
SeanOMik b90e19161d
lua: expose FreeFlyCamera 2024-10-07 16:28:38 -04:00
SeanOMik e9cbb48653
lua: expose camera, support ToLua and FromLua structs in World:view 2024-10-07 15:20:13 -04:00