lesson#26 update

This commit is contained in:
Kirill Saidov 2021-08-29 12:46:14 +06:00
parent de5bff0feb
commit c59fa5ba0d
3 changed files with 4 additions and 2 deletions

View File

@ -42,6 +42,7 @@ class Entity {
} }
abstract void update(); abstract void update();
abstract void processEvents();
} }

View File

@ -2,7 +2,6 @@ module game.play;
import game.data; import game.data;
import game.gstatemanager; import game.gstatemanager;
import game.player; import game.player;
import std.file: getcwd; import std.file: getcwd;
@ -10,6 +9,7 @@ import std.path: buildPath;
import std.string: toStringz; import std.string: toStringz;
class Play: IState { class Play: IState {
// variables
private { private {
Texture2D texPlayer; Texture2D texPlayer;
Player player; Player player;

View File

@ -7,7 +7,8 @@ class Player: Entity {
super(texture, frame, position); super(texture, frame, position);
} }
override void update() { } override void update() {}
override void processEvents() {}
} }