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
|
||||
*.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.
|
@ -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);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//Player class header<
|
||||
//Player class header
|
||||
|
||||
#ifndef __PLAYER_H_INCLUDED__
|
||||
#define __PLAYER_H_INCLUDED__
|
||||
|
|
Loading…
Reference in New Issue