Global alpha stack added into Color.
This commit is contained in:
@@ -11,6 +11,7 @@ import mightypork.gamecore.gui.screens.ScreenRegistry;
|
||||
import mightypork.gamecore.input.InputSystem;
|
||||
import mightypork.gamecore.input.KeyStroke;
|
||||
import mightypork.gamecore.input.Keys;
|
||||
import mightypork.gamecore.loading.AsyncResourceLoader;
|
||||
import mightypork.gamecore.render.DisplaySystem;
|
||||
import mightypork.rogue.events.ActionRequest;
|
||||
import mightypork.rogue.events.ActionRequest.RequestType;
|
||||
@@ -85,6 +86,9 @@ public class App extends BaseApp {
|
||||
@Override
|
||||
protected void initResources()
|
||||
{
|
||||
AsyncResourceLoader thread = AsyncResourceLoader.launch(this);
|
||||
thread.enableMainLoopQueuing(true);
|
||||
|
||||
Res.load(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,8 +48,8 @@ public class Res {
|
||||
fonts = new FontBank(app);
|
||||
|
||||
loadSounds();
|
||||
loadTextures();
|
||||
loadFonts();
|
||||
loadTextures();
|
||||
}
|
||||
|
||||
|
||||
@@ -58,13 +58,9 @@ public class Res {
|
||||
DeferredFont font;
|
||||
|
||||
font = new DeferredFont("/res/font/PolygonPixel5x7Standard.ttf", Glyphs.basic, 16);
|
||||
font.setAntialias(true);
|
||||
font.setFilter(FilterMode.NEAREST);
|
||||
fonts.loadFont("polygon_pixel", font);
|
||||
|
||||
font = new DeferredFont("/res/font/PressStart2P.ttf", Glyphs.basic, 16);
|
||||
font.setAntialias(true);
|
||||
font.setFilter(FilterMode.NEAREST);
|
||||
fonts.loadFont("press_start", font);
|
||||
|
||||
fonts.addAlias("default", "polygon_pixel");
|
||||
|
||||
@@ -11,6 +11,7 @@ import mightypork.gamecore.input.Keys;
|
||||
import mightypork.gamecore.render.fonts.GLFont;
|
||||
import mightypork.rogue.Res;
|
||||
import mightypork.utils.math.color.Color;
|
||||
import mightypork.utils.math.constraints.num.Num;
|
||||
import mightypork.utils.math.constraints.rect.proxy.RectBound;
|
||||
import mightypork.utils.math.constraints.vect.Vect;
|
||||
import mightypork.utils.string.StringProvider;
|
||||
@@ -55,6 +56,12 @@ public class LayerFps extends ScreenLayer {
|
||||
root.add(tp);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void renderLayer()
|
||||
{
|
||||
super.renderLayer();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getPriority()
|
||||
|
||||
Reference in New Issue
Block a user