fixed weird text added in

This commit is contained in:
swim67667
2026-06-22 01:46:21 -04:00
parent 21bd0c204e
commit 51b15daf2c
3 changed files with 0 additions and 24 deletions

View File

@@ -2,10 +2,7 @@
#include <math.h>
#include "config.h"
#include "collision.h"
<<<<<<< HEAD
#include "player.h"
=======
>>>>>>> dff3a5d2c4b8cd3d6d86ab9792e394cd0d27a619
void checkCollision(){
float playerx=0.0;
@@ -24,7 +21,6 @@ void checkCollision(){
if(playerx-(plrsize/2)<objposx+(objsize/2) && playerx-(plrsize/2)>objposx-(objsize/2)){
ApplyForce(
e,
<<<<<<< HEAD
(Vector2){10000, 1000}
);
if(dir){
@@ -39,14 +35,6 @@ void checkCollision(){
(Vector2){-(curhorvel*3), 1000}
);
}
=======
(Vector2){1000, 1000}
);
ApplyForce(
player,
(Vector2){-1000, 1000}
);
>>>>>>> dff3a5d2c4b8cd3d6d86ab9792e394cd0d27a619
}
}
else{

View File

@@ -7,10 +7,7 @@
// let's a go!
float curhorvel=0.0f; //current horizonatal velocity
<<<<<<< HEAD
bool dir=0;
=======
>>>>>>> dff3a5d2c4b8cd3d6d86ab9792e394cd0d27a619
void UpdatePlayerControls(void)
{
// if there isn't a player, you probably can't do much
@@ -23,10 +20,7 @@ void UpdatePlayerControls(void)
// if a key pressed, push player to the left
if (IsKeyDown(KEY_A))
{
<<<<<<< HEAD
dir=1;
=======
>>>>>>> dff3a5d2c4b8cd3d6d86ab9792e394cd0d27a619
if(curhorvel<MAX_PLAYER_SPEED){
curhorvel=curhorvel*PLAYER_SPEED_FACTOR;
}
@@ -38,10 +32,7 @@ void UpdatePlayerControls(void)
// if d key pressed, push player to the right
else if (IsKeyDown(KEY_D))
{
<<<<<<< HEAD
dir=0;
=======
>>>>>>> dff3a5d2c4b8cd3d6d86ab9792e394cd0d27a619
if(curhorvel<=MAX_PLAYER_SPEED){
curhorvel=curhorvel*PLAYER_SPEED_FACTOR;
}

View File

@@ -3,11 +3,8 @@
// FUNction declaration! yay!!!
// run by main.c constantly to allow player input.
<<<<<<< HEAD
extern bool dir;
extern float curhorvel;
=======
>>>>>>> dff3a5d2c4b8cd3d6d86ab9792e394cd0d27a619
void UpdatePlayerControls(void);
#endif