Parcourir la source

going public

master
Noelle il y a 4 ans
Parent
révision
6669157109
3 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 1
    1
      src/animator.rs
  2. 1
    0
      src/main.rs
  3. 1
    1
      src/physics.rs

+ 1
- 1
src/animator.rs Voir le fichier



use crate::components::*; use crate::components::*;


struct Animator;
pub struct Animator;


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

+ 1
- 0
src/main.rs Voir le fichier

mod components; mod components;
mod physics; mod physics;
mod animator; mod animator;
mod keyboard;


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

+ 1
- 1
src/physics.rs Voir le fichier



use crate::components::*; use crate::components::*;


struct Physics;
pub struct Physics;


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

Chargement…
Annuler
Enregistrer