MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Player

Method Player

examples/multiple/Player.cpp:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "raylib-cpp.hpp"
3
4Player::Player() {
5 position = Rectangle{
6 GetScreenWidth() / 2.0f - 50,
7 GetScreenHeight() / 2.0f - 50,
8 100,
9 100
10 };
11 speed = 3;
12}
13
14void Player::Draw() {
15 position.Draw(RED);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected