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
*.app
### CodeBlocks ###
# specific to CodeBlocks IDE
*.cbp
*.layout
*.depend
# generated directories
bin/
obj/
### My files ###
*.project.cpp
source/collisions.cpp
source/collisions.h
*.psd
### Vim ###
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]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;
//Get the position and update the velY with gravity
velocityY -= gravity * dt;
float x = velocityX * dt * run;
float y = velocityY * dt;
std::cout << velocityY << " " << posY << " " << y << std::endl;
//Convert and set new int position
posX += static_cast<int>(x);
posY -= static_cast<int>(y+0.5);

View File

@ -1,4 +1,4 @@
//Player class header<
//Player class header
#ifndef __PLAYER_H_INCLUDED__
#define __PLAYER_H_INCLUDED__