Commit Graph
1089 Commits
Author SHA1 Message Date
Dylan Wilson a2eda72620 rejigged the base systems classes and interfaces 2018-06-27 21:19:20 +10:00
Dylan Wilson 3c023d242f entity pooling and other refactorings 2018-06-25 22:05:36 +10:00
Dylan Wilson dce7354a57 optimized entity subscriptions 2018-06-23 21:54:39 +10:00
Dylan Wilson 547799d93c it's pretty darn close to fast 2018-06-22 22:59:52 +10:00
Dylan Wilson 6e73a59055 some code cleanup and documentation 2018-06-20 22:02:28 +10:00
Dylan Wilson 89dbb71a1a removed the old ecs and refactored the platformer demo to use the new ecs 2018-06-19 21:24:56 +10:00
Dylan Wilson b71dd0fdfa Merge branch 'develop' into badguys 2018-06-14 21:14:21 +10:00
Dylan Wilson b8cf165347 removed dirty hack from the projects and fixed it in the cake script 2018-06-14 21:12:58 +10:00
Dylan Wilson 207010fbd7 trying out a dirty hack to hopefully workaround issue #495 2018-06-14 20:40:38 +10:00
Dylan Wilson e46c61609b removed incomplete test 2018-06-13 23:04:38 +10:00
Dylan Wilson 9b2d3670e5 almost finished this beast 2018-06-13 23:03:22 +10:00
Dylan Wilson ffb0d1353b just some clean up and prep tonight 2018-06-11 22:38:35 +10:00
Dylan Wilson a9ec00a21f implemented aspect filtering builder 2018-06-10 23:49:35 +10:00
Dylan Wilson ed508d8b8c making progress on the new ecs framework 2018-06-09 23:09:06 +10:00
Dylan Wilson d86f767cce rewriting ecs from scratch 2018-06-09 00:02:07 +10:00
Dylan Wilson c4bca0d7ad this is just a rollback point 2018-06-06 20:32:47 +10:00
Dylan Wilson 5457d80727 improved and simplified collision detection in the platformer demo 2018-06-04 22:38:36 +10:00
Dylan Wilson 511a56d00a tweaks and bug fixes 2018-06-02 22:30:40 +10:00
Dylan Wilson 35540dd181 playing with sprite animations 2018-06-01 23:30:46 +10:00
Dylan Wilson 1a64b291ea animated sprite 2018-05-31 22:21:43 +10:00
Dylan Wilson 0ec192543d refactoring the platformer to use the entity component system 2018-05-31 22:12:59 +10:00
Dylan Wilson 8cc2ce285e hacking at the platformer demo to find room for improvement 2018-05-30 22:31:27 +10:00
Jon SeamanandDylan Wilson ce9fc2459b QuadTree Collision Library (#504)
* Created unit test project for collisions.

* Started on tests

* Created unit test project for collisions.

* Started on tests

* Update collision test

* CollisionInfo docs

* More docs for CollisionGrid and Cell

* Fix obsolete warning for RectangleF.Intersect

* Summary for CollisionGrid and CollisionGridCell

* QuadTree collision implemented

 - Ported from C++ from Game Physics Cookbook chapter 6, 2D Optimizations

* Small refactor for QuadTree naming

* First tests for QuadTree

* Fix test

* COde Cleanup

* Added DefaultMaxObjectsPerNode

* Add missed Query code

* Insert Tests and bugfix

* Fix bug with QuadTree.Shake

* Fix namespaces

* Query tests and fix

* Additional test for Query

* Initial QuadTreeCollision Component

* Basic collision demo working

* Spikey ball colliding with walls

* Improved the collision demo

* Update QuadTree

* Added comment for CollisionComponent

* Ignore test that needs fixed

* Rename QuadTree to Quadtree

* Fix penetration vector

* Update to 2.0 and xUnit
2018-05-30 20:26:34 +10:00
Dylan Wilson e715f33573 loading tiled map into platformer demo 2018-05-29 21:59:50 +10:00
stefanrbkandDylan Wilson f98776ac8b Texture bug fix (#501)
When I released #480 to fix some texture alignment issues, I failed to check the variable types for the math being done. With my original fix by removing the `+ 0.5f` overdraw, the math changed from `float` division to `int` division. I'm now recasting for `float` division as it should be!

My bad!!
2018-05-28 21:50:13 +10:00
Dylan Wilson be01f42f4c unfortunately, unit tests don't work on the build machine 2018-05-28 21:45:52 +10:00
Dylan Wilson b3bc4aefc5 restored texture atlas unit tests 2018-05-28 21:24:25 +10:00
stefanrbkandDylan Wilson 04b994cbc5 Remove bug in TextureAtlas.RemoveRegion (#502)
When removing a `TextureRegion2D` from a `TextureAtlas`, referencing the `TextureRegion2D`s by index works, but referencing by name points to the old index. The only way I could think of making the current code work would be to rebuild the `Dictionary<string, int>` every time, or atleast the parts which are affected by the removal. Instead of rebuilding the internal `Dictionary<string, int> _regionMap` every time an entry is removed, I changed the signature to `Dictionary<string, TextureRegion2D>`. This eliminates the need to translate the name into a `List<TextureRegion2D>` index in the first place.

What do you guys think?
2018-05-28 20:54:20 +10:00
Dylan Wilson 8e23664f10 fixed project references 2018-05-25 21:58:00 +10:00
Dylan Wilson 62eddc8848 very rough platformer demo 2018-05-25 21:53:33 +10:00
Dylan Wilson bc1689565a added a gui demo 2018-05-25 21:34:11 +10:00
Dylan Wilson 2791d4347a do away with the old nuspec files 2018-05-24 21:36:15 +10:00
Dylan Wilson 85acd1c88b fixed nuget version for pre-release packages 2018-05-24 21:13:56 +10:00
Dylan Wilson 3ff145422e merged from develop 2018-05-23 22:51:45 +10:00
Dylan Wilson e107de530c minor tweak to the star warrior demo 2018-05-23 21:11:20 +10:00
Dylan Wilson 2ec6df4db4 added nuget package metadata 2018-05-17 22:25:07 +10:00
Dylan Wilson 2eeb992571 fixed a bug in autoreverse tweening 2018-05-17 21:54:12 +10:00
Dylan Wilson 7dc07a9663 moved the content pipeline dll output folder 2018-05-16 21:58:49 +10:00
Dylan Wilson 3834e3cf5b trying to fix references to content pipeline dll 2018-05-16 21:44:46 +10:00
Dylan Wilson 339e69b994 dotnet pack the nuget packages 2018-05-14 23:07:48 +10:00
Dylan Wilson ae5b67218f fixed some bugs in the tweening system 2018-05-14 21:52:27 +10:00
Dylan Wilson b4860bd4bb converted all of the unit tests to xunit 2018-05-12 21:05:02 +10:00
Dylan Wilson bcd9171317 slowly converting tests to xunit 2018-05-11 22:34:19 +10:00
Dylan Wilson 2cf9ec7350 partially restored the cake build 2018-05-10 21:33:43 +10:00
Dylan Wilson 0121a2b9c5 dotnet standard 2.0 baby! 2018-05-09 21:58:40 +10:00
Dylan Wilson 5e3cbb3109 partially optimized tweening memory allocations 2018-05-04 21:31:10 +10:00
Dylan Wilson c55a8ce5d0 c# 7 features are breaking things 2018-05-02 20:43:46 +10:00
Dylan Wilson 4c6e2e7995 small refactor ready for memory allocation optimizations 2018-05-01 20:40:16 +10:00
Dylan Wilson 918e6c9e24 tweening cancellation and other goodies 2018-04-27 22:52:22 +10:00
Dylan Wilson 6c750e4d27 code cleanup 2018-04-26 23:21:10 +10:00