Static World Gen and Display for the Overworld #5

Merged
msrd0 merged 21 commits from overworld-house-gen into main 2024-07-06 20:23:25 +00:00
4 changed files with 17 additions and 12 deletions
Showing only changes of commit baae917d0b - Show all commits

View file

@ -1,8 +1,9 @@
pub mod house;
pub mod overworld;
#[derive(Debug)]
#[derive(Debug, Default)]
pub enum Activity {
#[default]
House,
Overworld
}

View file

@ -1,5 +1,7 @@
use comfy::*;
pub mod worldgen;
pub fn draw(_state: &crate::State, _engine: &comfy::EngineContext) {
draw_circle(vec2(0.0, 0.0), 0.5, GREEN, 0);
}

View file

@ -0,0 +1,9 @@
#[derive(Debug)]
pub struct Overworld;
impl Default for Overworld {
fn default() -> Self {
Self
}
}

View file

@ -1,22 +1,15 @@
mod activities;
mod game;
use activities::Activity;
use activities::{overworld::worldgen::Overworld, Activity};
use comfy::*;
const GAME_NAME: &str = "Powercreep";
#[derive(Debug)]
#[derive(Debug, Default)]
struct State {
activity: Activity
}
impl Default for State {
fn default() -> Self {
Self {
activity: Activity::House
}
}
activity: Activity,
overworld: Overworld,
}
impl GameLoop for State {