Установить Steam
войти
|
язык
简体中文 (упрощенный китайский)
繁體中文 (традиционный китайский)
日本語 (японский)
한국어 (корейский)
ไทย (тайский)
Български (болгарский)
Čeština (чешский)
Dansk (датский)
Deutsch (немецкий)
English (английский)
Español - España (испанский)
Español - Latinoamérica (латиноам. испанский)
Ελληνικά (греческий)
Français (французский)
Italiano (итальянский)
Bahasa Indonesia (индонезийский)
Magyar (венгерский)
Nederlands (нидерландский)
Norsk (норвежский)
Polski (польский)
Português (португальский)
Português-Brasil (бразильский португальский)
Română (румынский)
Suomi (финский)
Svenska (шведский)
Türkçe (турецкий)
Tiếng Việt (вьетнамский)
Українська (украинский)
Сообщить о проблеме с переводом
I'll try answer some basic things about Haxe + OpenFL and then point you to some other resources where you can learn more.
This captures what Haxe is quite well. And it it's quite a lot of things. You write Haxe, the language, using the standard the Haxe library, you compile that with Haxe, the compiler, and maybe use some platform specific stuff in the process.
In our case we write Haxe with some bits of inline C/C++ and compile that using the Haxe compiler to C++ and then use gcc, Xcode or Visual Studio depending on platform to produce the actual The Masterplan.exe (The Masterplan.app on Mac etc.).
Haxe, the language, is quite nice to write. Especially if you are coming from a Flash (ActionScript) or JavaScript background you should be almost right at home. Java and C# are not far of either. (I can also say say that we write very simple Haxe code and we don't have a single line in our codebase that looks like your the for loop in your example.)
Haxe standard library doesn't really provide anything to create window, draw graphics or play sounds. For that we use OpenFL. OpenFL provides a Flash API like API to draw, play sounds etc. In addition OpenFL also provides a more direct way access to stuff like OpenGL to draw and OpenAL to play sounds. This is what we use for The Masterplan.
We chose Haxe and OpenFL almost two years ago because we had a quite heavy JavaScript background and these technologies seemed like a good way to write cross platform games using a language and technology stack that's pretty close to what we already knew.
See http://www.openfl.org/learn/ to learn more about OpenFL or start directly with something like HaxeFlixel[haxeflixel.com]. Also http://try.haxe.org/ is pretty sweet for testing.
The above was quite informative as it wasn't clear to me what exactly Haxe was beforehand.
I have both Haxe and OpenFL installed and I'm just getting the hang of things by following a few tutorials. I really like the FlashDevelop ide too, nice and lightweight, no bloat.
What software did you use to create the graphics for the game?