23 lines
544 B
C++
23 lines
544 B
C++
// Copyright (c) 2023 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
#pragma once
|
|
#include "scene/components/physics/2d/CharacterController2D.hpp"
|
|
|
|
namespace Dawn {
|
|
class PlayerController : public SceneItemComponent {
|
|
protected:
|
|
CharacterController2D *characterController;
|
|
|
|
public:
|
|
float_t moveSpeed = 40.0f;
|
|
|
|
PlayerController(SceneItem *item);
|
|
|
|
std::vector<SceneItemComponent*> getDependencies() override;
|
|
|
|
void onStart() override;
|
|
};
|
|
} |