Skip to content

Commit

Permalink
chore: add todo list 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
eerii committed Dec 18, 2023
1 parent 142860f commit f5acef9
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## todo 📝

### rendering

- [ ] pixel perfect camera
- [ ] render to smaller surface
- [ ] upscale the surface an integer amount, with borders
- [ ] add smooth camera

### ui

- [ ] expand ui elements with components
- [ ] tweening and animation (https://github.com/djeedai/bevy_tweening)
- [ ] rounded button corners (bevy 0.13)
- [ ] inspector
- [ ] add assets and resources
- [ ] resize viewport when opened
- [ ] settings
- [ ] add back keyboard remapping
- [ ] replace key names with icons from kenney (once they release)
- [ ] color picker
- [ ] scrollable settings (bevy 0.13)

### project

- [ ] separate input and camera into crates
- [ ] add example games
- [ ] doodle jump
- [ ] suika
- [ ] update to bevy-main
2 changes: 0 additions & 2 deletions src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ use crate::{
GameState,
};

// TODO: Option for pixel perfect smooth upscaling camera

// ······
// Plugin
// ······
Expand Down
1 change: 0 additions & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ pub enum KeyBind {

impl ToString for KeyBind {
fn to_string(&self) -> String {
// TODO: Replace this with a key icon lookup, maybe use the ones from kenney once released
match self {
KeyBind::Key(key) => format!("{:?}", key),
KeyBind::Mouse(button) => format!("m{:?}", button),
Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ pub use crate::{
},
};

// TODO: Make todo and changelog file, create a real versioning system (maybe project in gh)
// TODO: Add example games (port the doodle jump from python, maybe something like suika)
// TODO: Try to port to bevy-main
// TODO: Separate input and camera into crates

// [CHANGE]: Game title and resolution
pub const GAME_TITLE: &str = "Hello Bevy!";
pub const INITIAL_RESOLUTION: Vec2 = Vec2::new(600., 600.);
Expand Down
5 changes: 1 addition & 4 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ pub const UI_LAYER: RenderLayers = RenderLayers::layer(1);
pub const FONT_MULTIPLIERS: [f32; 3] = [2.0, 1.0, 0.8];
pub const FONT_SIZES: [f32; 5] = [16.0, 20.0, 24.0, 28.0, 32.0];

// TODO: Ui elements with components
// TODO: Tweening and animation (Look into https://github.com/djeedai/bevy_tweening)
// TODO: Rounded button corners (Requires #8973 to be merged in 0.13)

// ······
// Plugin
// ······
Expand Down Expand Up @@ -212,6 +208,7 @@ impl<'a> UIText<'a> {
}

// Button
// TODO: Rounded button corners (Requires #8973 to be merged in 0.13)

struct UIButton<T: Component> {
button: ButtonBundle,
Expand Down
11 changes: 6 additions & 5 deletions src/ui/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,17 @@ mod only_in_debug {

fn handle_keys(
mut state: ResMut<DebugState>,
mut _win: Query<&mut Window>,
mut win: Query<&mut Window, With<PrimaryWindow>>,
keys: Res<Input<KeyCode>>,
) {
if keys.just_pressed(KeyCode::I) {
state.inspector = !state.inspector;
}

// TODO: Resize window / Viewport
if let Ok(mut win) = win.get_single_mut() {
win.resolution.set(1000., 600.);
// TODO: Propper resolution and resize viewport
}
}
}

fn update_fps(
Expand Down Expand Up @@ -216,7 +219,5 @@ mod only_in_debug {
ui.allocate_space(ui.available_size());
});
});

// TODO: Assets & resources
}
}

0 comments on commit f5acef9

Please sign in to comment.