{EDIT} change movement speed of enemies and player

This commit is contained in:
SemvdH
2021-08-24 22:36:41 +02:00
parent 066f625831
commit 616e1db466
4 changed files with 6 additions and 2 deletions

View File

@@ -20,5 +20,5 @@ void ctrl_input_get_rightstick(SceCtrlData *pad, stick_data *stickdata)
float ctrl_input_calc_value(int16_t pos, SceUInt64 deltaTime)
{
return (float)((pos) * (deltaTime / 1000.0));
return (float)((pos) * (deltaTime / 1000.0)) * PLAYER_SPEED;
}

View File

@@ -4,6 +4,8 @@
#include <stdio.h>
#include <psp2/ctrl.h>
#define PLAYER_SPEED 1.5
/**
* @brief a struct that holds the x and y pos for a stick. < 0 is left or down, > 0 is right or up. Value goes from 0 to 128
*