A 2D tile-based sandbox game.
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
12345678910111213 |
- #include "Player.h"
-
- void Player::draw(Win &win) {
- body_.outline(win);
- }
-
- void Player::update(float dt) {
- body_.vel_.x = 1;
- body_.update(dt);
-
- if (body_.pos_.x > 20)
- body_.pos_.x = 0;
- }
|