{EDIT} change movement speed of enemies and player
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user