Create basic display engine. Create block falling/matching functions.

master
sigonasr2 6 years ago
parent b2e3724ca5
commit eb9af94847
  1. 13
      meteos_war-core/.classpath
  2. BIN
      meteos_war-core/assets/1x1.png
  3. BIN
      meteos_war-core/assets/badlogic.jpg
  4. BIN
      meteos_war-core/assets/block1-1.png
  5. BIN
      meteos_war-core/assets/block1-11.png
  6. BIN
      meteos_war-core/assets/block1-2.png
  7. BIN
      meteos_war-core/assets/block1-3.png
  8. BIN
      meteos_war-core/assets/block1-4.png
  9. BIN
      meteos_war-core/assets/block_unknown.png
  10. 71
      meteos_war-core/src/sig/meteos/Block.java
  11. 64
      meteos_war-core/src/sig/meteos/BlockColor.java
  12. 11
      meteos_war-core/src/sig/meteos/BlockGroup.java
  13. 57
      meteos_war-core/src/sig/meteos/MeteosWar.java
  14. 186
      meteos_war-core/src/sig/meteos/Planet.java
  15. 49
      meteos_war-desktop/.classpath
  16. 2
      meteos_war-desktop/src/sig/meteos/desktop/DesktopLauncher.java

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry path="bin" kind="output"/>
<classpathentry path="src" kind="src"/>
<classpathentry path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/" kind="con"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/a35a0076fbce873f9c2d5a1a1c8066244231bb3c/gdx-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/bac17f395be5010619b31280fe84e9f53118d0b9/gdx-1.9.8-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/6f0497b7958216464101adfb7bdc3a0f7b88d6d3/gdx-box2d-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/1fd1df309f965e52196900b270afc2bcd0acd0a2/gdx-box2d-1.9.8-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/8cdc9ab6826a74594c3b0084d8a7669f8124592b/gdx-controllers-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/5be4e61f2a04718e82f5fecbaffeff0035021902/gdx-controllers-1.9.8-sources.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="assets"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/a35a0076fbce873f9c2d5a1a1c8066244231bb3c/gdx-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/bac17f395be5010619b31280fe84e9f53118d0b9/gdx-1.9.8-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/6f0497b7958216464101adfb7bdc3a0f7b88d6d3/gdx-box2d-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/1fd1df309f965e52196900b270afc2bcd0acd0a2/gdx-box2d-1.9.8-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/8cdc9ab6826a74594c3b0084d8a7669f8124592b/gdx-controllers-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/5be4e61f2a04718e82f5fecbaffeff0035021902/gdx-controllers-1.9.8-sources.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

@ -0,0 +1,71 @@
package sig.meteos;
import java.lang.reflect.Field;
import java.util.List;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class Block {
BlockColor col;
float xpos,ypos;
float yspd=0;
BlockGroup group=null;
Planet planet;
boolean onGround = false;
boolean ignited=false;
public Block(float xpos,float ypos, BlockColor col, Planet planet) {
this.xpos = xpos;
this.ypos = ypos;
this.col = col;
this.planet=planet;
}
public void draw(SpriteBatch batch) {
batch.draw(
(ignited) ? planet.block_tex[10]
: planet.block_tex[col.getID()],xpos,ypos);
}
public boolean isOnGround() {
return onGround;
}
public static Block BlockExists(List<Block> blocklist, float xpos, float ypos, BlockColor col, Block checkblock) {
for (Block b : blocklist) {
if (b!=checkblock && b.col == col &&
b.xpos == xpos && b.ypos == ypos) {
return b;
}
}
return null;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(this.getClass().getName()+"(");
boolean first=false;
for (Field f : this.getClass().getDeclaredFields()) {
if (!first) {
try {
sb.append(f.getName()+"="+f.get(this));
first=true;
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
} else {
try {
sb.append(","+f.getName()+"="+f.get(this));
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
}
sb.append(")");
return sb.toString();
}
}

@ -0,0 +1,64 @@
package sig.meteos;
public enum BlockColor {
BLUE(0),
GREEN(1),
PURPLE(2),
RED(3),
DARK_BLUE(4),
YELLOW(5),
ORANGE(6),
PINK(7),
DARK_GREEN(8),
WHITE(9),
IGNITED(10);
int id;
BlockColor(int id) {
this.id=id;
}
public int getID() {
return id;
}
public static BlockColor GetRandomColor(int maxVal) {
int rand = MeteosWar.RANDOM.nextInt(maxVal);
switch (rand%10) {
case 0:{
return BLUE;
}
case 1:{
return GREEN;
}
case 2:{
return PURPLE;
}
case 3:{
return RED;
}
case 4:{
return DARK_BLUE;
}
case 5:{
return YELLOW;
}
case 6:{
return ORANGE;
}
case 7:{
return PINK;
}
case 8:{
return DARK_GREEN;
}
case 9:{
return WHITE;
}
default:
System.out.println("Returning a default case for a random color that does not exist. This should NOT happen.");
return BLUE;
}
}
}

@ -0,0 +1,11 @@
package sig.meteos;
import java.util.ArrayList;
import java.util.List;
public class BlockGroup {
List<Block> blocks = new ArrayList<Block>();
float yvel;
float weight;
Planet planet;
}

@ -1,33 +1,80 @@
package sig.meteos;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Random;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
public class MeteosWar extends ApplicationAdapter {
final public static int BLOCK_SIZE = 16;
final public static int SCREEN_WIDTH = BLOCK_SIZE*20;
final public static int SCREEN_HEIGHT = BLOCK_SIZE*14;
SpriteBatch batch;
Texture img;
public static Texture onebyone;
Viewport view;
Camera cam;
Calendar lastCheck = Calendar.getInstance();
int framesPassed=0;
public static Random RANDOM = new Random();
@Override
public void create () {
batch = new SpriteBatch();
img = new Texture("badlogic.jpg");
LoadImages();
cam = new PerspectiveCamera();
view = new FitViewport(SCREEN_WIDTH,SCREEN_HEIGHT,cam);
}
public void resize(int width, int height) {
view.update(width, height);
}
private void LoadImages() {
onebyone = new Texture("1x1.png");
}
@Override
public void render () {
Gdx.gl.glClearColor(1, 0, 0, 1);
run();
Gdx.gl.glClearColor(0, 0, 0.3f, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
batch.begin();
batch.draw(img, 0, 0);
Planet.GEOLYTE.DrawField(batch);
batch.end();
FrameCounter();
}
private void run() {
if (framesPassed%120==0) {
Planet.GEOLYTE.SpawnRandomBlock();
}
Planet.GEOLYTE.run();
}
private void FrameCounter() {
framesPassed++;
if (lastCheck.getTime().getSeconds()!=Calendar.getInstance().getTime().getSeconds()) {
System.out.println("FPS: "+framesPassed);
framesPassed=0;
lastCheck=Calendar.getInstance();
}
}
@Override
public void dispose () {
batch.dispose();
img.dispose();
onebyone.dispose();
Planet.UnloadTextures();
}
}

@ -0,0 +1,186 @@
package sig.meteos;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public enum Planet {
GEOLYTE(0,
new Texture[]{
new Texture("block1-1.png"),
new Texture("block1-2.png"),
new Texture("block1-3.png"),
new Texture("block1-4.png"),
new Texture("block_unknown.png"),
new Texture("block_unknown.png"),
new Texture("block_unknown.png"),
new Texture("block_unknown.png"),
new Texture("block_unknown.png"),
new Texture("block_unknown.png"),
new Texture("block1-11.png"),
},
0.04f,
0.5f,
0.5f,
9,
1.5f
),
;
int id;
Texture[] block_tex;
float gravity;
float launch_power;
float launch_power_mult;
float max_fall_spd;
int field_width;
List<Block> blocklist = new ArrayList<Block>();
List<BlockGroup> grouplist = new ArrayList<BlockGroup>();
Planet(int id, Texture[] textures, float gravity, float launch_power, float launch_power_mult, int field_width, float max_fall_spd) {
this.id = id;
this.block_tex = textures;
this.gravity = gravity;
this.launch_power = launch_power;
this.launch_power_mult = launch_power_mult;
this.field_width = field_width;
this.max_fall_spd = max_fall_spd;
}
public void run() {
for (Block b : blocklist) {
if (!b.isOnGround()) {
b.yspd = Math.min(max_fall_spd, b.yspd + gravity);
Block collide = null;
if ((collide=ObstructedByBlock(b))!=null) {
b.ypos = collide.ypos + MeteosWar.BLOCK_SIZE;
BlockLanded(b);
} else
if (b.ypos-b.yspd < 32+MeteosWar.BLOCK_SIZE) { //Has it reached the bottom of the playing field?
b.ypos = 32+MeteosWar.BLOCK_SIZE;
BlockLanded(b);
} else {
b.ypos -= b.yspd;
}
}
}
}
private void BlockLanded(Block b) {
b.onGround = true;
b.yspd = 0;
List<Block> matched_blocks = new ArrayList<Block>();
//System.out.println(blocklist);
if (MatchFound(b,matched_blocks)) {
matched_blocks.add(b);
IgniteBlocks(matched_blocks);
}
}
private void IgniteBlocks(List<Block> matched_blocks) {
for (Block b : matched_blocks) {
b.ignited=true;
b.col = BlockColor.IGNITED;
}
}
private boolean MatchFound(Block checkblock,List<Block> detectedblocks) {
List<Block> horizontal_matches = new ArrayList<Block>();
List<Block> vertical_matches = new ArrayList<Block>();
for (int i=1 ; i>=-1 ; i-=2) { //xdir check
Block detect_block;
int j=i;
while ((detect_block = Block.BlockExists(blocklist,checkblock.xpos + j*MeteosWar.BLOCK_SIZE,checkblock.ypos,checkblock.col,checkblock))!=null) {
horizontal_matches.add(detect_block);
j+=Math.signum(i);
}
}
if (horizontal_matches.size()<=1) {
horizontal_matches.clear();
//Could not find 2 or more matching blocks, clearing this list.
}
for (int i=1 ; i>=-1 ; i-=2) { //ydir check
Block detect_block;
int j=i;
while ((detect_block = Block.BlockExists(blocklist,checkblock.xpos,checkblock.ypos + j*MeteosWar.BLOCK_SIZE,checkblock.col,checkblock))!=null) {
vertical_matches.add(detect_block);
j+=Math.signum(i);
}
}
if (vertical_matches.size()<=1) {
vertical_matches.clear();
//Could not find 2 or more matching blocks, clearing this list.
}
detectedblocks.addAll(horizontal_matches);
detectedblocks.addAll(vertical_matches);
return detectedblocks.size()>=2;
}
/**
* Checks whether this block, falling at a certain speed, is falling into another block.
* Returns the collided block, otherwise returns null;
*/
private Block ObstructedByBlock(Block checkblock) {
//TODO Improve speed by dividing block checks into columns.
for (Block b : blocklist) {
if (b!=checkblock) {
if (b.xpos == checkblock.xpos && b.ypos+MeteosWar.BLOCK_SIZE > checkblock.ypos
&& b.isOnGround()) {
//Yes, there is a collision.
return b;
}
}
}
return null;
}
public void DrawField(SpriteBatch batch) {
batch.setColor(Color.GRAY);
batch.draw(MeteosWar.onebyone,
MeteosWar.SCREEN_WIDTH/2 - ((field_width/2+1) * MeteosWar.BLOCK_SIZE),
32,
MeteosWar.BLOCK_SIZE,10*MeteosWar.BLOCK_SIZE);
batch.draw(MeteosWar.onebyone,
MeteosWar.SCREEN_WIDTH/2 + ((field_width/2+1) * MeteosWar.BLOCK_SIZE),
32,
MeteosWar.BLOCK_SIZE,10*MeteosWar.BLOCK_SIZE);
batch.draw(MeteosWar.onebyone,
MeteosWar.SCREEN_WIDTH/2 - (field_width/2 * MeteosWar.BLOCK_SIZE),
32,
field_width*MeteosWar.BLOCK_SIZE,MeteosWar.BLOCK_SIZE);
batch.setColor(Color.WHITE);
for (Block b : blocklist) {
b.draw(batch);
}
}
void AddBlock(Block b) {
blocklist.add(b);
}
public static void UnloadTextures() {
for (Planet p : Planet.values()) {
for (Texture t : p.block_tex) {
t.dispose();
}
}
}
public void SpawnRandomBlock() {
int rand = MeteosWar.RANDOM.nextInt(field_width);
int baseX = MeteosWar.SCREEN_WIDTH/2 - ((field_width/2+1) * MeteosWar.BLOCK_SIZE)
+ (rand+1)*MeteosWar.BLOCK_SIZE;
Block b = new Block(baseX,MeteosWar.SCREEN_HEIGHT,BlockColor.GetRandomColor(2),this);
AddBlock(b);
}
}

@ -1,27 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry path="bin" kind="output"/>
<classpathentry path="src" kind="src"/>
<classpathentry path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/" kind="con"/>
<classpathentry path="/meteos_war-core" kind="src"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-lwjgl/1.9.8/b7c138f14ed67ad830ae7597da3d86ae02b20eee/gdx-backend-lwjgl-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-lwjgl/1.9.8/680fd8ed8d823a1510d4bea1ab59248934d1deca/gdx-backend-lwjgl-1.9.8-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.8/604a2ef2c7c92a5900114757cbd3fb4dcbb8270c/gdx-platform-1.9.8-natives-desktop.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d-platform/1.9.8/3195b56f82751d7cd7de85edb6824d17bf479781/gdx-box2d-platform-1.9.8-natives-desktop.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers-desktop/1.9.8/631f8e4bc387dbf8a7122e2e8729ec1cdc0dc45a/gdx-controllers-desktop-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers-desktop/1.9.8/5911bf10d33a049fa27b72d0b800d0eb0c7ba0f4/gdx-controllers-desktop-1.9.8-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers-platform/1.9.8/deef23cee3884f579312b2987afd6a377b6eda2e/gdx-controllers-platform-1.9.8-natives-desktop.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/a35a0076fbce873f9c2d5a1a1c8066244231bb3c/gdx-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/bac17f395be5010619b31280fe84e9f53118d0b9/gdx-1.9.8-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/6f0497b7958216464101adfb7bdc3a0f7b88d6d3/gdx-box2d-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/1fd1df309f965e52196900b270afc2bcd0acd0a2/gdx-box2d-1.9.8-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/8cdc9ab6826a74594c3b0084d8a7669f8124592b/gdx-controllers-1.9.8.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/5be4e61f2a04718e82f5fecbaffeff0035021902/gdx-controllers-1.9.8-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.2/a9d80fe5935c7a9149f6584d9777cfd471f65489/lwjgl-2.9.2.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.2/4d114b5ef3ad3bf571b1f090cb00855991067e0b/lwjgl-2.9.2-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl_util/2.9.2/4b9e37300a87799856e0bd15ed81663cdb6b0947/lwjgl_util-2.9.2.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl_util/2.9.2/308d4ebe8d7b240d3490b6a7e0424807ea3ad98b/lwjgl_util-2.9.2-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.jlayer/jlayer/1.0.1-gdx/7cca83cec5c1b2f011362f4d85aabd71a73b049d/jlayer-1.0.1-gdx.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.jlayer/jlayer/1.0.1-gdx/f1c4ffebc5e4f68be914404faab580c20de8ea1f/jlayer-1.0.1-gdx-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.jcraft/jorbis/0.0.17/8872d22b293e8f5d7d56ff92be966e6dc28ebdc6/jorbis-0.0.17.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.jcraft/jorbis/0.0.17/5446be5d62e4c6b347c8e6cd28dc00a936417ba2/jorbis-0.0.17-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl-platform/2.9.2/510c7d317f5e9e700b9cfaac5fd38bdebf0702e0/lwjgl-platform-2.9.2-natives-windows.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl-platform/2.9.2/d276cdf61fe2b516c7b7f4aa1b8dea91dbdc8d56/lwjgl-platform-2.9.2-natives-linux.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl-platform/2.9.2/d55b46b40b40249d627a83a7f7f22649709d70c3/lwjgl-platform-2.9.2-natives-osx.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput/2.0.5/39c7796b469a600f72380316f6b1f11db6c2c7c4/jinput-2.0.5.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput/2.0.5/82604cfeb87b9ab70ed70aa19a137de8ceb21504/jinput-2.0.5-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jutils/jutils/1.0.0/e12fe1fda814bd348c1579329c86943d2cd3c6a6/jutils-1.0.0.jar" kind="lib" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jutils/jutils/1.0.0/d18678a00b216863206a1bb6190507e02a32971b/jutils-1.0.0-sources.jar"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput-platform/2.0.5/7ff832a6eb9ab6a767f1ade2b548092d0fa64795/jinput-platform-2.0.5-natives-linux.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput-platform/2.0.5/385ee093e01f587f30ee1c8a2ee7d408fd732e16/jinput-platform-2.0.5-natives-windows.jar" kind="lib"/>
<classpathentry path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput-platform/2.0.5/53f9c919f34d2ca9de8c51fc4e1e8282029a9232/jinput-platform-2.0.5-natives-osx.jar" kind="lib"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="assets"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/"/>
<classpathentry kind="src" path="/meteos_war-core"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-lwjgl/1.9.8/b7c138f14ed67ad830ae7597da3d86ae02b20eee/gdx-backend-lwjgl-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-lwjgl/1.9.8/680fd8ed8d823a1510d4bea1ab59248934d1deca/gdx-backend-lwjgl-1.9.8-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.8/604a2ef2c7c92a5900114757cbd3fb4dcbb8270c/gdx-platform-1.9.8-natives-desktop.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d-platform/1.9.8/3195b56f82751d7cd7de85edb6824d17bf479781/gdx-box2d-platform-1.9.8-natives-desktop.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers-desktop/1.9.8/631f8e4bc387dbf8a7122e2e8729ec1cdc0dc45a/gdx-controllers-desktop-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers-desktop/1.9.8/5911bf10d33a049fa27b72d0b800d0eb0c7ba0f4/gdx-controllers-desktop-1.9.8-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers-platform/1.9.8/deef23cee3884f579312b2987afd6a377b6eda2e/gdx-controllers-platform-1.9.8-natives-desktop.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/a35a0076fbce873f9c2d5a1a1c8066244231bb3c/gdx-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.8/bac17f395be5010619b31280fe84e9f53118d0b9/gdx-1.9.8-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/6f0497b7958216464101adfb7bdc3a0f7b88d6d3/gdx-box2d-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d/1.9.8/1fd1df309f965e52196900b270afc2bcd0acd0a2/gdx-box2d-1.9.8-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/8cdc9ab6826a74594c3b0084d8a7669f8124592b/gdx-controllers-1.9.8.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-controllers/1.9.8/5be4e61f2a04718e82f5fecbaffeff0035021902/gdx-controllers-1.9.8-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.2/a9d80fe5935c7a9149f6584d9777cfd471f65489/lwjgl-2.9.2.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.2/4d114b5ef3ad3bf571b1f090cb00855991067e0b/lwjgl-2.9.2-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl_util/2.9.2/4b9e37300a87799856e0bd15ed81663cdb6b0947/lwjgl_util-2.9.2.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl_util/2.9.2/308d4ebe8d7b240d3490b6a7e0424807ea3ad98b/lwjgl_util-2.9.2-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.jlayer/jlayer/1.0.1-gdx/7cca83cec5c1b2f011362f4d85aabd71a73b049d/jlayer-1.0.1-gdx.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/com.badlogicgames.jlayer/jlayer/1.0.1-gdx/f1c4ffebc5e4f68be914404faab580c20de8ea1f/jlayer-1.0.1-gdx-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.jcraft/jorbis/0.0.17/8872d22b293e8f5d7d56ff92be966e6dc28ebdc6/jorbis-0.0.17.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.jcraft/jorbis/0.0.17/5446be5d62e4c6b347c8e6cd28dc00a936417ba2/jorbis-0.0.17-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl-platform/2.9.2/510c7d317f5e9e700b9cfaac5fd38bdebf0702e0/lwjgl-platform-2.9.2-natives-windows.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl-platform/2.9.2/d276cdf61fe2b516c7b7f4aa1b8dea91dbdc8d56/lwjgl-platform-2.9.2-natives-linux.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl-platform/2.9.2/d55b46b40b40249d627a83a7f7f22649709d70c3/lwjgl-platform-2.9.2-natives-osx.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput/2.0.5/39c7796b469a600f72380316f6b1f11db6c2c7c4/jinput-2.0.5.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput/2.0.5/82604cfeb87b9ab70ed70aa19a137de8ceb21504/jinput-2.0.5-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jutils/jutils/1.0.0/e12fe1fda814bd348c1579329c86943d2cd3c6a6/jutils-1.0.0.jar" sourcepath="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jutils/jutils/1.0.0/d18678a00b216863206a1bb6190507e02a32971b/jutils-1.0.0-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput-platform/2.0.5/7ff832a6eb9ab6a767f1ade2b548092d0fa64795/jinput-platform-2.0.5-natives-linux.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput-platform/2.0.5/385ee093e01f587f30ee1c8a2ee7d408fd732e16/jinput-platform-2.0.5-natives-windows.jar"/>
<classpathentry kind="lib" path="C:/Users/Joshua Sigona/.gradle/caches/modules-2/files-2.1/net.java.jinput/jinput-platform/2.0.5/53f9c919f34d2ca9de8c51fc4e1e8282029a9232/jinput-platform-2.0.5-natives-osx.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

@ -7,6 +7,8 @@ import sig.meteos.MeteosWar;
public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.width = MeteosWar.SCREEN_WIDTH;
config.height = MeteosWar.SCREEN_HEIGHT;
new LwjglApplication(new MeteosWar(), config);
}
}

Loading…
Cancel
Save