update .gitignore

Pretty easy to understand from the title lmao
(I'm really just testing git comments on commits)
This commit is contained in:
Pòsweg 2019-11-01 16:37:01 +01:00
parent 68945d0e33
commit eb41fb3f38
4 changed files with 23 additions and 12 deletions

30
.gitignore vendored
View File

@ -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.

View File

@ -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);

View File

@ -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__