A Haxe port of Marble Blast Gold, Platinum and Ultra with 99% identical physics and cross platform multiplayer, runs on Windows, Mac, Web and Android!
Find a file
2025-02-11 18:05:46 +05:30
.circleci fix ci 2025-02-10 12:33:25 +05:30
data missed this 2025-02-10 00:12:57 +05:30
macos-dist build pls 2023-07-09 23:13:17 +05:30
server properly network the ready state 2024-04-21 19:40:33 +05:30
src make all this follow ui scale 2025-02-11 18:05:46 +05:30
.gitignore Linux build scripts 2022-12-30 01:24:44 -05:00
CHANGELOG.md changelog 2024-06-30 22:28:14 +05:30
compile-c.hxml update compile files 2024-05-02 19:20:33 +05:30
compile-js-rel.hxml this 2024-06-07 01:26:31 +05:30
compile-js.hxml change ws library, start "restart" netcode, fix some marble move bugs 2024-04-20 22:36:27 +05:30
compile-linux.hxml basically rewrite the whole UI to allow better scrolling support 2023-05-11 17:36:16 +05:30
compile-linux.sh update build scripts 2023-02-18 18:48:25 +05:30
compile-macos.hxml mac ci test 2024-05-22 23:15:48 +05:30
compile.bat update compile files 2024-05-02 19:20:33 +05:30
compile.hxml change ws library, start "restart" netcode, fix some marble move bugs 2024-04-20 22:36:27 +05:30
index.html build pls 2023-07-09 23:13:17 +05:30
LICENSE Create LICENSE 2021-07-12 14:14:59 +05:30
package-macos.sh mac ci cope 2024-05-22 23:41:04 +05:30
README-macOS.md Add app bundle instructions 2022-12-18 13:25:23 -08:00
README.md update marbleland links- 2023-06-05 21:20:34 +05:30
zyheaps.xml android port 2022-08-12 12:39:52 +05:30

MBHaxe

A Haxe port of Marble Blast Gold and Platinum, name subject to change. The marble physics code was taken from OpenMBU along with my own collision detection code, game logic was partially from scratch and taken with permission from Marble Blast Web Port.

ko-fi

Play

Web Browser

The browser port supports touch controls, meaning it can be played on mobile devices.

Marble Blast Gold: Play

Marble Blast Platinum: Play

Windows and Mac

Marble Blast Gold: Download

Marble Blast Platinum: Download

Mac Instructions - Important

Put the .app file in either /Applications or ~/Applications in order to run it properly.
You will also have to bypass Gatekeeper since the .app is not signed.

Android

Marble Blast Gold: Download

Marble Blast Platinum: Download

Why Haxe?

I chose Haxe because its a good language that can target other languages, meaning any Haxe code can be converted and used in Python, C++, Java very easily so that nobody has to take effort in porting the code to different languages, atleast thats what my mindset was when I started it, but unfortunately because of the 3d engine I used, it only compiles to C and Javascript. You will have to isolate the engine specific features yourself if you want to use this for other programming languages.

Screenshots

Build

The master branch is currently for Marble Blast Platinum. If you want to build Marble Blast Gold, go to the mbg tag

Requires Haxe 4.2.2 or above You require the following Haxe libraries:

  • heaps: The specific version located here
  • hlsdl (Obtain the haxelib version of hlsdl, then patch it with these files here) (Hashlink/C native target)
  • stb_ogg_sound (JS/Browser target)
  • zip 1.1.0 (JS/Browser target)

The version of hashlink to be compiled is located here.
After all that has been setup, compile to hashlink by doing haxe compile.hxml and then running the game by hl marblegame.hl.
To compile to C, do haxe compile-c.hxml and use the instructions in https://gist.github.com/Yanrishatum/d69ed72e368e35b18cbfca726d81279a

Javascript/Browser

If the build dependencies are fullfilled, compile with haxe compile-js.hxml and run the game by running a web server in the same directory as the repo where index.html is located.

MacOS

See here

FAQ

Help I am able to reproduce a crash!

If you are on browser, please send the browser console log to me If you are on native, please run marbleblast-debug.bat and reproduce the crash, send the resulting stacktrace that occurs during the crash to me.

Help it shows a black screen when playing a level!

Your PC does not support the game, please upgrade it, there is nothing I can do about it to fix it.

How accurate are the marble physics?

Very accurate with up to 1% deviation from the original physics. The deviations are due to traplaunches being slightly different and occassional internal edge collisions, and the lower delta t values for physics simulations.

How do I change my resolution?

In browser, you can just resize your window. You can use the browser zoom feature (ctrl + scroll) to change the UI size.
In native version, you can just resize the window if windowed or use the resolution options in the menu or just directly modify settings.json

How do I change my FOV?

Edit settings.json for native version, edit the MBHaxeSettings key in LocalStorage in browser.
In the platinum version, there is an FOV slider.

How do I unlock/lock FPS?

You cannot unlock fps in the browser, it is forever set to vsync. In the native version, edit settings.json or the options menu in the platinum.

Hey can you please add this new feature?

If this new feature of yours already exists in MBG but not in this port, then I will try to add it, if I get time to do so, otherwise chances are, I won't add it since I have other things to do and would rather not waste my time on this any further. You are free to do pull requests if you have already implemented said feature.