Dawn/src/dawnrose/scene/components/PlayerController.hpp
2023-03-21 14:42:54 -07:00

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;
};
}