Bladeren bron

going public

master
Noelle 4 jaren geleden
bovenliggende
commit
6669157109
3 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 1
    1
      src/animator.rs
  2. 1
    0
      src/main.rs
  3. 1
    1
      src/physics.rs

+ 1
- 1
src/animator.rs Bestand weergeven

@@ -2,7 +2,7 @@ use specs::prelude::*;

use crate::components::*;

struct Animator;
pub struct Animator;

impl<'a> System<'a> for Animator {
type SystemData = (

+ 1
- 0
src/main.rs Bestand weergeven

@@ -1,6 +1,7 @@
mod components;
mod physics;
mod animator;
mod keyboard;

use sdl2::pixels::Color;
use sdl2::event::Event;

+ 1
- 1
src/physics.rs Bestand weergeven

@@ -2,7 +2,7 @@ use specs::prelude::*;

use crate::components::*;

struct Physics;
pub struct Physics;

impl<'a> System<'a> for Physics {
type SystemData = (WriteStorage<'a, Position>, ReadStorage<'a, Velocity>);

Laden…
Annuleren
Opslaan