v0.8.1: stepped back nerf to greataxe (50->40->45 base max dmg)

This commit is contained in:
Evan Debenham
2020-06-22 19:09:29 -04:00
parent b1f28eec08
commit 4415dde0fa
3 changed files with 17 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ package com.watabou.noosa;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.glutils.GLVersion;
import com.badlogic.gdx.utils.TimeUtils;
import com.watabou.glscripts.Script;
import com.watabou.gltextures.TextureCache;
@@ -97,14 +98,16 @@ public class Game implements ApplicationListener {
dispHeight = Gdx.graphics.getDisplayMode().height;
dispWidth = Gdx.graphics.getDisplayMode().width;
Blending.useDefault();
inputHandler = new InputHandler( Gdx.input );
//refreshes texture and vertex data stored on the gpu
versionContextRef = Gdx.graphics.getGLVersion();
Blending.useDefault();
TextureCache.reload();
Vertexbuffer.refreshAllBuffers();
}
private GLVersion versionContextRef;
@Override
public void resize(int width, int height) {
@@ -112,9 +115,14 @@ public class Game implements ApplicationListener {
return;
}
Blending.useDefault();
TextureCache.reload();
Vertexbuffer.refreshAllBuffers();
//If the EGL context was destroyed, we need to refresh some data stored on the GPU.
// This checks that by seeing if GLVersion has a new object reference
if (versionContextRef != Gdx.graphics.getGLVersion()) {
versionContextRef = Gdx.graphics.getGLVersion();
Blending.useDefault();
TextureCache.reload();
Vertexbuffer.refreshAllBuffers();
}
if (height != Game.height || width != Game.width) {