Commit Graph
82 Commits
Author SHA1 Message Date
logaritmisk ac57e9ee38 Update crates.
Fmt.
Clippy.
2017-11-21 09:50:59 +01:00
logaritmisk ec42cb33e0 Did stuff. 2017-02-03 10:00:07 +01:00
logaritmisk 8178b415ae Update sdl2. 2017-01-04 16:39:58 +01:00
logaritmisk c9db5ba062 Small refactor of Layer. 2016-12-27 16:59:57 +01:00
logaritmisk f2b4e417e0 And it works again. 2016-11-14 21:07:54 +01:00
logaritmisk 923b64994b Upgrade sdl2 and sdl2 image. 2016-10-02 22:27:17 +02:00
logaritmisk aced867ad9 Merge branch 'master' of github.com:Logaritmisk/rust-smb 2016-06-15 19:51:36 +02:00
logaritmisk 65909c4275 Moved physics to physics. 2016-06-15 19:51:24 +02:00
logaritmisk d89d2b0d32 Fixes (Thanks clippy!). 2016-06-15 16:09:52 +02:00
logaritmisk 4c2b5a994c Let KeyboardManager handle events.
Clean up event loop a little.
2016-06-12 21:48:27 +02:00
logaritmisk 19a1f4b8f9 Update SDL2 and SDL2 Image. 2016-06-08 00:33:27 +02:00
logaritmisk 9926aa177c Move player components to separate mod. 2016-06-08 00:14:58 +02:00
logaritmisk 4f1d72b94f Move out GameObject and components. 2016-06-08 00:03:35 +02:00
logaritmisk a4f31c0397 Clean up some warnings. 2016-06-07 23:54:15 +02:00
logaritmisk bdd3d4db3a And he can stand still! 2016-06-07 23:46:13 +02:00
logaritmisk 2906672289 Move flip_horizontal to PlayerGraphicsComponent. 2016-06-07 23:18:49 +02:00
logaritmisk 20557bbf79 New timer struct.
Fix frame rate for animated sprites.
2016-05-30 22:58:38 +02:00
logaritmisk 2c7d5cc1d6 Upgrade SDL2 and SDL2 Image. 2016-05-17 20:37:57 +02:00
logaritmisk 6034e21e25 Upgrade SDL2 and SDL2 Image. 2015-12-14 08:51:07 +01:00
logaritmisk 6148c06087 Did things I don't remember :'( 2015-12-04 16:45:38 +01:00
logaritmisk 02a7f536cc Fix sprite for player. 2015-11-25 11:09:54 +01:00
logaritmisk 4addaac331 Flip! 2015-11-23 07:12:13 +01:00
logaritmisk ad75b2fbfa Jay! Works now! 2015-11-20 17:31:18 +01:00
logaritmisk 0acb7c224d Almost nothing. 2015-11-20 07:34:34 +01:00
logaritmisk 0d4cbe7487 It's close to work now! 2015-11-19 23:08:44 +01:00
logaritmisk dc2ad09f4f Stuff. 2015-11-19 12:57:41 +01:00
logaritmisk 78c6cf66c1 Add Sprite to GameObject. 2015-11-19 10:58:44 +01:00
logaritmisk f1714015db Stuff. 2015-11-18 14:01:14 +01:00
logaritmisk 4edfc9a67e Remove TextureManager. 2015-11-18 08:49:09 +01:00
logaritmisk 2ba792a8fd Prepare for a texture handler. 2015-11-18 07:08:12 +01:00
logaritmisk 578909c847 Prepare to flip player. 2015-11-17 16:41:42 +01:00
logaritmisk a9d90d8c23 Prepare support to flip sprite. 2015-11-17 13:23:07 +01:00
logaritmisk cd3c290b03 D'oh! 2015-11-17 13:02:08 +01:00
logaritmisk 3749e8d101 Clean up and fixes for collision handling. 2015-11-17 09:02:09 +01:00
logaritmisk 2ef29c4021 More testing. 2015-11-17 07:04:31 +01:00
logaritmisk 8b4ca56a2f Add tests for Layer::find_intersecting. 2015-11-16 21:17:35 +01:00
logaritmisk 250d323a1c Almost! Just need to fix the collision handling. 2015-11-16 18:04:31 +01:00
logaritmisk 2828a8ea04 Rect needs to have and height and width. 2015-11-16 15:13:01 +01:00
logaritmisk 5d5a693508 Upgrade to most recent version of Rust. Still doesn't work. 2015-11-16 10:44:01 +01:00
logaritmisk b91ae6cb29 upgrade sdl2 and sdl2_image. use beta 2 2015-04-22 13:32:21 +02:00
logaritmisk d7d1ab1dc7 Use core Float instead of std::num::Float 2015-04-08 21:26:31 +02:00
logaritmisk aaceb9fd23 It's alive! 2015-04-08 21:23:18 +02:00
logaritmisk d14951e53a Get SDL2 and SDL2 Image to work together.
New event pump logic.
2015-04-08 16:52:00 +02:00
logaritmisk 02e8dfec78 upgrade to rust nightly 2015-01-29 09:26:59 +01:00
logaritmisk d204978936 added graphics 2015-01-21 19:57:53 +01:00
logaritmisk d3ccd913c6 added more to the first level 2015-01-17 13:30:45 +01:00
logaritmisk 26f55642d5 move sprite to a separate file 2015-01-17 12:32:45 +01:00
logaritmisk 6957f340f3 removed old sprite sheet file, added static and animated sprites 2015-01-16 17:29:26 +01:00
logaritmisk 05ee60cdc4 update readme with sdl2_image 2015-01-14 17:27:18 +01:00
logaritmisk bbeef60472 jay, working png support 2015-01-14 17:19:04 +01:00
logaritmisk 9465b750b6 more mario like controls 2015-01-12 20:31:04 +01:00
logaritmisk 817e66ec67 added acceleration to player 2015-01-12 17:00:04 +01:00
logaritmisk b02f487e18 get_tile now returns an Option<&Tile> 2015-01-12 14:26:26 +01:00
logaritmisk b481a4f3bb better collision logic for tiles 2015-01-12 14:13:17 +01:00
logaritmisk 1c9af73baa upgrade to rust alpha 1.0.0 2015-01-12 12:51:13 +01:00
logaritmisk 2d53866272 fixed some bugs with collision detection 2015-01-06 23:37:00 +01:00
logaritmisk ff9ab15240 better collision detection, i hope 2015-01-06 23:12:35 +01:00
logaritmisk b5f94170f7 rename get_rect to to_rect, and there is scrolling! 2015-01-06 18:16:33 +01:00
logaritmisk db4b16c08d moved camera to a separate mod and use Rect intersection and has_intersection methods 2015-01-06 16:07:03 +01:00
logaritmisk 62c74a0736 for_each_intersecting gives a rect 2015-01-06 15:35:34 +01:00
logaritmisk 9623439ca7 only zero velocity when we should 2015-01-06 15:07:32 +01:00
logaritmisk 37c502aef3 better tile handling and update sdl 2015-01-06 15:02:41 +01:00
logaritmisk 62101e8466 just check intersecting tiles 2015-01-02 16:02:17 +01:00
logaritmisk 4cca0eac2c a simple tile system 2015-01-02 15:23:45 +01:00
logaritmisk e313bbf80a better collision handling 2014-12-23 21:51:17 +01:00
logaritmisk 4c298d3a64 be kind to the cpu, it has a lot to do 2014-12-23 11:37:43 +01:00
logaritmisk 75eebf1770 just look at y for now 2014-12-23 11:28:38 +01:00
logaritmisk d2ace9cc23 update sdl2 to 0.0.10 2014-12-16 21:53:26 +01:00
logaritmisk 85c95f24f2 update readme, added super duper mega simple collision detection 2014-12-15 09:37:11 +01:00
logaritmisk 3b72327f0e prepare for some super basic collision detection 2014-12-13 16:44:53 +01:00
logaritmisk 0176bb2987 update to sdl2 0.0.8, and move code to modules 2014-12-13 16:32:13 +01:00
logaritmisk f950e01002 added readme 2014-12-11 15:24:58 +01:00
logaritmisk 97d1e02614 rename and move floor down 100 px 2014-12-11 10:35:06 +01:00
logaritmisk 70edeb9580 aahh, now i understand that warning 2014-12-10 21:48:08 +01:00
logaritmisk 9b191353ac we dont need to have a named loop right now 2014-12-10 21:42:24 +01:00
logaritmisk 08ac748078 move player update code to a method 2014-12-10 21:39:11 +01:00
logaritmisk 36dc4e62cd remove font, and create a player struct 2014-12-10 21:32:23 +01:00
logaritmisk 1bc1b6a4c6 kill all whitespaces 2014-12-10 20:46:52 +01:00
logaritmisk 8d76577515 we got jumping 2014-12-10 20:40:07 +01:00
logaritmisk 4afcc799ec i am an idiot, now it is so smoooth 2014-12-10 20:16:40 +01:00
logaritmisk 065d816e58 forgot gitignore 2014-12-10 20:02:57 +01:00
logaritmisk ff6a478989 initial commit 2014-12-10 20:02:43 +01:00