update .gitignore
Pretty easy to understand from the title lmao (I'm really just testing git comments on commits)
This commit is contained in:
parent
68945d0e33
commit
eb41fb3f38
|
@ -32,18 +32,26 @@ reated by https://www.gitignore.io/api/vim,c++,linux
|
||||||
*.out
|
*.out
|
||||||
*.app
|
*.app
|
||||||
|
|
||||||
### CodeBlocks ###
|
|
||||||
# specific to CodeBlocks IDE
|
|
||||||
*.cbp
|
|
||||||
*.layout
|
|
||||||
*.depend
|
|
||||||
|
|
||||||
# generated directories
|
# generated directories
|
||||||
bin/
|
bin/
|
||||||
obj/
|
obj/
|
||||||
|
|
||||||
### My files ###
|
### Vim ###
|
||||||
*.project.cpp
|
# Swap
|
||||||
source/collisions.cpp
|
[._]*.s[a-v][a-z]
|
||||||
source/collisions.h
|
[._]*.sw[a-p]
|
||||||
*.psd
|
[._]s[a-rt-v][a-z]
|
||||||
|
[._]ss[a-gi-z]
|
||||||
|
[._]sw[a-p]
|
||||||
|
|
||||||
|
# Session
|
||||||
|
Session.vim
|
||||||
|
Sessionx.vim
|
||||||
|
|
||||||
|
# Temporary
|
||||||
|
.netrwhist
|
||||||
|
*~
|
||||||
|
# Auto-generated tag files
|
||||||
|
tags
|
||||||
|
# Persistent undo
|
||||||
|
[._]*.un~
|
||||||
|
|
Binary file not shown.
|
@ -155,11 +155,14 @@ void Player::move(){
|
||||||
|
|
||||||
if(run!=1) ifRunning = true;
|
if(run!=1) ifRunning = true;
|
||||||
|
|
||||||
|
|
||||||
//Get the position and update the velY with gravity
|
//Get the position and update the velY with gravity
|
||||||
velocityY -= gravity * dt;
|
velocityY -= gravity * dt;
|
||||||
float x = velocityX * dt * run;
|
float x = velocityX * dt * run;
|
||||||
float y = velocityY * dt;
|
float y = velocityY * dt;
|
||||||
|
|
||||||
|
std::cout << velocityY << " " << posY << " " << y << std::endl;
|
||||||
|
|
||||||
//Convert and set new int position
|
//Convert and set new int position
|
||||||
posX += static_cast<int>(x);
|
posX += static_cast<int>(x);
|
||||||
posY -= static_cast<int>(y+0.5);
|
posY -= static_cast<int>(y+0.5);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//Player class header<
|
//Player class header
|
||||||
|
|
||||||
#ifndef __PLAYER_H_INCLUDED__
|
#ifndef __PLAYER_H_INCLUDED__
|
||||||
#define __PLAYER_H_INCLUDED__
|
#define __PLAYER_H_INCLUDED__
|
||||||
|
|
Loading…
Reference in New Issue