Skip to content

Commit

Permalink
Utilizar Controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericonr committed Sep 19, 2021
1 parent cc3b96b commit e6c41e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#include <iostream>

#include "models.h"
#include "controller.h"
#include "view.h"

static const float T = 0.01;

int main(int argc, char **argv)
{
Character c{0, 0};
Controller co{c};
View v{c};
Input in{v};

while(!in.should_quit()) {
v.render();
in.refresh();
co.update(in, T);
v.delay(T);
}
}

0 comments on commit e6c41e0

Please sign in to comment.