Commits

Anonymous committed b047257

Demo applet no longer needs parent console.
Also edited text of Colors demo.

Comments (0)

Files changed (3)

src/main/java/net/fishbulb/jcod/demo/Colors.java

 
 public class Colors extends DemoApplet {
 
-    public Colors(Console parent) {
-        super(parent);
-    }
-
     int[] dirr = {1, -1, 1, 1};
     int[] dirg = {1, -1, -1, 1};
     int[] dirb = {1, 1, 1, -1};
         console.setDefaultBackground(Color.GRAY);
         console.printRectEx(width / 2, 5, width - 2, height - 1,
                 BlendMode.Multiply, Console.Alignment.Center,
-                "The Doryen library uses 24 bits colors, for both background and foreground.");
+                "The JCOD port of the Doryen library uses 32-bit colors with true alpha blending");
 
     }
 

src/main/java/net/fishbulb/jcod/demo/Demo.java

         root = new Console(WIDTH, HEIGHT, tileset, display);
 
         stage.addActor(root.getDisplay());
-        active = new Colors(root);
+        active = new Colors();
 
         float xpos = (Gdx.app.getGraphics().getWidth() - (display.getPrefWidth() + APPLET_X + TILE_WIDTH)) / 2;
         float ypos = (Gdx.app.getGraphics().getHeight() - (display.getPrefHeight() + APPLET_Y + TILE_HEIGHT)) / 2;

src/main/java/net/fishbulb/jcod/demo/DemoApplet.java

     @Getter
     Console console;
 
-    public DemoApplet(Console parent) {
+    public DemoApplet() {
         width = DEFAULT_WIDTH;
         height = DEFAULT_HEIGHT;
         console = new Console(width, height);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.