Compare commits
3
Commits
c39993fc01
...
6143cac61d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6143cac61d | ||
|
|
112540ef50 | ||
|
|
54db9d7986 |
@@ -8,8 +8,7 @@
|
||||
- At the end : procedural map generation
|
||||
|
||||
## Player
|
||||
- Reset seed on reset
|
||||
- Don't reset on replayer
|
||||
- Hit box slitly smallest that the sprite
|
||||
|
||||
## Game over
|
||||
- Create Events to replace global bool resources
|
||||
@@ -25,12 +24,26 @@
|
||||
- Settings ui
|
||||
- ...
|
||||
|
||||
## Debug
|
||||
- More complex debug (what take the most resources at each frame...)
|
||||
|
||||
## Ideas
|
||||
- Camera shake / non-following patterns
|
||||
- Player trail (particuls) with normal / speed trails
|
||||
- Huge zone with projectiles to avoid
|
||||
- Near object bonus (maybe a bar for multiplicators)
|
||||
- Section with polarity : 2 player colors and obstacles with certain color and need to switch manualy between colors to pass througt obstacles
|
||||
- If not 1 life : multiples lifes and an ennemi that follows us (like subwaysurfer) ?
|
||||
- Key to press with certain order display on a wall or somewhere else
|
||||
- Random biomes
|
||||
- Add a dash !!!???
|
||||
- Wind that creates a force on the player
|
||||
- Reverse fall (fall on the side or up rather than down, maybe invert the controls)
|
||||
|
||||
## Bugs
|
||||
- Camera adapts to screen...
|
||||
|
||||
## Assets
|
||||
## Assets & Musics & Sounds
|
||||
- Make assets for better looking
|
||||
- Musics
|
||||
- Sounds
|
||||
|
||||
+5
-1
@@ -3,7 +3,11 @@ use bevy::{
|
||||
prelude::*,
|
||||
};
|
||||
|
||||
use crate::{camera::MainCamera, game_state::GameState, player::Player, world::RunSeed};
|
||||
use crate::{
|
||||
gameplay::{camera::MainCamera, player::Player},
|
||||
states::GameState,
|
||||
world::RunSeed,
|
||||
};
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Debug;
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
pub mod bounds;
|
||||
pub mod camera;
|
||||
pub mod collision;
|
||||
pub mod player;
|
||||
pub mod score;
|
||||
@@ -1,6 +1,9 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::{camera::MainCamera, collision::Collider, game_state::GameState, player::Player};
|
||||
use crate::{
|
||||
gameplay::camera::MainCamera, gameplay::collision::Collider, gameplay::player::Player,
|
||||
states::GameState,
|
||||
};
|
||||
|
||||
fn constrain_player(
|
||||
mut player: Single<(&Collider, &mut Transform), With<Player>>,
|
||||
@@ -1,8 +1,8 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::game_state::GameState;
|
||||
use crate::player::Player;
|
||||
use crate::player::move_player;
|
||||
use crate::gameplay::player::Player;
|
||||
use crate::gameplay::player::move_player;
|
||||
use crate::states::GameState;
|
||||
#[derive(Component)]
|
||||
pub struct MainCamera;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::{
|
||||
game_state::GameState,
|
||||
obstacle::Obstacle,
|
||||
player::{Player, move_player},
|
||||
gameplay::player::{Player, move_player},
|
||||
states::GameState,
|
||||
world::obstacle::Obstacle,
|
||||
};
|
||||
|
||||
// Hitbox
|
||||
@@ -1,8 +1,8 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::collision::Collider;
|
||||
use crate::collision::check_collision_with_player;
|
||||
use crate::game_state::GameState;
|
||||
use crate::gameplay::collision::Collider;
|
||||
use crate::gameplay::collision::check_collision_with_player;
|
||||
use crate::states::GameState;
|
||||
|
||||
const FALL_SPEED: f32 = 600.0; // Falling speed
|
||||
const DIVE_SPEED: f32 = 1000.0; // Falling speed sped up
|
||||
@@ -1,8 +1,8 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::{
|
||||
game_state::GameState,
|
||||
player::{Player, START_POSITION, move_player},
|
||||
gameplay::player::{Player, START_POSITION, move_player},
|
||||
states::GameState,
|
||||
};
|
||||
|
||||
#[derive(Resource, Default)]
|
||||
+10
-18
@@ -1,27 +1,19 @@
|
||||
use bevy::{prelude::*, window::PresentMode};
|
||||
|
||||
use crate::bounds::BoundsPlugin;
|
||||
use crate::camera::CameraPlugin;
|
||||
use crate::collision::CollisionPlugin;
|
||||
use crate::debug::DebugPlugin;
|
||||
use crate::game_over::GameOverPlugin;
|
||||
use crate::game_state::GameStatePlugin;
|
||||
use crate::main_menu::MainMenuPlugin;
|
||||
use crate::player::PlayerPlugin;
|
||||
use crate::score::ScorePlugin;
|
||||
use crate::gameplay::bounds::BoundsPlugin;
|
||||
use crate::gameplay::camera::CameraPlugin;
|
||||
use crate::gameplay::collision::CollisionPlugin;
|
||||
use crate::gameplay::player::PlayerPlugin;
|
||||
use crate::gameplay::score::ScorePlugin;
|
||||
use crate::states::GameStatePlugin;
|
||||
use crate::states::game_over::GameOverPlugin;
|
||||
use crate::states::main_menu::MainMenuPlugin;
|
||||
use crate::world::WorldPlugin;
|
||||
|
||||
mod background;
|
||||
mod bounds;
|
||||
mod camera;
|
||||
mod collision;
|
||||
mod debug;
|
||||
mod game_over;
|
||||
mod game_state;
|
||||
mod main_menu;
|
||||
mod obstacle;
|
||||
mod player;
|
||||
mod score;
|
||||
mod gameplay;
|
||||
mod states;
|
||||
mod world;
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
pub mod game_over;
|
||||
pub mod main_menu;
|
||||
|
||||
#[derive(States, Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum GameState {
|
||||
#[default]
|
||||
@@ -1,6 +1,6 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::{camera::MainCamera, game_state::GameState, world::RunSeed};
|
||||
use crate::{gameplay::camera::MainCamera, states::GameState, world::RunSeed};
|
||||
|
||||
// To delete game over's components
|
||||
#[derive(Component)]
|
||||
@@ -1,6 +1,6 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::{camera::MainCamera, game_state::GameState};
|
||||
use crate::{gameplay::camera::MainCamera, states::GameState};
|
||||
|
||||
// To delete menu's components
|
||||
#[derive(Component)]
|
||||
+5
-2
@@ -1,6 +1,9 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::{camera::MainCamera, game_state::GameState, player::Player};
|
||||
use crate::{gameplay::camera::MainCamera, gameplay::player::Player, states::GameState};
|
||||
|
||||
pub mod background;
|
||||
pub mod obstacle;
|
||||
|
||||
pub const CHUNK_HEIGHT: f32 = 600.0; // Height a cunk
|
||||
const MARGIN_BELLOW: f32 = 400.0; // Height bellow the camera view it'll be gen
|
||||
@@ -54,7 +57,7 @@ fn visible_chunk_range(player_y: f32, camera_y: f32) -> (i64, i64) {
|
||||
}
|
||||
|
||||
fn spawn_chunk(commands: &mut Commands, id: i64, run_seed: u64) {
|
||||
crate::background::spawn_background_chunk(commands, id);
|
||||
crate::world::background::spawn_background_chunk(commands, id);
|
||||
// crate::obstacle::spawn_obstacle_chunk(commands, id, run_seed);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::collision::Collider;
|
||||
use crate::gameplay::collision::Collider;
|
||||
use bevy::prelude::*;
|
||||
use rand::RngExt;
|
||||
use rand::SeedableRng;
|
||||
Reference in New Issue
Block a user