speed control of player and the ground
This commit is contained in:
@@ -19,8 +19,11 @@ void WalkingState::start_crawl() {
|
||||
|
||||
// TODO THIS NEEDS REDESIGN ACCORDING TO SPEED
|
||||
void WalkingState::toggle_walk_frame() {
|
||||
if (++walk_index >= 7) walk_index = 0;
|
||||
if ((run_index += 3) >= 7) run_index = 0;
|
||||
}
|
||||
// void RunningState::toggle_run_frame() {
|
||||
// if (++run_index >= 7) run_index = 0;
|
||||
// }
|
||||
|
||||
FrameSelection WalkingState::get_frame_selection() const {
|
||||
FrameSelection f{MovementType::Walk, 0};
|
||||
|
||||
Reference in New Issue
Block a user