📄 libinfo.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
package com.golden.gamedev.funbox;
import com.golden.gamedev.Game;
import com.golden.gamedev.GameLoader;
import com.golden.gamedev.object.GameFont;
import com.golden.gamedev.object.GameFontManager;
import java.awt.*;
public class LibInfo extends Game
{
private GameFont a;
private GameFont b;
private GameFont c;
private GameFont d;
public LibInfo()
{
distribute = true;
}
public void initResources()
{
setFPS(10);
showCursor();
a = fontManager.getFont(new Font("Verdana", 1, 32));
b = fontManager.getFont(new Font("Verdana", 1, 18));
c = fontManager.getFont(new Font("Verdana", 1, 15));
d = fontManager.getFont(new Font("Verdana", 0, 15));
}
public void update(long l)
{
if(keyPressed(10) || keyPressed(27) || keyDown(18) && keyPressed(115))
finish();
}
public void render(Graphics2D graphics2d)
{
graphics2d.setColor(Color.BLACK);
graphics2d.fillRect(0, 0, getWidth(), getHeight());
graphics2d.setColor(Color.WHITE);
graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
byte _tmp = 20;
int j = a.getHeight();
a.drawString(graphics2d, "GOLDEN T GAME ENGINE", 3, 0, 20, getWidth());
int i = 20 + (j + 5);
a.drawString(graphics2d, "[ G T G E ]", 3, 0, i, getWidth());
i += j + 8;
j = b.getHeight();
b.drawString(graphics2d, "is", 3, 0, i, getWidth());
i += j + 12;
b.drawString(graphics2d, "A Java Game Library / Game SDK", 3, 0, i, getWidth());
i += j + 28;
graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
j = c.getHeight();
c.drawString(graphics2d, "Thus, you need to code the game", 3, 0, i, getWidth());
i += j + 4;
c.drawString(graphics2d, "in order to make a game with GTGE", 3, 0, i, getWidth());
i += j + 18;
c.drawString(graphics2d, "Please read GTGE tutorials for", 3, 0, i, getWidth());
i += j + 4;
c.drawString(graphics2d, "installation and how to use this library", 3, 0, i, getWidth());
i += j + 32;
j = d.getHeight();
d.drawString(graphics2d, "Regards,", 95, i);
i += j + 18;
d.drawString(graphics2d, "Paulus Tuerah", 95, i);
i += j + 2;
d.drawString(graphics2d, "Golden T Game Engine Developer", 95, i);
i += j + 2;
d.drawString(graphics2d, "http://www.goldenstudios.or.id/", 95, i);
}
public static void main(String args[])
{
GameLoader gameloader;
(gameloader = new GameLoader()).setup(new LibInfo(), new Dimension(600, 450), false);
gameloader.start();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -