Commit Graph

56 Commits

Author SHA1 Message Date
78c6cf66c1 Add Sprite to GameObject. 2015-11-19 10:58:44 +01:00
f1714015db Stuff. 2015-11-18 14:01:14 +01:00
4edfc9a67e Remove TextureManager. 2015-11-18 08:49:09 +01:00
2ba792a8fd Prepare for a texture handler. 2015-11-18 07:08:12 +01:00
578909c847 Prepare to flip player. 2015-11-17 16:41:42 +01:00
a9d90d8c23 Prepare support to flip sprite. 2015-11-17 13:23:07 +01:00
cd3c290b03 D'oh! 2015-11-17 13:02:08 +01:00
3749e8d101 Clean up and fixes for collision handling. 2015-11-17 09:02:09 +01:00
2ef29c4021 More testing. 2015-11-17 07:04:31 +01:00
8b4ca56a2f Add tests for Layer::find_intersecting. 2015-11-16 21:17:35 +01:00
250d323a1c Almost! Just need to fix the collision handling. 2015-11-16 18:04:31 +01:00
2828a8ea04 Rect needs to have and height and width. 2015-11-16 15:13:01 +01:00
5d5a693508 Upgrade to most recent version of Rust. Still doesn't work. 2015-11-16 10:44:01 +01:00
b91ae6cb29 upgrade sdl2 and sdl2_image. use beta 2 2015-04-22 13:32:21 +02:00
d7d1ab1dc7 Use core Float instead of std::num::Float 2015-04-08 21:26:31 +02:00
aaceb9fd23 It's alive! 2015-04-08 21:23:18 +02:00
d14951e53a Get SDL2 and SDL2 Image to work together.
New event pump logic.
2015-04-08 16:52:00 +02:00
02e8dfec78 upgrade to rust nightly 2015-01-29 09:26:59 +01:00
d204978936 added graphics 2015-01-21 19:57:53 +01:00
d3ccd913c6 added more to the first level 2015-01-17 13:30:45 +01:00
26f55642d5 move sprite to a separate file 2015-01-17 12:32:45 +01:00
6957f340f3 removed old sprite sheet file, added static and animated sprites 2015-01-16 17:29:26 +01:00
05ee60cdc4 update readme with sdl2_image 2015-01-14 17:27:18 +01:00
bbeef60472 jay, working png support 2015-01-14 17:19:04 +01:00
9465b750b6 more mario like controls 2015-01-12 20:31:04 +01:00
817e66ec67 added acceleration to player 2015-01-12 17:00:04 +01:00
b02f487e18 get_tile now returns an Option<&Tile> 2015-01-12 14:26:26 +01:00
b481a4f3bb better collision logic for tiles 2015-01-12 14:13:17 +01:00
1c9af73baa upgrade to rust alpha 1.0.0 2015-01-12 12:51:13 +01:00
2d53866272 fixed some bugs with collision detection 2015-01-06 23:37:00 +01:00
ff9ab15240 better collision detection, i hope 2015-01-06 23:12:35 +01:00
b5f94170f7 rename get_rect to to_rect, and there is scrolling! 2015-01-06 18:16:33 +01:00
db4b16c08d moved camera to a separate mod and use Rect intersection and has_intersection methods 2015-01-06 16:07:03 +01:00
62c74a0736 for_each_intersecting gives a rect 2015-01-06 15:35:34 +01:00
9623439ca7 only zero velocity when we should 2015-01-06 15:07:32 +01:00
37c502aef3 better tile handling and update sdl 2015-01-06 15:02:41 +01:00
62101e8466 just check intersecting tiles 2015-01-02 16:02:17 +01:00
4cca0eac2c a simple tile system 2015-01-02 15:23:45 +01:00
e313bbf80a better collision handling 2014-12-23 21:51:17 +01:00
4c298d3a64 be kind to the cpu, it has a lot to do 2014-12-23 11:37:43 +01:00
75eebf1770 just look at y for now 2014-12-23 11:28:38 +01:00
d2ace9cc23 update sdl2 to 0.0.10 2014-12-16 21:53:26 +01:00
85c95f24f2 update readme, added super duper mega simple collision detection 2014-12-15 09:37:11 +01:00
3b72327f0e prepare for some super basic collision detection 2014-12-13 16:44:53 +01:00
0176bb2987 update to sdl2 0.0.8, and move code to modules 2014-12-13 16:32:13 +01:00
f950e01002 added readme 2014-12-11 15:24:58 +01:00
97d1e02614 rename and move floor down 100 px 2014-12-11 10:35:06 +01:00
70edeb9580 aahh, now i understand that warning 2014-12-10 21:48:08 +01:00
9b191353ac we dont need to have a named loop right now 2014-12-10 21:42:24 +01:00
08ac748078 move player update code to a method 2014-12-10 21:39:11 +01:00