From 544c030b80d4d7b9a3b00711ff21b2592275a7e8 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Tue, 6 Mar 2018 21:05:29 +0200 Subject: Bugs walking to the middle of the screen slowly --- src/main.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 64ac0c2..960197f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,11 +2,11 @@ extern crate gate; use gate::{App, Audio}; use gate::app_info::AppInfo; -use gate::input::{InputEvent, KeyCode, MouseButton}; +use gate::input::*; use gate::renderer::{Renderer, Affine}; mod asset_id { include!(concat!(env!("OUT_DIR"), "/asset_id.rs")); } -use asset_id::{AssetId, SpriteId, TileId, MusicId, SoundId}; +use asset_id::*; mod geometry; use geometry::*; @@ -64,9 +64,14 @@ fn main() { let info = AppInfo::with_app_height(1000.).title("Bug Basher").build(); gate::run(info, BugBasherGame { bugs: vec!( - Bug::new(0., 0., 0.), Bug::new(500., 200., 0.3), Bug::new(-200., -200., 1.5), + Bug::new(-1000., 200., 0.), + Bug::new(1200., 0., 0.3), + Bug::new(-1300., 0., 1.5), + Bug::new(0., 1100., 0.), + Bug::new(0., -1500., 0.3), + Bug::new(300., -1200., 1.5), ) }); } -- cgit v1.2.3