Package framework.component

Examples of framework.component.ComponentSystem


import framework.spacial.rotational.SpinComponent;
import framework.userinput.MouseListenerSystem.MousePressedEvent;

public abstract class TestsGen {
  public static void test1(){
    ComponentSystem cs = ComponentSystem.getInstance();
    ParentComponent root = cs.getRoot();
   
    final ParentComponent p1 = new ParentComponent();
    p1.addComponent(new PositionComponent(100,100));
    SpriteComponent s1 = new SpriteComponent("res/img/square.png", new Vector2f(-25, -25), 50, 50);
    s1.setAlwaysOnTop();
View Full Code Here


    registerInputSystems(gc);
    GameLoader.loadGameWithOptionsMenu(6, 6, gc);
  }
 
  private void initTimer(){
    ComponentSystem cs = ComponentSystem.getInstance();
    ParentComponent root = cs.getRoot();
    clock = new SystemClockComponent();
    root.addComponent(clock);
  }
View Full Code Here

TOP

Related Classes of framework.component.ComponentSystem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.