Skip to content

Instantly share code, notes, and snippets.

View connorbrez's full-sized avatar

Connor connorbrez

  • Canada
View GitHub Profile

Keybase proof

I hereby claim:

  • I am connorbrez on github.
  • I am connorbrez (https://keybase.io/connorbrez) on keybase.
  • I have a public key ASB6xpcbYIbuO7e67_uYu25bs8Amn9sc27r7f720nXSYCQo

To claim this, I am signing this object:

{"v":"5.5.2","fr":29.9700012207031,"ip":0,"op":1798.00007323404,"w":200,"h":200,"nm":"profile","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"+ Outlines","parent":7,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-120.734,"ix":10},"p":{"a":0,"k":[29.395,90.902,0],"ix":2},"a":{"a":0,"k":[4.194,-3.572,0],"ix":1},"s":{"a":0,"k":[53.763,53.763,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[3.609,-2.994],[3.609,0],[4.778,0],[4.778,-2.994],[7.759,-2.994],[7.759,-4.143],[4.778,-4.143],[4.778,-7.144],[3.609,-7.144],[3.609,-4.143],[0.629,-4.143],[0.629,-2.994]],"c":true},"ix":2},"nm":"+","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.607843137255,0.741176470588,0.666666666667,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - F
// BOTH OF THESE STATEMENTS ARE EQUVILIANT
for(int i = 0; i<10;i++){
// nothing would run, because there is no code
};
for(int i = 0; i<10;i++); // ^ as said previous nothing runs because there is nothing to run
// your example below
{
System.out.println("10") // prints once because not in loop, but it tricks you because its
} // encapsulated with {}, usually this is done to help with readibility
package com.connorbrezinsky.spaceraiders.client.display;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.state.StateBasedGame;
public class StateExample extends BasicGameState {