1. Roi Atalla
  2. FPS

Commits

Roi Atalla  committed 1504598

Added @author tags.

  • Participants
  • Parent commits c9427f8
  • Branches default

Comments (0)

Files changed (11)

File src/com/ra4king/fps/Camera.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class Camera {
 	private final Matrix4 projectionMatrix;

File src/com/ra4king/fps/FPS.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.GLProgram;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class FPS extends GLProgram {
 	public static void main(String[] args) throws Exception {

File src/com/ra4king/fps/GLUtils.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector4;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public final class GLUtils {
 	public final int VERSION;

File src/com/ra4king/fps/actors/Bullet.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class Bullet {
 	private final Vector3 position, velocity;

File src/com/ra4king/fps/renderers/BulletRenderer.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class BulletRenderer {
 	private BulletManager bulletManager;

File src/com/ra4king/fps/renderers/WorldRenderer.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class WorldRenderer {
 	private World world;

File src/com/ra4king/fps/world/BulletManager.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class BulletManager {
 	private ArrayList<Bullet> bullets;

File src/com/ra4king/fps/world/Chunk.java

View file
  • Ignore whitespace
 import org.lwjgl.BufferUtils;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class Chunk {
 	public enum BlockType {
 		this.chunkInfo = chunkInfo;
 		
 		blocks = new BlockInfo[CUBES_SIDE * CUBES_SIDE * CUBES_SIDE];
-
+		
 		if(random)
 			initializeRandomly();
 		else
 	
 	public void initializeRandomly() {
 		cubeCount = (int)(Math.random() * blocks.length / 10);
-
+		
 		for(int a = 0; a < cubeCount; a++) {
 			int ix;
 			do {
 								.put((block.chunkInfo.chunkCornerY + y) * SPACING + size / 2)
 								.put(-((block.chunkInfo.chunkCornerZ + z) * SPACING + size / 2))
 								.put(size / 2);
-	}
+					}
 				}
 			}
 			

File src/com/ra4king/fps/world/ChunkManager.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class ChunkManager {
 	private HashSet<Chunk> chunks;

File src/com/ra4king/fps/world/Fractal.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class Fractal {
 	private CubeRenderer renderer;

File src/com/ra4king/fps/world/World.java

View file
  • Ignore whitespace
 import com.ra4king.opengl.util.math.Vector3;
 
 /**
- * @author ra4king
+ * @author Roi Atalla
  */
 public class World implements CameraUpdate {
 	private float deltaTimeBuffer;
 				position.add(inverse.mult(delta));
 		}
 		
-		if((Mouse.isButtonDown(0) || Keyboard.isKeyDown(Keyboard.KEY_C)) && (System.nanoTime() - mouseCooldown) > (long)1e8) {
+		if((Mouse.isButtonDown(0) || Keyboard.isKeyDown(Keyboard.KEY_C)) && (System.nanoTime() - mouseCooldown) > (long)7e7) {
 			int bulletSpeed = 200;
 			
 			bulletManager.addBullet(new Bullet(position.copy().mult(-1).add(inverse.mult(rightBullet)), inverse.mult(Vector3.FORWARD).mult(bulletSpeed), 3, 500));