diff --git a/lesson#27 - in, out, inout type qualifiers/ourGame/source/game/player.d b/lesson#27 - in, out, inout type qualifiers/ourGame/source/game/player.d index 53f62b6..c289bdf 100644 --- a/lesson#27 - in, out, inout type qualifiers/ourGame/source/game/player.d +++ b/lesson#27 - in, out, inout type qualifiers/ourGame/source/game/player.d @@ -3,7 +3,7 @@ module game.player; import game.data; class Player: Entity { - this(const ref Texture2D texture, const Rectangle frame, const Vector2 position) { + this(in Texture2D texture, in Rectangle frame, in Vector2 position) { super(texture, frame, position); } diff --git a/lesson#29 - Player movement animation/ourGame/source/game/play.d b/lesson#29 - Player movement animation/ourGame/source/game/play.d index efa2cb9..6d46cf2 100644 --- a/lesson#29 - Player movement animation/ourGame/source/game/play.d +++ b/lesson#29 - Player movement animation/ourGame/source/game/play.d @@ -48,7 +48,7 @@ class Play: IState { BeginDrawing(); scope(exit) { EndDrawing(); } // clear background - ClearBackground(Colors.YELLOW); + ClearBackground(Colors.GRAY); // draw player.draw();