aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-20 09:42:34 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-20 09:42:34 -0400
commit1118f22a60dffeb204ec4845d009cf057b51f088 (patch)
tree3d38b4d96c36111fc46a50909fbe909980fd188c /src/ui.cpp
parentb806a2d9bd6932525263a172ea2837eb1a94717d (diff)
interpolated :)
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 5d3e143..877dacb 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -67,6 +67,7 @@ namespace ui {
glDisable(GL_TEXTURE_2D);
xo+=w;
free(buf);
+ glDeleteTextures(1,&ftex);
}while(s[i++]);
}
void putText(const float x,const float y,const char *str,...){
@@ -88,9 +89,9 @@ namespace ui {
break;
case SDL_KEYDOWN:
if(SDL_KEY==SDLK_ESCAPE)gameRunning=false;
- if(SDL_KEY==SDLK_a)player->vel.x=-2;
- if(SDL_KEY==SDLK_d)player->vel.x=2;
- if(SDL_KEY==SDLK_SPACE)player->vel.y=2;
+ if(SDL_KEY==SDLK_a)player->vel.x=-.15;
+ if(SDL_KEY==SDLK_d)player->vel.x=.15;
+ if(SDL_KEY==SDLK_SPACE)player->vel.y=.25;
break;
case SDL_KEYUP:
if(SDL_KEY==SDLK_a)player->vel.x=0;