Compare commits
3
Commits
c39993fc01
...
6143cac61d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6143cac61d | ||
|
|
112540ef50 | ||
|
|
54db9d7986 |
@@ -8,8 +8,7 @@
|
|||||||
- At the end : procedural map generation
|
- At the end : procedural map generation
|
||||||
|
|
||||||
## Player
|
## Player
|
||||||
- Reset seed on reset
|
- Hit box slitly smallest that the sprite
|
||||||
- Don't reset on replayer
|
|
||||||
|
|
||||||
## Game over
|
## Game over
|
||||||
- Create Events to replace global bool resources
|
- Create Events to replace global bool resources
|
||||||
@@ -25,12 +24,26 @@
|
|||||||
- Settings ui
|
- Settings ui
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
|
## Debug
|
||||||
|
- More complex debug (what take the most resources at each frame...)
|
||||||
|
|
||||||
## Ideas
|
## Ideas
|
||||||
- Camera shake / non-following patterns
|
- Camera shake / non-following patterns
|
||||||
- Player trail (particuls) with normal / speed trails
|
- 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
|
## Bugs
|
||||||
- Camera adapts to screen...
|
- Camera adapts to screen...
|
||||||
|
|
||||||
## Assets
|
## Assets & Musics & Sounds
|
||||||
- Make assets for better looking
|
- Make assets for better looking
|
||||||
|
- Musics
|
||||||
|
- Sounds
|
||||||
|
|||||||
+5
-1
@@ -3,7 +3,11 @@ use bevy::{
|
|||||||
prelude::*,
|
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)]
|
#[derive(Component)]
|
||||||
pub struct Debug;
|
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 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(
|
fn constrain_player(
|
||||||
mut player: Single<(&Collider, &mut Transform), With<Player>>,
|
mut player: Single<(&Collider, &mut Transform), With<Player>>,
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
use crate::game_state::GameState;
|
use crate::gameplay::player::Player;
|
||||||
use crate::player::Player;
|
use crate::gameplay::player::move_player;
|
||||||
use crate::player::move_player;
|
use crate::states::GameState;
|
||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
pub struct MainCamera;
|
pub struct MainCamera;
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
game_state::GameState,
|
gameplay::player::{Player, move_player},
|
||||||
obstacle::Obstacle,
|
states::GameState,
|
||||||
player::{Player, move_player},
|
world::obstacle::Obstacle,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Hitbox
|
// Hitbox
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
use crate::collision::Collider;
|
use crate::gameplay::collision::Collider;
|
||||||
use crate::collision::check_collision_with_player;
|
use crate::gameplay::collision::check_collision_with_player;
|
||||||
use crate::game_state::GameState;
|
use crate::states::GameState;
|
||||||
|
|
||||||
const FALL_SPEED: f32 = 600.0; // Falling speed
|
const FALL_SPEED: f32 = 600.0; // Falling speed
|
||||||
const DIVE_SPEED: f32 = 1000.0; // Falling speed sped up
|
const DIVE_SPEED: f32 = 1000.0; // Falling speed sped up
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
game_state::GameState,
|
gameplay::player::{Player, START_POSITION, move_player},
|
||||||
player::{Player, START_POSITION, move_player},
|
states::GameState,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Resource, Default)]
|
#[derive(Resource, Default)]
|
||||||
+10
-18
@@ -1,27 +1,19 @@
|
|||||||
use bevy::{prelude::*, window::PresentMode};
|
use bevy::{prelude::*, window::PresentMode};
|
||||||
|
|
||||||
use crate::bounds::BoundsPlugin;
|
|
||||||
use crate::camera::CameraPlugin;
|
|
||||||
use crate::collision::CollisionPlugin;
|
|
||||||
use crate::debug::DebugPlugin;
|
use crate::debug::DebugPlugin;
|
||||||
use crate::game_over::GameOverPlugin;
|
use crate::gameplay::bounds::BoundsPlugin;
|
||||||
use crate::game_state::GameStatePlugin;
|
use crate::gameplay::camera::CameraPlugin;
|
||||||
use crate::main_menu::MainMenuPlugin;
|
use crate::gameplay::collision::CollisionPlugin;
|
||||||
use crate::player::PlayerPlugin;
|
use crate::gameplay::player::PlayerPlugin;
|
||||||
use crate::score::ScorePlugin;
|
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;
|
use crate::world::WorldPlugin;
|
||||||
|
|
||||||
mod background;
|
|
||||||
mod bounds;
|
|
||||||
mod camera;
|
|
||||||
mod collision;
|
|
||||||
mod debug;
|
mod debug;
|
||||||
mod game_over;
|
mod gameplay;
|
||||||
mod game_state;
|
mod states;
|
||||||
mod main_menu;
|
|
||||||
mod obstacle;
|
|
||||||
mod player;
|
|
||||||
mod score;
|
|
||||||
mod world;
|
mod world;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
pub mod game_over;
|
||||||
|
pub mod main_menu;
|
||||||
|
|
||||||
#[derive(States, Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(States, Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum GameState {
|
pub enum GameState {
|
||||||
#[default]
|
#[default]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
use bevy::prelude::*;
|
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
|
// To delete game over's components
|
||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
use crate::{camera::MainCamera, game_state::GameState};
|
use crate::{gameplay::camera::MainCamera, states::GameState};
|
||||||
|
|
||||||
// To delete menu's components
|
// To delete menu's components
|
||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
+5
-2
@@ -1,6 +1,9 @@
|
|||||||
use bevy::prelude::*;
|
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
|
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
|
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) {
|
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);
|
// 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 bevy::prelude::*;
|
||||||
use rand::RngExt;
|
use rand::RngExt;
|
||||||
use rand::SeedableRng;
|
use rand::SeedableRng;
|
||||||
Reference in New Issue
Block a user