Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: Eiyeron on November 14, 2014, 12:17:11 pm

Title: [SQUARE], minimalist html5 game
Post by: Eiyeron on November 14, 2014, 12:17:11 pm
Hello everone. I guess I did this when I was away last month. I started programming with a brand new game engine, http://snowkit.org/ (http://snowkit.org/), and started fiddling with when I came with an idea : port a old flash game I liked before and bring it to the graphical design style of today. So I took hte idea behind Square² (http://www.albinoblacksheep.com/games/squares2), brought my magical keyboard and in no time, I got to a playble and fun prototype, almost finished of a html5 game.

Made with Haxe, It can be compiled for Windows, Linux and Mac, even though I don't have the targets to compile.

Enough talking, let's play! (http://geekbros.tk/retro-actif/portfolio/square/) Just move the mouse to avoid white squares, pickup orange ones. Music courtesy of Xorus (http://xorus.nerdbox.fr/).
Title: Re: [SQUARE], minimalist html5 game
Post by: Sorunome on November 14, 2014, 04:42:51 pm
If it is html5 why do you have to compile it ???
Title: Re: [SQUARE], minimalist html5 game
Post by: Eiyeron on November 16, 2014, 12:09:18 pm
Because I wrote it in Haxe.

Haxe is a compiled languages which targets multiples platforms and this easily than porting a source code into another language. I.e. with snõwkit I can compile in the targets said previously and I can be sure that I'll have the same result on the targets. The code which interact with a specific target will be only used on that one. You can thus make wrappers to have a stable cross-system program or game.
Title: Re: [SQUARE], minimalist html5 game
Post by: Sorunome on November 16, 2014, 02:06:14 pm
eeeerm, but html5 runs in the browser.
Title: Re: [SQUARE], minimalist html5 game
Post by: Eiyeron on November 16, 2014, 02:33:13 pm
Okay, let's sau I have a source file (here a .hx)), the Haxe compiler for isntacne will compile into a JS file as it could compile into a binary executable.
Title: Re: [SQUARE], minimalist html5 game
Post by: Sorunome on November 17, 2014, 08:11:02 am
Oh, ok, so your binaries are then cross-compiled because js itself is only interpreted :P
Title: Re: [SQUARE], minimalist html5 game
Post by: Eiyeron on November 17, 2014, 08:17:34 am
Yeah, I think this is quite close than the definition. I'm not sure about cross-compiling term itself but here is the quick "What is Haxe" on the language's page.

Quote
The Haxe Programming Language
The Haxe programming language is a high level strictly typed programming language which is used by the Haxe compiler to produce cross-platform native code. The Haxe programming language is easy to learn if you are familiar already with either Java,C++,PHP,AS3 or similar object oriented languages. The Haxe programming language has been especially designed in order to adapt the various platforms native behaviors and allow efficient cross-platform development.
Title: Re: [SQUARE], minimalist html5 game
Post by: Sorunome on November 17, 2014, 08:53:50 am
Lol that definition doesn't mention js, based on that definition it's just your plain old compiled language :P
Title: Re: [SQUARE], minimalist html5 game
Post by: Eiyeron on November 17, 2014, 09:21:34 am
Oh, Stupid am I. Take JS, PHP, C++ and misc languages as intermediate for targets.