Etherspace : A game made with Haxe and Kha released as part of a new skill game platform

202 views
Skip to first unread message

wighawag

unread,
Jan 4, 2017, 4:55:29 PM1/4/17
to haxe...@googlegroups.com
Hi guys,

I thought you might be interested to know about a game I made in Haxe released yesterday : http://etherplay.io/game/etherspace

It is part of the skill game platform "Etherplay" (http://etherplay.io) that use a blockchain technology called ethereum (http://ethereum.org) to ensure fairness and low fee.

I wrote an article here to explain a bit more : https://medium.com/@etherplay/what-is-etherplay-d51424674931


The games (the one used for beta and the new one) for that platform were made in Haxe using Kha.

Both Kha and Haxe made building the game such a breeze.

While kha is cross platform, we use it only to target html5 as that was the only target needed. Except few js only shortcut we made, the game should be easily ported if we needed

Kha was amazing to work with. The game  graphics are rendered by using pure kha graphics api directly (without any engine on top), except for an spritesheet library https://github.com/wighawag/imagesheet



For automatic replay we use a library not yet released that use some macro to automate the setup.

 If you would like to try the game without having Ether (the cyrpto currency used by Ethereum) you can play the demo. You still need to install the plugin Metamask though.

To interact with ethereum, we use the web3 js library (https://github.com/ethereum/web3.js). For the most part haxe js externs were easy to write. We also used macro at some point but were replaced by a template based code generation build script (made in Haxe too) since the generation needed to happen only rarely. 


We also used Haxe with hxnodejs for the nodejs part of our backend (the other part being coded in golang)

Again Haxe shined here. The main thing nice with Haxe is that since you know you can refactor later without too much risk, you can explore faster without the worry to need to rewrite everything later.


Thanks to Haxe dev team for providing such nice language and thanks Robert for Kha and its nice and simple API!


David Elahee

unread,
Jan 5, 2017, 2:22:00 AM1/5/17
to haxe...@googlegroups.com

Congratulations, I wish you the best for this game and platform !


--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Justin Donaldson

unread,
Jan 5, 2017, 4:04:40 PM1/5/17
to Haxe
Very cool idea for a platform!

chunbiao huang

unread,
Jan 5, 2017, 9:07:10 PM1/5/17
to haxelang
great  idea for a platform!  

wighawag

unread,
Jan 8, 2017, 8:08:30 AM1/8/17
to haxe...@googlegroups.com
Thanks for the kind words. I guess it is not easy to get in . Hopefully crypto will become more widespread in the future
Reply all
Reply to author
Forward
0 new messages