feat(web): add 2006Scape TeaVM WebGL2 client with mobile support and classic 2006 UI
Initializes the TeaVM-based 2006Scape-Web client repository with WebGL2 117HD rendering, WebSocket networking, SpessaSynth MIDI/PCM audio, and mobile-compatible touch/viewport controls. Preserves Revision 377 cache preloading via IndexedDB and localStorage-backed script and config persistence. ### Core Web Runtime & Rendering - WebLauncher & DesktopHooks: - Added TeaVM entry point with URL/localStorage option parsing, async 377 cache preloading, and WebSocket port routing. - Implemented DesktopHooks.boxReflectValue using JSWrapper.isJava/maybeUnwrap to box TeaVM reflection primitives, plus localStorage persistence for plugin settings and imported scripts. - WebHd117Renderer & RSImageProducer: - Implemented WebGL2 117HD rendering with 4x4 chunked static scenery VBOs and 0x010203 transparency sentinel so 0x000000 black UI elements stay opaque. - WebReflectionSupplier: - Exposed PluginContext, PluginGraphics, ScriptInterpreter, ID lists, and Math/System/String/collection methods for TeaVM runtime reflection. ### Mobile & Classic 2006 Web UI - index.html & RSApplet: - Styled the page to match the classic 2006 RuneScape webclient with optional classic navbar (auto-hidden below 765px), 1999-2006 Jagex footer, and responsive Fixed/Resizable/Fullscreen scaling. - Added Options modal (auto-login, server, world, 117HD, display mode, navbar) with scrollable body in mobile landscape. - Implemented Android-parity touch controls (tap, 450ms long-press right-click, 1-finger camera drag, 2-finger pinch zoom clamped to -1..8, and auto-keyboard on input fields).
This commit is contained in:
commit
3331ab745b
25 files changed
+4795
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package org.scape2006.web.net;
|
||||
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
/**
|
||||
* TeaVM-compatible InetAddress stub replacing java.net.InetAddress.
|
||||
*/
|
||||
public final class InetAddress {
|
||||
|
||||
private final String host;
|
||||
|
||||
private InetAddress(String host) {
|
||||
this.host = host;
|
||||
}
|
||||
|
||||
public static InetAddress getByName(String host) throws UnknownHostException {
|
||||
return new InetAddress(host != null ? host : "127.0.0.1");
|
||||
}
|
||||
|
||||
public static InetAddress getLocalHost() throws UnknownHostException {
|
||||
return new InetAddress("127.0.0.1");
|
||||
}
|
||||
|
||||
public String getHostName() {
|
||||
return host;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package org.scape2006.web.net;
|
||||
|
||||
/**
|
||||
* TeaVM-compatible InetSocketAddress stub replacing java.net.InetSocketAddress.
|
||||
*/
|
||||
public final class InetSocketAddress {
|
||||
|
||||
private final InetAddress addr;
|
||||
private final int port;
|
||||
|
||||
public InetSocketAddress(InetAddress addr, int port) {
|
||||
this.addr = addr;
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public InetAddress getAddress() {
|
||||
return addr;
|
||||
}
|
||||
|
||||
public int getPort() {
|
||||
return port;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package org.scape2006.web.net;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
/**
|
||||
* TeaVM-compatible Socket base class replacing java.net.Socket.
|
||||
*/
|
||||
public class Socket {
|
||||
|
||||
public Socket() {}
|
||||
|
||||
public Socket(InetAddress address, int port) throws IOException {}
|
||||
|
||||
public void connect(InetSocketAddress endpoint, int timeout) throws IOException {}
|
||||
|
||||
public InputStream getInputStream() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public OutputStream getOutputStream() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setSoTimeout(int timeout) throws IOException {}
|
||||
|
||||
public void setTcpNoDelay(boolean on) throws IOException {}
|
||||
|
||||
public void close() throws IOException {}
|
||||
}
|
||||
Reference in new issue
Block a user