Added 'Fork on Github'

This commit is contained in:
LAX1DUDE 2021-12-23 23:56:22 -08:00
parent 7610f1d6c5
commit 1e50c64ff2
11 changed files with 27269 additions and 27242 deletions

View File

@ -55,3 +55,7 @@ To complile to regular desktop Java for quick debugging, using native OpenGL for
To modify the game's assets repository (javascript/assets.epk), make your changes in lwjgl-runtime/resources/ and use the Eclipse project located in epkcompiler/ to regenerate the assets.epk file and copy it to the Javascript directory. To modify the game's assets repository (javascript/assets.epk), make your changes in lwjgl-runtime/resources/ and use the Eclipse project located in epkcompiler/ to regenerate the assets.epk file and copy it to the Javascript directory.
this project is just a proof of concept to show what can be accomplished when using TeaVM to cross compile an existing java program to javascript. It is not very fast or stable, and the only real useful portion is the emulator code which creates a makeshift fixed function OpenGL 1.3 context using webgl (based on OpenGL 3.3) operational in the browser. Maybe it can be used to port other games in the future. this project is just a proof of concept to show what can be accomplished when using TeaVM to cross compile an existing java program to javascript. It is not very fast or stable, and the only real useful portion is the emulator code which creates a makeshift fixed function OpenGL 1.3 context using webgl (based on OpenGL 3.3) operational in the browser. Maybe it can be used to port other games in the future.
## Contributing
All I really have to say is, tabs not spaces, and format the code to be like the eclipse auto format tool on factory settings, but also run-on lines long enough to off the screen and single line if statements and such are welcome if it helps enhance the contrast between the less important code in a file and the more important code in a file. Don't commit changes to `javascript/classes.js` or `javascript/assets.epk` or anything in `stable-download/`. I'll recompile those myself when I merge the pull request.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,7 @@ menu.online=Minecraft Realms
menu.options=Options... menu.options=Options...
menu.editprofile=Edit Profile menu.editprofile=Edit Profile
menu.voicechannel=Voice Channel menu.voicechannel=Voice Channel
menu.forkme=Fork on Github
menu.quit=Quit Game menu.quit=Quit Game
menu.returnToMenu=Save and Quit to Title menu.returnToMenu=Save and Quit to Title
menu.disconnect=Disconnect menu.disconnect=Disconnect

View File

@ -4,9 +4,11 @@ public class ConfigConstants {
public static boolean profanity = false; public static boolean profanity = false;
public static final String version = "21m12-17"; public static final String version = "21m12-24";
public static final String mainMenuString = "eaglercraft " + version; public static final String mainMenuString = "eaglercraft " + version;
public static final String forkMe = "https://github.com/LAX1DUDE/eaglercraft";
public static final boolean html5build = true; public static final boolean html5build = true;
} }

View File

@ -141,7 +141,7 @@ public class GuiMainMenu extends GuiScreen {
GuiButton single; GuiButton single;
this.buttonList.add(single = new GuiButton(1, this.width / 2 - 100, var4, var2.translateKey("menu.singleplayer"))); this.buttonList.add(single = new GuiButton(1, this.width / 2 - 100, var4, var2.translateKey("menu.singleplayer")));
this.buttonList.add(new GuiButton(2, this.width / 2 - 100, var4 + 24 * 1, var2.translateKey("menu.multiplayer"))); this.buttonList.add(new GuiButton(2, this.width / 2 - 100, var4 + 24 * 1, var2.translateKey("menu.multiplayer")));
//this.buttonList.add(new GuiButton(3, this.width / 2 - 100, var4 + 24 * 2, var2.translateKey("menu.voicechannel"))); this.buttonList.add(new GuiButton(3, this.width / 2 - 100, var4 + 24 * 2, var2.translateKey("menu.forkme")));
single.enabled = false; single.enabled = false;
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey("menu.options"))); this.buttonList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey("menu.options")));
@ -242,7 +242,8 @@ public class GuiMainMenu extends GuiScreen {
} }
if (par1GuiButton.id == 3) { if (par1GuiButton.id == 3) {
this.mc.displayGuiScreen(new GuiScreenVoiceChannel(this)); //this.mc.displayGuiScreen(new GuiScreenVoiceChannel(this));
EaglerAdapter.openLink(ConfigConstants.forkMe);
} }
if (par1GuiButton.id == 4) { if (par1GuiButton.id == 4) {

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long