Changed gun sounds, made particles more efficient.
This commit is contained in:
parent
90c7707e5a
commit
ace02dbddf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,6 +1,15 @@
|
||||||
package shootergame.display;
|
package shootergame.display;
|
||||||
|
|
||||||
import static org.lwjgl.opengl.GL33.*;
|
import static org.lwjgl.opengl.GL11.GL_COLOR_BUFFER_BIT;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_DEPTH_BUFFER_BIT;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_MODELVIEW;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_ONE_MINUS_SRC_ALPHA;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;
|
||||||
|
import static org.lwjgl.opengl.GL11.glBlendFunc;
|
||||||
|
import static org.lwjgl.opengl.GL11.glClear;
|
||||||
|
import static org.lwjgl.opengl.GL11.glLoadMatrixf;
|
||||||
|
import static org.lwjgl.opengl.GL11.glMatrixMode;
|
||||||
|
import static org.lwjgl.opengl.GL11.glViewport;
|
||||||
|
|
||||||
import org.joml.Matrix4f;
|
import org.joml.Matrix4f;
|
||||||
import org.lwjgl.opengl.GL;
|
import org.lwjgl.opengl.GL;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ package shootergame.entity.particle;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import shootergame.Main;
|
|
||||||
import shootergame.display.Camera;
|
import shootergame.display.Camera;
|
||||||
import shootergame.entity.EntityParticle;
|
import shootergame.entity.EntityParticle;
|
||||||
import shootergame.util.gl.GlHelpers;
|
import shootergame.util.gl.GlHelpers;
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ public class Resource
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
private String fileURL(String path) {
|
private String fileURL(String path) {
|
||||||
return "https://www.onewaycoding.ml/files/game_resources/ShooterGame/"+path;
|
return "https://www.onewaycoding.com/files/game_resources/ShooterGame/"+path;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String filePath(String path) {
|
private String filePath(String path) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,23 @@
|
||||||
package shootergame.util.gl;
|
package shootergame.util.gl;
|
||||||
|
|
||||||
import static org.lwjgl.opengl.GL33.*;
|
import static org.lwjgl.opengl.GL11.GL_ALPHA;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_BLEND;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_CULL_FACE;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_DEPTH_TEST;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_QUADS;
|
||||||
|
import static org.lwjgl.opengl.GL11.GL_TEXTURE_2D;
|
||||||
|
import static org.lwjgl.opengl.GL11.glBegin;
|
||||||
|
import static org.lwjgl.opengl.GL11.glColor3d;
|
||||||
|
import static org.lwjgl.opengl.GL11.glColor4d;
|
||||||
|
import static org.lwjgl.opengl.GL11.glDisable;
|
||||||
|
import static org.lwjgl.opengl.GL11.glEnable;
|
||||||
|
import static org.lwjgl.opengl.GL11.glEnd;
|
||||||
|
import static org.lwjgl.opengl.GL11.glPopMatrix;
|
||||||
|
import static org.lwjgl.opengl.GL11.glPushMatrix;
|
||||||
|
import static org.lwjgl.opengl.GL11.glRotated;
|
||||||
|
import static org.lwjgl.opengl.GL11.glTranslated;
|
||||||
|
import static org.lwjgl.opengl.GL11.glVertex2d;
|
||||||
|
import static org.lwjgl.opengl.GL11.glVertex3d;
|
||||||
|
|
||||||
import shootergame.Main;
|
import shootergame.Main;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue