Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.carterza.entity;
import com.artemis.Entity;
import com.artemis.EntityEdit;
import com.artemis.World;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.ai.btree.utils.BehaviorTreeParser;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef;
import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.badlogic.gdx.physics.box2d.PolygonShape;
import com.badlogic.gdx.utils.StreamUtils;
import com.carterza.Constants;
import com.carterza.ai.btree.object.AlienGrunt;
import com.carterza.ai.btree.object.BehaviorTreeObject;
import com.carterza.component.*;
import com.carterza.system.physics.PhysicsSystem;
import java.io.Reader;
public class EntityFactory {
static PhysicsSystem physicsSystem;
public EntityFactory(World world) {
this.physicsSystem = world.getSystem(PhysicsSystem.class);
}
public Entity createPlayer(final World world, final float x, final float y) {
BodyDef bodyDef = new BodyDef();
bodyDef.type = BodyDef.BodyType.DynamicBody;
// Set our body to the same position as our sprite
// bodyDef.position.set((positionComponent.getPosition().x+12)/24, (positionComponent.getPosition().y+12)/24);
bodyDef.position.set((x + .5f), (y + .5f));
bodyDef.fixedRotation = true;
// Create a body in the world using our definition
Body body = physicsSystem.getPhysics().createBody(bodyDef);
PolygonShape shape = new PolygonShape();
shape.setAsBox(.5f, .5f);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = shape;
fixtureDef.density = 1f;
// Shape is the only disposable of the lot, so get rid of it
shape.dispose();
Entity player = newPositioned(world, x, y)
.add(new AnimationComponent(Constants.ANIMATION_NAMES.player_idle_unarmed.name()))
.add(new CameraFocusComponent())
.add(new BoundsComponent(24, 24))
.add(new TurnComponent(1,1))
.add(new InventoryComponent())
.add(new PhysicsComponent(body, body.createFixture(fixtureDef)))
.add(new PlayerComponent())
.getEntity();
return player;
}
private static EntityEdit newPositioned(final World world, final float x, final float y) {
return world.createEntity()
.edit()
.add(new PositionComponent(x, y));
}
public Entity createAI(World world, final float x, final float y) {
BodyDef bodyDef = new BodyDef();
bodyDef.type = BodyDef.BodyType.DynamicBody;
// Set our body to the same position as our sprite
// bodyDef.position.set((positionComponent.getPosition().x+12)/24, (positionComponent.getPosition().y+12)/24);
bodyDef.position.set((x + .5f), (y + .5f));
bodyDef.fixedRotation = true;
// Create a body in the world using our definition
Body body = physicsSystem.getPhysics().createBody(bodyDef);
PolygonShape shape = new PolygonShape();
shape.setAsBox(.5f, .5f);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = shape;
fixtureDef.density = 1f;
// Shape is the only disposable of the lot, so get rid of it
shape.dispose();
Reader reader = null;
BehaviorTreeParser<BehaviorTreeObject> behaviorTreeParser = new BehaviorTreeParser();
try {
reader = Gdx.files.internal("ai/alien-grunt.tree").reader();
Entity AI = newPositioned(world, x, y)
.add(new AnimationComponent(Constants.ANIMATION_NAMES.ai.name()))
.add(new AIComponent())
.add(new PhysicsComponent(body, body.createFixture(fixtureDef)))
.add(new BehaviorTreeComponent(behaviorTreeParser.parse(reader, new AlienGrunt(body))))
.add(new TurnComponent(1, 2))
.getEntity();
return AI;
} finally {
StreamUtils.closeQuietly(reader);
}
}
public Entity createMuzzleFlash(World world, final float x, final float y) {
Entity muzzleFlash = newPositioned(world, x, y)
.add(new AnimationComponent(Constants.ANIMATION_NAMES.muzzle_flash.name()))
.getEntity();
return muzzleFlash;
}
/*
public static Entity createBullet(World world, final float x, final float y) {
Entity muzzleFlash = newPositioned(world, x, y)
.add(new AnimationComponent(Constants.ANIMATION_NAMES.bullet.name()))
.add(new PhysicsComponent())
.add(new BulletComponent())
.getEntity();
return muzzleFlash;
}*/
}
package com.carterza.system.entity;
import com.artemis.Aspect;
import com.artemis.Entity;
import com.artemis.annotations.Wire;
import com.artemis.systems.EntityProcessingSystem;
import com.badlogic.gdx.maps.MapProperties;
import com.carterza.entity.EntityFactory;
import com.carterza.system.physics.PhysicsSystem;
import net.mostlyoriginal.api.system.core.PassiveSystem;
@Wire
public class EntitySpawnerSystem extends PassiveSystem {
private EntityFactory entityFactory;
@Override
protected void initialize() {
this.entityFactory = new EntityFactory(world);
}
private PhysicsSystem physicsSystem;
public void spawnEntity(final float x, final float y, final MapProperties properties) {
final String entityName = (String) properties.get("entity");
spawnEntity(x, y, entityName);
}
public void spawnEntity(final float x, final float y, final String entityName) {
switch(entityName) {
case "player":
spawnPlayer(x, y);
break;
case "AI":
spawnAI(x, y);
break;
}
}
private void spawnPlayer(final float x, final float y) {
Entity player = entityFactory.createPlayer(world, x, y);
spawnAI(0,0);
spawnAI(0,0);
}
private void spawnAI(final float x, final float y) {
Entity AI = entityFactory.createAI(world, x, y);
}
}
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000133043148, pid=27849, tid=75271
#
# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libgdx-box2d64.dylib+0x1d148] _ZN9b2Fixture6CreateEP16b2BlockAllocatorP6b2BodyPK12b2FixtureDef+0x58
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00007fd78c1cc000): JavaThread "LWJGL Application" [_thread_in_native, id=75271, stack(0x0000700001cfd000,0x0000700001dfd000)]
siginfo: si_signo: 11 (SIGSEGV), si_code: 0 (unknown), si_addr: 0x0000000000000000
Registers:
RAX=0x24ae97a800030036, RBX=0x00007fd78a06e4c0, RCX=0x0000700001dfbd80, RDX=0x00007fd78a06e4c0
RSP=0x0000700001dfbd20, RBP=0x0000700001dfbd40, RSI=0x00007fd78c975800, RDI=0x00007fd788c20ac0
R8 =0x0000000000000000, R9 =0x0000000000000001, R10=0x000000010e930668, R11=0x000000010deb2c6b
R12=0x00007fd78c975800, R13=0x0000000132e48a80, R14=0x0000700001dfbd80, R15=0x00007fd78bb44260
RIP=0x0000000133043148, EFLAGS=0x0000000000010246, ERR=0x0000000000000000
TRAPNO=0x000000000000000d
Top of Stack: (sp=0x0000700001dfbd20)
0x0000700001dfbd20: 00007fd78a06e4c0 00007fd78c975800
0x0000700001dfbd30: 00007fd78bb44260 0000700001dfbd80
0x0000700001dfbd40: 0000700001dfbd70 0000000133041d9d
0x0000700001dfbd50: 0000000132e48a80 0000000000000000
0x0000700001dfbd60: 0000700001dfbee0 00007fd78c1cc000
0x0000700001dfbd70: 0000700001dfbdb0 0000000133048cfa
0x0000700001dfbd80: 00007fd788c20ac0 0000000000000000
0x0000700001dfbd90: 000000003e4ccccd 000100003f800000
0x0000700001dfbda0: 000070000000ffff 0000000131907820
0x0000700001dfbdb0: 0000700001dfbe68 000000010e930694
0x0000700001dfbdc0: 00000000ffffffff 0000000700000000
0x0000700001dfbdd0: 0000000000000001 00000006c5189f50
0x0000700001dfbde0: 0000700001dfbde0 00000001318ad3d8
0x0000700001dfbdf0: 0000700001dfbe40 00000001318ade48
0x0000700001dfbe00: 0000000000000000 00000001318ad410
0x0000700001dfbe10: 0000000000000000 0000700001dfbe30
0x0000700001dfbe20: 0000700001dfbe88 0000700001dfbe28
0x0000700001dfbe30: 0000000000000000 0000700001dfbee0
0x0000700001dfbe40: 0000000132f099e0 0000000000000000
0x0000700001dfbe50: 0000000132e48a80 0000000000000000
0x0000700001dfbe60: 0000700001dfbe88 0000700001dfbf28
0x0000700001dfbe70: 000000010e9224a0 0000000000000000
0x0000700001dfbe80: 000000010e92a2b7 0000000000000000
0x0000700001dfbe90: 00000000ffffffff 0000000000000001
0x0000700001dfbea0: 0000000000000000 000000063f800000
0x0000700001dfbeb0: 0000700000000000 000000013e4ccccd
0x0000700001dfbec0: 00007fd788c20ac0 000000013192fc88
0x0000700001dfbed0: 00007fd78a06e4c0 0000000131918e40
0x0000700001dfbee0: 000000076db96560 0000700001dfbee8
0x0000700001dfbef0: 0000000132e48981 0000700001dfbf58
0x0000700001dfbf00: 0000000132f099e0 0000000000000000
0x0000700001dfbf10: 0000000132e489f8 0000700001dfbe88
Instructions: (pc=0x0000000133043148)
0x0000000133043128: 66 41 8b 46 22 66 41 89 47 38 41 8b 46 1e 41 89
0x0000000133043138: 47 34 41 8a 46 1c 41 88 47 3a 49 8b 3e 48 8b 07
0x0000000133043148: ff 50 10 49 89 47 18 48 8b 08 48 89 c7 ff 51 18
0x0000000133043158: 89 c3 89 de c1 e6 05 4c 89 e7 e8 49 d3 fe ff 49
Register to memory mapping:
RAX=0x24ae97a800030036 is an unknown value
RBX=0x00007fd78a06e4c0 is an unknown value
RCX=0x0000700001dfbd80 is pointing into the stack for thread: 0x00007fd78c1cc000
RDX=0x00007fd78a06e4c0 is an unknown value
RSP=0x0000700001dfbd20 is pointing into the stack for thread: 0x00007fd78c1cc000
RBP=0x0000700001dfbd40 is pointing into the stack for thread: 0x00007fd78c1cc000
RSI=0x00007fd78c975800 is an unknown value
RDI=0x00007fd788c20ac0 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000001 is an unknown value
R10=0x000000010e930668 is at code_begin+808 in an Interpreter codelet
method entry point (kind = native) [0x000000010e930340, 0x000000010e930c40] 2304 bytes
R11=0x000000010deb2c6b: throw_unsatisfied_link_error+0 in /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/server/libjvm.dylib at 0x000000010da00000
R12=0x00007fd78c975800 is an unknown value
R13={method} {0x0000000132e48a80} 'jniCreateFixture' '(JJFFFZSSS)J' in 'com/badlogic/gdx/physics/box2d/Body'
R14=0x0000700001dfbd80 is pointing into the stack for thread: 0x00007fd78c1cc000
R15=0x00007fd78bb44260 is an unknown value
Stack: [0x0000700001cfd000,0x0000700001dfd000], sp=0x0000700001dfbd20, free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libgdx-box2d64.dylib+0x1d148] _ZN9b2Fixture6CreateEP16b2BlockAllocatorP6b2BodyPK12b2FixtureDef+0x58
C [libgdx-box2d64.dylib+0x1bd9d] _ZN6b2Body13CreateFixtureEPK12b2FixtureDef+0x4d
C [libgdx-box2d64.dylib+0x22cfa] Java_com_badlogic_gdx_physics_box2d_Body_jniCreateFixture__JJFFFZSSS+0x4a
j com.badlogic.gdx.physics.box2d.Body.jniCreateFixture(JJFFFZSSS)J+0
j com.badlogic.gdx.physics.box2d.Body.createFixture(Lcom/badlogic/gdx/physics/box2d/FixtureDef;)Lcom/badlogic/gdx/physics/box2d/Fixture;+49
j com.carterza.entity.EntityFactory.createAI(Lcom/artemis/World;FF)Lcom/artemis/Entity;+167
j com.carterza.system.entity.EntitySpawnerSystem.spawnAI(FF)V+10
j com.carterza.system.entity.EntitySpawnerSystem.spawnPlayer(FF)V+17
j com.carterza.system.entity.EntitySpawnerSystem.spawnEntity(FFLjava/lang/String;)V+95
j com.carterza.system.entity.EntitySpawnerSystem.spawnEntity(FFLcom/badlogic/gdx/maps/MapProperties;)V+16
j com.carterza.system.map.MapSpawnerSystem.spawn()V+113
j com.carterza.system.map.MapSpawnerSystem.initialize()V+1
j com.artemis.WorldConfiguration.initializeSystems(Lcom/artemis/injection/Injector;)V+72
j com.artemis.WorldConfiguration.initialize(Lcom/artemis/World;Lcom/artemis/injection/Injector;Lcom/artemis/AspectSubscriptionManager;)V+158
j com.artemis.World.<init>(Lcom/artemis/WorldConfiguration;)V+153
j com.carterza.screen.MainScreen.createWorld()Lcom/artemis/World;+296
j net.mostlyoriginal.api.screen.core.WorldScreen.show()V+9
j com.badlogic.gdx.Game.setScreen(Lcom/badlogic/gdx/Screen;)V+32
j com.carterza.system.logic.TransitionSystem.process(Lcom/artemis/Entity;)V+24
j com.artemis.systems.EntityProcessingSystem.processSystem()V+31
J 968 C1 com.artemis.BaseSystem.process()V (20 bytes) @ 0x000000010ecae094 [0x000000010ecadde0+0x2b4]
j com.artemis.InvocationStrategy.process()V+47
j com.artemis.World.process()V+4
j net.mostlyoriginal.api.screen.core.WorldScreen.render(F)V+35
j com.badlogic.gdx.Game.render()V+19
j com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop()V+698
j com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run()V+27
v ~StubRoutines::call_stub
V [libjvm.dylib+0x2d429e]
V [libjvm.dylib+0x2d4a2c]
V [libjvm.dylib+0x2d4bd8]
V [libjvm.dylib+0x32562b]
V [libjvm.dylib+0x535a51]
V [libjvm.dylib+0x537194]
V [libjvm.dylib+0x45d35a]
C [libsystem_pthread.dylib+0x399d] _pthread_body+0x83
C [libsystem_pthread.dylib+0x391a] _pthread_body+0x0
C [libsystem_pthread.dylib+0x1351] thread_start+0xd
C 0x0000000000000000
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.badlogic.gdx.physics.box2d.Body.jniCreateFixture(JJFFFZSSS)J+0
j com.badlogic.gdx.physics.box2d.Body.createFixture(Lcom/badlogic/gdx/physics/box2d/FixtureDef;)Lcom/badlogic/gdx/physics/box2d/Fixture;+49
j com.carterza.entity.EntityFactory.createAI(Lcom/artemis/World;FF)Lcom/artemis/Entity;+167
j com.carterza.system.entity.EntitySpawnerSystem.spawnAI(FF)V+10
j com.carterza.system.entity.EntitySpawnerSystem.spawnPlayer(FF)V+17
j com.carterza.system.entity.EntitySpawnerSystem.spawnEntity(FFLjava/lang/String;)V+95
j com.carterza.system.entity.EntitySpawnerSystem.spawnEntity(FFLcom/badlogic/gdx/maps/MapProperties;)V+16
j com.carterza.system.map.MapSpawnerSystem.spawn()V+113
j com.carterza.system.map.MapSpawnerSystem.initialize()V+1
j com.artemis.WorldConfiguration.initializeSystems(Lcom/artemis/injection/Injector;)V+72
j com.artemis.WorldConfiguration.initialize(Lcom/artemis/World;Lcom/artemis/injection/Injector;Lcom/artemis/AspectSubscriptionManager;)V+158
j com.artemis.World.<init>(Lcom/artemis/WorldConfiguration;)V+153
j com.carterza.screen.MainScreen.createWorld()Lcom/artemis/World;+296
j net.mostlyoriginal.api.screen.core.WorldScreen.show()V+9
j com.badlogic.gdx.Game.setScreen(Lcom/badlogic/gdx/Screen;)V+32
j com.carterza.system.logic.TransitionSystem.process(Lcom/artemis/Entity;)V+24
j com.artemis.systems.EntityProcessingSystem.processSystem()V+31
J 968 C1 com.artemis.BaseSystem.process()V (20 bytes) @ 0x000000010ecae094 [0x000000010ecadde0+0x2b4]
j com.artemis.InvocationStrategy.process()V+47
j com.artemis.World.process()V+4
j net.mostlyoriginal.api.screen.core.WorldScreen.render(F)V+35
j com.badlogic.gdx.Game.render()V+19
j com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop()V+698
j com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run()V+27
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00007fd78c192000 JavaThread "DestroyJavaVM" [_thread_blocked, id=5891, stack(0x000070000011a000,0x000070000021a000)]
=>0x00007fd78c1cc000 JavaThread "LWJGL Application" [_thread_in_native, id=75271, stack(0x0000700001cfd000,0x0000700001dfd000)]
0x00007fd78c885800 JavaThread "Java2D Queue Flusher" daemon [_thread_blocked, id=54791, stack(0x0000700001af4000,0x0000700001bf4000)]
0x00007fd789899000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=46911, stack(0x00007000019f1000,0x0000700001af1000)]
0x00007fd78c116800 JavaThread "AppKit Thread" daemon [_thread_in_native, id=2571, stack(0x00007fff52dbd000,0x00007fff535bd000)]
0x00007fd78c063000 JavaThread "Service Thread" daemon [_thread_blocked, id=20995, stack(0x00007000012d0000,0x00007000013d0000)]
0x00007fd78c051800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=20483, stack(0x00007000011cd000,0x00007000012cd000)]
0x00007fd78c050800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=19971, stack(0x00007000010ca000,0x00007000011ca000)]
0x00007fd789803000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=19459, stack(0x0000700000fc7000,0x00007000010c7000)]
0x00007fd78b820800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=18947, stack(0x0000700000ec4000,0x0000700000fc4000)]
0x00007fd78b82b800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=15887, stack(0x0000700000dc1000,0x0000700000ec1000)]
0x00007fd78c806800 JavaThread "Finalizer" daemon [_thread_blocked, id=14339, stack(0x0000700000c3b000,0x0000700000d3b000)]
0x00007fd78c044800 JavaThread "Reference Handler" daemon [_thread_blocked, id=13827, stack(0x0000700000b38000,0x0000700000c38000)]
Other Threads:
0x00007fd78c040000 VMThread [stack: 0x0000700000a35000,0x0000700000b35000] [id=13315]
0x00007fd78c064000 WatcherThread [stack: 0x00007000013d3000,0x00007000014d3000] [id=21507]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
PSYoungGen total 324096K, used 185275K [0x000000076ab00000, 0x000000078b380000, 0x00000007c0000000)
eden space 186880K, 28% used [0x000000076ab00000,0x000000076df4efd0,0x0000000776180000)
from space 137216K, 95% used [0x0000000782d80000,0x000000078ae20000,0x000000078b380000)
to space 173056K, 0% used [0x0000000776180000,0x0000000776180000,0x0000000780a80000)
ParOldGen total 537088K, used 287041K [0x00000006c0000000, 0x00000006e0c80000, 0x000000076ab00000)
object space 537088K, 53% used [0x00000006c0000000,0x00000006d1850730,0x00000006e0c80000)
Metaspace used 12741K, capacity 12935K, committed 13056K, reserved 1060864K
class space used 1388K, capacity 1452K, committed 1536K, reserved 1048576K
Card table byte_map: [0x000000011dcdb000,0x000000011e4dc000] byte_map_base: 0x000000011a6db000
Marking Bits: (ParMarkBitMap*) 0x000000010e29c330
Begin Bits: [0x000000011ea32000, 0x0000000122a32000)
End Bits: [0x0000000122a32000, 0x0000000126a32000)
Polling page: 0x000000010c904000
CodeCache: size=245760Kb used=4859Kb max_used=4877Kb free=240900Kb
bounds [0x000000010e91b000, 0x000000010edeb000, 0x000000011d91b000]
total_blobs=1973 nmethods=1400 adapters=488
compilation: enabled
Compilation events (10 events):
Event: 12.789 Thread 0x00007fd789803000 nmethod 1394 0x000000010edd5990 code [0x000000010edd5b00, 0x000000010edd6218]
Event: 12.794 Thread 0x00007fd78c050800 1396 % 4 com.carterza.system.map.MapSpawnerSystem::spawn @ 33 (129 bytes)
Event: 13.227 Thread 0x00007fd78c050800 nmethod 1396% 0x000000010edd3210 code [0x000000010edd3400, 0x000000010edd3ec8]
Event: 13.259 Thread 0x00007fd78b820800 nmethod 1345% 0x000000010eddda90 code [0x000000010edddfc0, 0x000000010ede1b40]
Event: 13.637 Thread 0x00007fd78c051800 1398 1 com.artemis.ComponentType::getIndex (5 bytes)
Event: 13.637 Thread 0x00007fd78c051800 nmethod 1398 0x000000010edd54d0 code [0x000000010edd5620, 0x000000010edd5730]
Event: 13.637 Thread 0x00007fd78c051800 1399 3 com.artemis.utils.BitVector::checkCapacity (36 bytes)
Event: 13.637 Thread 0x00007fd78c051800 nmethod 1399 0x000000010edd4f90 code [0x000000010edd5100, 0x000000010edd53e8]
Event: 13.652 Thread 0x00007fd78c051800 1400 1 com.artemis.World::getComponentManager (5 bytes)
Event: 13.652 Thread 0x00007fd78c051800 nmethod 1400 0x000000010edd4cd0 code [0x000000010edd4e20, 0x000000010edd4f30]
GC Heap History (10 events):
Event: 12.795 GC heap before
{Heap before GC invocations=4 (full 0):
PSYoungGen total 76288K, used 76285K [0x000000076ab00000, 0x0000000774000000, 0x00000007c0000000)
eden space 65536K, 100% used [0x000000076ab00000,0x000000076eb00000,0x000000076eb00000)
from space 10752K, 99% used [0x000000076eb00000,0x000000076f57f418,0x000000076f580000)
to space 10752K, 0% used [0x0000000773580000,0x0000000773580000,0x0000000774000000)
ParOldGen total 175104K, used 80392K [0x00000006c0000000, 0x00000006cab00000, 0x000000076ab00000)
object space 175104K, 45% used [0x00000006c0000000,0x00000006c4e82068,0x00000006cab00000)
Metaspace used 12489K, capacity 12681K, committed 12928K, reserved 1060864K
class space used 1343K, capacity 1389K, committed 1408K, reserved 1048576K
Event: 12.841 GC heap after
Heap after GC invocations=4 (full 0):
PSYoungGen total 141824K, used 10752K [0x000000076ab00000, 0x0000000774000000, 0x00000007c0000000)
eden space 131072K, 0% used [0x000000076ab00000,0x000000076ab00000,0x0000000772b00000)
from space 10752K, 100% used [0x0000000773580000,0x0000000774000000,0x0000000774000000)
to space 10752K, 0% used [0x0000000772b00000,0x0000000772b00000,0x0000000773580000)
ParOldGen total 175104K, used 148098K [0x00000006c0000000, 0x00000006cab00000, 0x000000076ab00000)
object space 175104K, 84% used [0x00000006c0000000,0x00000006c90a0a58,0x00000006cab00000)
Metaspace used 12489K, capacity 12681K, committed 12928K, reserved 1060864K
class space used 1343K, capacity 1389K, committed 1408K, reserved 1048576K
}
Event: 12.841 GC heap before
{Heap before GC invocations=5 (full 1):
PSYoungGen total 141824K, used 10752K [0x000000076ab00000, 0x0000000774000000, 0x00000007c0000000)
eden space 131072K, 0% used [0x000000076ab00000,0x000000076ab00000,0x0000000772b00000)
from space 10752K, 100% used [0x0000000773580000,0x0000000774000000,0x0000000774000000)
to space 10752K, 0% used [0x0000000772b00000,0x0000000772b00000,0x0000000773580000)
ParOldGen total 175104K, used 148098K [0x00000006c0000000, 0x00000006cab00000, 0x000000076ab00000)
object space 175104K, 84% used [0x00000006c0000000,0x00000006c90a0a58,0x00000006cab00000)
Metaspace used 12489K, capacity 12681K, committed 12928K, reserved 1060864K
class space used 1343K, capacity 1389K, committed 1408K, reserved 1048576K
Event: 13.215 GC heap after
Heap after GC invocations=5 (full 1):
PSYoungGen total 141824K, used 0K [0x000000076ab00000, 0x0000000774000000, 0x00000007c0000000)
eden space 131072K, 0% used [0x000000076ab00000,0x000000076ab00000,0x0000000772b00000)
from space 10752K, 0% used [0x0000000773580000,0x0000000773580000,0x0000000774000000)
to space 10752K, 0% used [0x0000000772b00000,0x0000000772b00000,0x0000000773580000)
ParOldGen total 313856K, used 155979K [0x00000006c0000000, 0x00000006d3280000, 0x000000076ab00000)
object space 313856K, 49% used [0x00000006c0000000,0x00000006c9852eb8,0x00000006d3280000)
Metaspace used 12487K, capacity 12679K, committed 12928K, reserved 1060864K
class space used 1342K, capacity 1388K, committed 1408K, reserved 1048576K
}
Event: 13.277 GC heap before
{Heap before GC invocations=6 (full 1):
PSYoungGen total 141824K, used 131072K [0x000000076ab00000, 0x0000000774000000, 0x00000007c0000000)
eden space 131072K, 100% used [0x000000076ab00000,0x0000000772b00000,0x0000000772b00000)
from space 10752K, 0% used [0x0000000773580000,0x0000000773580000,0x0000000774000000)
to space 10752K, 0% used [0x0000000772b00000,0x0000000772b00000,0x0000000773580000)
ParOldGen total 313856K, used 155979K [0x00000006c0000000, 0x00000006d3280000, 0x000000076ab00000)
object space 313856K, 49% used [0x00000006c0000000,0x00000006c9852eb8,0x00000006d3280000)
Metaspace used 12487K, capacity 12679K, committed 12928K, reserved 1060864K
class space used 1342K, capacity 1388K, committed 1408K, reserved 1048576K
Event: 13.333 GC heap after
Heap after GC invocations=6 (full 1):
PSYoungGen total 141824K, used 10752K [0x000000076ab00000, 0x000000078be80000, 0x00000007c0000000)
eden space 131072K, 0% used [0x000000076ab00000,0x000000076ab00000,0x0000000772b00000)
from space 10752K, 100% used [0x0000000772b00000,0x0000000773580000,0x0000000773580000)
to space 148480K, 0% used [0x0000000782d80000,0x0000000782d80000,0x000000078be80000)
ParOldGen total 313856K, used 280427K [0x00000006c0000000, 0x00000006d3280000, 0x000000076ab00000)
object space 313856K, 89% used [0x00000006c0000000,0x00000006d11daeb8,0x00000006d3280000)
Metaspace used 12487K, capacity 12679K, committed 12928K, reserved 1060864K
class space used 1342K, capacity 1388K, committed 1408K, reserved 1048576K
}
Event: 13.333 GC heap before
{Heap before GC invocations=7 (full 2):
PSYoungGen total 141824K, used 10752K [0x000000076ab00000, 0x000000078be80000, 0x00000007c0000000)
eden space 131072K, 0% used [0x000000076ab00000,0x000000076ab00000,0x0000000772b00000)
from space 10752K, 100% used [0x0000000772b00000,0x0000000773580000,0x0000000773580000)
to space 148480K, 0% used [0x0000000782d80000,0x0000000782d80000,0x000000078be80000)
ParOldGen total 313856K, used 280427K [0x00000006c0000000, 0x00000006d3280000, 0x000000076ab00000)
object space 313856K, 89% used [0x00000006c0000000,0x00000006d11daeb8,0x00000006d3280000)
Metaspace used 12487K, capacity 12679K, committed 12928K, reserved 1060864K
class space used 1342K, capacity 1388K, committed 1408K, reserved 1048576K
Event: 13.500 GC heap after
Heap after GC invocations=7 (full 2):
PSYoungGen total 141824K, used 0K [0x000000076ab00000, 0x000000078be80000, 0x00000007c0000000)
eden space 131072K, 0% used [0x000000076ab00000,0x000000076ab00000,0x0000000772b00000)
from space 10752K, 0% used [0x0000000772b00000,0x0000000772b00000,0x0000000773580000)
to space 148480K, 0% used [0x0000000782d80000,0x0000000782d80000,0x000000078be80000)
ParOldGen total 537088K, used 287041K [0x00000006c0000000, 0x00000006e0c80000, 0x000000076ab00000)
object space 537088K, 53% used [0x00000006c0000000,0x00000006d1850730,0x00000006e0c80000)
Metaspace used 12487K, capacity 12679K, committed 12928K, reserved 1060864K
class space used 1342K, capacity 1388K, committed 1408K, reserved 1048576K
}
Event: 13.545 GC heap before
{Heap before GC invocations=8 (full 2):
PSYoungGen total 141824K, used 131072K [0x000000076ab00000, 0x000000078be80000, 0x00000007c0000000)
eden space 131072K, 100% used [0x000000076ab00000,0x0000000772b00000,0x0000000772b00000)
from space 10752K, 0% used [0x0000000772b00000,0x0000000772b00000,0x0000000773580000)
to space 148480K, 0% used [0x0000000782d80000,0x0000000782d80000,0x000000078be80000)
ParOldGen total 537088K, used 287041K [0x00000006c0000000, 0x00000006e0c80000, 0x000000076ab00000)
object space 537088K, 53% used [0x00000006c0000000,0x00000006d1850730,0x00000006e0c80000)
Metaspace used 12487K, capacity 12679K, committed 12928K, reserved 1060864K
class space used 1342K, capacity 1388K, committed 1408K, reserved 1048576K
Event: 13.614 GC heap after
Heap after GC invocations=8 (full 2):
PSYoungGen total 324096K, used 131712K [0x000000076ab00000, 0x000000078b380000, 0x00000007c0000000)
eden space 186880K, 0% used [0x000000076ab00000,0x000000076ab00000,0x0000000776180000)
from space 137216K, 95% used [0x0000000782d80000,0x000000078ae20000,0x000000078b380000)
to space 173056K, 0% used [0x0000000776180000,0x0000000776180000,0x0000000780a80000)
ParOldGen total 537088K, used 287041K [0x00000006c0000000, 0x00000006e0c80000, 0x000000076ab00000)
object space 537088K, 53% used [0x00000006c0000000,0x00000006d1850730,0x00000006e0c80000)
Metaspace used 12487K, capacity 12679K, committed 12928K, reserved 1060864K
class space used 1342K, capacity 1388K, committed 1408K, reserved 1048576K
}
Deoptimization events (9 events):
Event: 1.453 Thread 0x00007fd789800800 Uncommon trap: reason=unreached action=reinterpret pc=0x000000010eb5cac0 method=java.awt.image.DirectColorModel.getDataElements(ILjava/lang/Object;)Ljava/lang/Object; @ 11
Event: 8.589 Thread 0x00007fd78c1cc000 Uncommon trap: reason=unloaded action=reinterpret pc=0x000000010ed67324 method=com.carterza.system.generation.util.MaximalRectangle.solve()Lcom/badlogic/gdx/math/Rectangle; @ 312
Event: 12.497 Thread 0x00007fd78c1cc000 Uncommon trap: reason=unreached action=reinterpret pc=0x000000010ed5faf4 method=java.lang.Enum.equals(Ljava/lang/Object;)Z @ 2
Event: 12.768 Thread 0x00007fd78c1cc000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000010edc5ab0 method=com.badlogic.gdx.utils.ObjectMap.containsKey(Ljava/lang/Object;)Z @ 19
Event: 12.771 Thread 0x00007fd78c1cc000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000010edcaf94 method=com.badlogic.gdx.utils.ObjectMap.containsKey(Ljava/lang/Object;)Z @ 19
Event: 12.774 Thread 0x00007fd78c1cc000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000010edcef74 method=com.badlogic.gdx.utils.ObjectMap.containsKey(Ljava/lang/Object;)Z @ 38
Event: 12.780 Thread 0x00007fd78c1cc000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000010edcfb38 method=com.badlogic.gdx.utils.ObjectMap.containsKey(Ljava/lang/Object;)Z @ 57
Event: 12.780 Thread 0x00007fd78c1cc000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000010edd0658 method=com.badlogic.gdx.utils.ObjectMap.containsKey(Ljava/lang/Object;)Z @ 38
Event: 13.630 Thread 0x00007fd78c1cc000 Uncommon trap: reason=unreached action=reinterpret pc=0x000000010edd3db0 method=com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile.getProperties()Lcom/badlogic/gdx/maps/MapProperties; @ 4
Internal exceptions (10 events):
Event: 13.650 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dcf5918) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.650 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dcfc8e8) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.650 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd01920) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.651 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd06b30) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.651 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd0c130) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.651 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd112f0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.651 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd16d68) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.651 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd1b8b0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.651 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd20680) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Event: 13.651 Thread 0x00007fd78c1cc000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076dd25478) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275]
Events (10 events):
Event: 13.651 loading class com/badlogic/gdx/ai/btree/decorator/SemaphoreGuard
Event: 13.651 loading class com/badlogic/gdx/ai/btree/decorator/SemaphoreGuard done
Event: 13.651 loading class com/badlogic/gdx/ai/btree/leaf/Success
Event: 13.651 loading class com/badlogic/gdx/ai/btree/leaf/Success done
Event: 13.651 loading class com/badlogic/gdx/ai/btree/decorator/UntilFail
Event: 13.651 loading class com/badlogic/gdx/ai/btree/decorator/UntilFail done
Event: 13.651 loading class com/badlogic/gdx/ai/btree/decorator/UntilSuccess
Event: 13.651 loading class com/badlogic/gdx/ai/btree/decorator/UntilSuccess done
Event: 13.651 loading class com/badlogic/gdx/ai/btree/leaf/Wait
Event: 13.651 loading class com/badlogic/gdx/ai/btree/leaf/Wait done
Dynamic libraries:
0x0000000007236000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x0000000007236000 /System/Library/Frameworks/Security.framework/Versions/A/Security
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x0000000007236000 /usr/lib/libz.1.dylib
0x0000000007236000 /usr/lib/libSystem.B.dylib
0x0000000007236000 /usr/lib/libobjc.A.dylib
0x0000000007236000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x0000000007236000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x0000000007236000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x0000000007236000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x0000000007236000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x0000000007236000 /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x0000000007236000 /usr/lib/libScreenReader.dylib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x0000000007236000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x0000000007236000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x0000000007236000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x0000000007236000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x0000000007236000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x0000000007236000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x0000000007236000 /usr/lib/libauto.dylib
0x0000000007236000 /usr/lib/libicucore.A.dylib
0x0000000007236000 /usr/lib/libxml2.2.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x0000000007236000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x0000000007236000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x0000000007236000 /usr/lib/liblangid.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x0000000007236000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x0000000007236000 /usr/lib/libDiagnosticMessagesClient.dylib
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x0000000007236000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x0000000007236000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x0000000007236000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x0000000007236000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x0000000007236000 /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
0x0000000007236000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x0000000007236000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x0000000007236000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x0000000007236000 /usr/lib/libextension.dylib
0x0000000007236000 /usr/lib/libarchive.2.dylib
0x0000000007236000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x0000000007236000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x0000000007236000 /usr/lib/libCRFSuite.dylib
0x0000000007236000 /usr/lib/libc++.1.dylib
0x0000000007236000 /usr/lib/libc++abi.dylib
0x0000000007236000 /usr/lib/system/libcache.dylib
0x0000000007236000 /usr/lib/system/libcommonCrypto.dylib
0x0000000007236000 /usr/lib/system/libcompiler_rt.dylib
0x0000000007236000 /usr/lib/system/libcopyfile.dylib
0x0000000007236000 /usr/lib/system/libcorecrypto.dylib
0x0000000007236000 /usr/lib/system/libdispatch.dylib
0x0000000007236000 /usr/lib/system/libdyld.dylib
0x0000000007236000 /usr/lib/system/libkeymgr.dylib
0x0000000007236000 /usr/lib/system/liblaunch.dylib
0x0000000007236000 /usr/lib/system/libmacho.dylib
0x0000000007236000 /usr/lib/system/libquarantine.dylib
0x0000000007236000 /usr/lib/system/libremovefile.dylib
0x0000000007236000 /usr/lib/system/libsystem_asl.dylib
0x0000000007236000 /usr/lib/system/libsystem_blocks.dylib
0x0000000007236000 /usr/lib/system/libsystem_c.dylib
0x0000000007236000 /usr/lib/system/libsystem_configuration.dylib
0x0000000007236000 /usr/lib/system/libsystem_coreservices.dylib
0x0000000007236000 /usr/lib/system/libsystem_coretls.dylib
0x0000000007236000 /usr/lib/system/libsystem_dnssd.dylib
0x0000000007236000 /usr/lib/system/libsystem_info.dylib
0x0000000007236000 /usr/lib/system/libsystem_kernel.dylib
0x0000000007236000 /usr/lib/system/libsystem_m.dylib
0x0000000007236000 /usr/lib/system/libsystem_malloc.dylib
0x0000000007236000 /usr/lib/system/libsystem_network.dylib
0x0000000007236000 /usr/lib/system/libsystem_networkextension.dylib
0x0000000007236000 /usr/lib/system/libsystem_notify.dylib
0x0000000007236000 /usr/lib/system/libsystem_platform.dylib
0x0000000007236000 /usr/lib/system/libsystem_pthread.dylib
0x0000000007236000 /usr/lib/system/libsystem_sandbox.dylib
0x0000000007236000 /usr/lib/system/libsystem_secinit.dylib
0x0000000007236000 /usr/lib/system/libsystem_trace.dylib
0x0000000007236000 /usr/lib/system/libunc.dylib
0x0000000007236000 /usr/lib/system/libunwind.dylib
0x0000000007236000 /usr/lib/system/libxpc.dylib
0x0000000007236000 /usr/lib/libenergytrace.dylib
0x0000000007236000 /usr/lib/libbsm.0.dylib
0x0000000007236000 /usr/lib/system/libkxld.dylib
0x0000000007236000 /usr/lib/libxar.1.dylib
0x0000000007236000 /usr/lib/libsqlite3.dylib
0x0000000007236000 /usr/lib/libpam.2.dylib
0x0000000007236000 /usr/lib/libOpenScriptingUtil.dylib
0x0000000007236000 /usr/lib/libbz2.1.0.dylib
0x0000000007236000 /usr/lib/liblzma.5.dylib
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x0000000007236000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x0000000007236000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x0000000007236000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x0000000007236000 /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x0000000007236000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x0000000007236000 /usr/lib/libmecabra.dylib
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x0000000007236000 /System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x0000000007236000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
0x0000000007236000 /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x0000000007236000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x0000000007236000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x0000000007236000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x0000000007236000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x0000000007236000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x0000000007236000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x0000000007236000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x0000000007236000 /usr/lib/libcompression.dylib
0x0000000007236000 /usr/lib/libcups.2.dylib
0x0000000007236000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x0000000007236000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x0000000007236000 /usr/lib/libresolv.9.dylib
0x0000000007236000 /usr/lib/libiconv.2.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x0000000007236000 /usr/lib/libheimdal-asn1.dylib
0x0000000007236000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x0000000007236000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x0000000007236000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x0000000007236000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x0000000007236000 /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x0000000007236000 /usr/lib/libmarisa.dylib
0x0000000007236000 /usr/lib/libChineseTokenizer.dylib
0x0000000007236000 /usr/lib/libcmph.dylib
0x0000000007236000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x0000000007236000 /usr/lib/libxslt.1.dylib
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x0000000007236000 /usr/lib/libFosl_dynamic.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x0000000007236000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x0000000007236000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x0000000007236000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
0x0000000007236000 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x0000000007236000 /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x0000000007236000 /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x0000000007236000 /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x0000000007236000 /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x0000000007236000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
0x0000000007236000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x0000000007236000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
0x0000000007236000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
0x0000000007236000 /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
0x000000010da00000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/server/libjvm.dylib
0x0000000007236000 /usr/lib/libstdc++.6.dylib
0x000000010c8c2000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libverify.dylib
0x000000010c8d0000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjava.dylib
0x000000010c90e000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libzip.dylib
0x00000001298fa000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport
0x000000010c9eb000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
0x0000000129915000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x0000000129922000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x0000000007236000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x000000012b276000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt.dylib
0x000000012b325000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libmlib_image.dylib
0x000000012b3f1000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt_lwawt.dylib
0x000000012b4a4000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libosxapp.dylib
0x0000000007236000 /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling
0x0000000007236000 /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
0x000000012c6ea000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x0000000007236000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib
0x000000012ca54000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x0000000007236000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
0x0000000007236000 /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
0x0000000007236000 /usr/lib/libcsfde.dylib
0x0000000007236000 /usr/lib/libcurl.4.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
0x0000000007236000 /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage
0x0000000007236000 /usr/lib/libCoreStorage.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin
0x0000000007236000 /usr/lib/libutil.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice
0x0000000007236000 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x0000000007236000 /usr/lib/libsasl2.2.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
0x0000000007236000 /usr/lib/libcrypto.0.9.8.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
0x0000000007236000 /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x000000012d521000 cl_kernels
0x0000000007236000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib
0x0000000007236000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_rgba.dylib
0x0000000007236000 /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0x0000000007236000 /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore
0x0000000007236000 /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/SystemAdministration
0x0000000007236000 /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer
0x0000000007236000 /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper
0x0000000007236000 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x0000000007236000 /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Versions/A/LoginUICore
0x0000000007236000 /usr/lib/libodfde.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x000000012e648000 /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsGLDriver
0x0000000007236000 /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib
0x0000000007236000 /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
0x0000000007236000 /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
0x0000000007236000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
0x000000012d1ec000 /private/var/folders/vy/3gx6kq617kn2_x32p2r80_yjgrdzmt/T/libgdxzachcarter/801e903a/libgdx64.dylib
0x000000012d23a000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libfontmanager.dylib
0x000000012d2a0000 /private/var/folders/vy/3gx6kq617kn2_x32p2r80_yjgrdzmt/T/libgdxzachcarter/f7649394/liblwjgl.dylib
0x000000012d0b4000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjawt.dylib
0x000000012d322000 /var/folders/vy/3gx6kq617kn2_x32p2r80_yjgrdzmt/T/libgdxzachcarter/f7649394/openal.dylib
0x0000000130110000 /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x000000012d0e1000 /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x0000000133026000 /private/var/folders/vy/3gx6kq617kn2_x32p2r80_yjgrdzmt/T/libgdxzachcarter/2e679bed/libgdx-box2d64.dylib
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant
java_command: com.carterza.desktop.DesktopLauncher dev
java_class_path (initial): /Users/zachcarter/Projects/derelict/desktop/build/classes/main:/Users/zachcarter/Projects/derelict/desktop/build/resources/main:/Users/zachcarter/Projects/derelict/core/build/libs/core-1.0.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-lwjgl/1.9.4/4c6c108a9dcbc07096de8594b93f9cab33856fe2/gdx-backend-lwjgl-1.9.4.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.4/8e93afecc287ab152179983fc1b5f65db4c2fa4c/gdx-platform-1.9.4-natives-desktop.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-box2d-platform/1.9.4/905a9ed3017cd3917b7fbada5ece58c40fddcbca/gdx-box2d-platform-1.9.4-natives-desktop.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-tools/1.9.4/4c15cd85a5077bc7d13914be7cbd8dcce2d31725/gdx-tools-1.9.4.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.4/4b4b7962d1bc75af0438f5c81ec1010557bc9ee5/gdx-1.9.4.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-ai/1.8.0/ec30677d8ab1a8b8aa4b853c5f4e4b1361f50bf5/gdx-ai-1.8.0.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/net.onedaybeard.artemis/artemis-odb-serializer-json-libgdx/2.0.0/140f3b7b3eb40f69c66b0fef4a26257c980908d7/artemis-odb-serializer-json-libgdx-2.0.0.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/net.mostlyoriginal.artemis-odb/contrib-core/1.2.1/27c05e90dfe87c0b2b0bdf243754d9ecc882d2ce/contrib-core-1.2.1.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/net.mostlyoriginal.artemis-odb/contrib-jam/1.2.1/98fb0568d722874da7c5a2c279c97d0fd1934626/contrib-jam-1.2.1.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/net.mostlyoriginal.artemis-odb/contrib-eventbus/1.2.1/3f2a36e45f6a797095ffb63c7e125dad1d765ed9/contrib-eventbus-1.2.1.jar:/Users/zachcarter/.gradle/caches/modules-2/files-2.1/net.mostlyoriginal.artemis-odb/contrib-plugin-op
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/usr/bin:/bin:/usr/sbin:/sbin
SHELL=/bin/bash
DISPLAY=/private/tmp/com.apple.launchd.tTVIDJtgPp/org.macosforge.xquartz:0
Signal Handlers:
SIGSEGV: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.dylib+0x45a62a], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGINT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGTERM: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGQUIT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
--------------- S Y S T E M ---------------
OS:Bsduname:Darwin 15.6.0 Darwin Kernel Version 15.6.0: Thu Sep 1 15:01:16 PDT 2016; root:xnu-3248.60.11~2/RELEASE_X86_64 x86_64
rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity
load average:2.55 2.37 2.16
CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 70 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, rtm, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2
Memory: 4k page, physical 16777216k(16668k free)
/proc/meminfo:
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.20-b23) for bsd-amd64 JRE (1.8.0_20-b26), built on Jul 30 2014 13:37:47 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
time: Sun Nov 20 12:01:13 2016
elapsed time: 13 seconds (0d 0h 0m 13s)
package com.carterza.screen;
import com.artemis.World;
import com.artemis.WorldConfigurationBuilder;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.carterza.event.EventBus;
import com.carterza.system.action.ActionSystem;
import com.carterza.system.ai.AISystem;
import com.carterza.system.animation.AnimationRenderSystem;
import com.carterza.system.asset.AssetSystem;
import com.carterza.system.camera.CameraFocusSystem;
import com.carterza.system.camera.CameraSystem;
import com.carterza.system.debug.DebugSystem;
import com.carterza.system.dummy.DummySystem;
import com.carterza.system.entity.EntitySpawnerSystem;
import com.carterza.system.generation.ShipGenerationSystem;
import com.carterza.input.InputHandler;
import com.carterza.system.input.InputSystem;
import com.carterza.system.logic.BulletSystem;
import com.carterza.system.logic.FindMobilesSystem;
import com.carterza.system.logic.SwitchSystem;
import com.carterza.system.logic.WeaponFireSystem;
import com.carterza.system.map.MapGenerationSystem;
import com.carterza.system.map.MapSpawnerSystem;
import com.carterza.system.map.collision.MapCollisionSystem;
import com.carterza.system.map.render.MapRenderSystem;
import com.carterza.system.movement.MovementSystem;
import com.carterza.system.physics.PhysicsSystem;
import com.carterza.system.player.PlayerSystem;
import com.carterza.system.turn.TurnSystem;
import net.mostlyoriginal.api.screen.core.WorldScreen;
import net.mostlyoriginal.api.system.render.ClearScreenSystem;
/**
* Created by zachcarter on 9/28/16.
*/
public class MainScreen extends WorldScreen {
@Override
protected World createWorld() {
World world = new World(new WorldConfigurationBuilder()
.with(
new EventBus()
, new PhysicsSystem()
, new EntitySpawnerSystem()
, new AssetSystem()
, new ShipGenerationSystem()
, new CameraSystem(24.0f)
, new CameraFocusSystem()
, new MapGenerationSystem()
, new MapSpawnerSystem()
, new ClearScreenSystem(Color.BLACK)
, new MovementSystem()
, new MapRenderSystem()
, new MapCollisionSystem()
, new AnimationRenderSystem()
, new FindMobilesSystem()
, new AISystem()
, new DummySystem()
, new PlayerSystem()
, new SwitchSystem()
, new InputSystem()
, new ActionSystem()
, new TurnSystem()
, new WeaponFireSystem()
, new BulletSystem()
// , new MuzzleFlashSystem()
// , new LightingSystem()
, new DebugSystem()
)
//.register(new GameLoopSystemInvocationStrategy(40))
.build());
Gdx.input.setInputProcessor(new InputHandler(world));
return world;
}
}
package com.carterza.system.physics;
import com.artemis.Aspect;
import com.artemis.BaseSystem;
import com.artemis.ComponentMapper;
import com.artemis.Entity;
import com.artemis.annotations.Wire;
import com.artemis.systems.IteratingSystem;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.*;
import com.carterza.component.PhysicsComponent;
import com.carterza.component.PositionComponent;
import com.carterza.component.TurnComponent;
import com.carterza.physics.CollisionHandler;
import com.carterza.strategy.LogicRenderMarker;
import net.mostlyoriginal.api.system.core.PassiveSystem;
@Wire
public class PhysicsSystem extends IteratingSystem {
World physics;
ComponentMapper<PositionComponent> positionComponentMapper;
ComponentMapper<PhysicsComponent> physicsComponentMapper;
/**
* Creates a new EntityProcessingSystem.
*
* @param aspect the aspect to match entities
*/
public PhysicsSystem() {
super(Aspect.all(PhysicsComponent.class, PositionComponent.class));
}
@Override
protected void initialize() {
physics = new World(new Vector2(0, 0), true);
// physics.setContactListener(new CollisionHandler());
}
public World getPhysics() {
return this.physics;
}
@Override
protected void process(int entityId) {
Entity e = world.getEntity(entityId);
PositionComponent positionComponent = positionComponentMapper.get(entityId);
physicsComponentMapper.create(entityId);
PhysicsComponent physicsComponent = physicsComponentMapper.get(entityId);
positionComponent.setPosition(new Vector2((physicsComponent.getBody().getPosition().x), (physicsComponent.getBody().getPosition().y)));
}
@Override
protected void end() {
physics.step(Gdx.graphics.getDeltaTime(), 6, 2);
}
@Override
protected void dispose() {
this.physics.dispose();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment