Commit Graph

1072 Commits

Author SHA1 Message Date
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 Seaman 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
stefanrbk 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
stefanrbk 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
Dylan Wilson a05c144931 fixed some bugs for perfect tweening 2018-04-26 23:18:41 +10:00
Dylan Wilson 16e767a9be all the good tweening bits in place 2018-04-26 22:41:53 +10:00
Dylan Wilson 2099431ba5 working on a brand new tweening library 2018-04-25 22:54:34 +10:00
Dylan Wilson 97e995a029 added a bunch of files to solution items 2018-04-19 22:19:21 +10:00
Dylan Wilson 7064821a5f added a basic cake build script 2018-04-18 21:38:46 +10:00
Dylan Wilson 9367871aea implemented mouse and keyboard extended 2018-04-16 23:41:43 +10:00
Dylan Wilson 06adea2ddc roughed out a title screen 2018-04-15 20:40:16 +10:00
Dylan Wilson d576a4c99b fun with transitions 2018-04-11 23:30:21 +10:00
Dylan Wilson 3147757f4c fun with transitions 2018-04-11 22:53:09 +10:00
Dylan Wilson a3393cb754 got basic screen transitions working 2018-04-10 23:01:10 +10:00
Dylan Wilson 1cab4b9c43 got basic screen transitions working 2018-04-10 22:59:46 +10:00
Dylan Wilson bc65dab9ac got basic screen transitions working 2018-04-10 22:40:45 +10:00
Dylan Wilson 332ee260d5 working on new screen management stuff 2018-04-09 23:30:42 +10:00
Dylan Wilson 658a8d4fe3 added paddle hit sound effect 2018-04-09 21:31:42 +10:00
Dylan Wilson bc985ccf61 added pong scores 2018-04-08 14:40:04 +10:00
Dylan Wilson 01002d1a95 pong is coming along 2018-04-07 23:07:06 +10:00
Dylan Wilson dd9a2f3890 started a game of pong as a demo 2018-04-05 22:28:39 +10:00