diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2022-07-23 12:43:43 +0200 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2022-07-25 22:45:55 +0200 |
| commit | 852effa474c159398014da736ade6f0fea454de7 (patch) | |
| tree | 97da22c4758ca4156dc9fb7ac123c7a3b0a9e9f5 /src/object/vaati3PlayerObject.c | |
| parent | ccba86d292a0e4c8a0e07325ac4fb25e5a58dc89 (diff) | |
Rename objects
Diffstat (limited to 'src/object/vaati3PlayerObject.c')
| -rw-r--r-- | src/object/vaati3PlayerObject.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/object/vaati3PlayerObject.c b/src/object/vaati3PlayerObject.c new file mode 100644 index 00000000..0cec61c1 --- /dev/null +++ b/src/object/vaati3PlayerObject.c @@ -0,0 +1,20 @@ +/** + * @file vaati3PlayerObject.c + * @ingroup Objects + * + * @brief Vaati3 Player object + */ +#include "entity.h" +#include "physics.h" +#include "player.h" +#include "room.h" + +void Vaati3PlayerObject(Entity* this) { + if (this->action == 0) { + this->action = 1; + } +#ifndef EU + gRoomControls.camera_target = this; +#endif + PositionRelative(&gPlayerEntity, this, 0, Q_16_16(-40.0)); +} |
