Any open source tool for visual programming in Haxe?

305 views
Skip to first unread message

rraallvv

unread,
Aug 11, 2016, 9:08:43 PM8/11/16
to Haxe
Hey community!

I’m interested in any tool that allows creating a program in a visual manner rather than in a text editor.

Something like Blockly comes to mind, but in general a tool to visualize and edit some kind of abstract syntax tree and generate Haxe source code from that would do the job.

Regards.

chunbiao huang

unread,
Aug 11, 2016, 11:02:55 PM8/11/16
to haxelang

--
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.

Cristian Baluta

unread,
Aug 12, 2016, 6:21:04 AM8/12/16
to haxe...@googlegroups.com
I don't think such thing exist, even Blockly is something new. I think is overrated this kind of learning method.
--

Victor / tokiop

unread,
Aug 12, 2016, 9:03:54 AM8/12/16
to haxe...@googlegroups.com
Hey,

didn't test it, but this scratch port looks interesting :
https://github.com/openfl/scratch-openfl

Victor

Michael Apfelbeck

unread,
Aug 12, 2016, 11:41:02 AM8/12/16
to Haxe
I've used different visual programming tools as a user and I've used the Blockly library to build visual editors for domain specific languages. In my experience; when you try to use a visual tool for general purpose programming you quickly run into difficulty because the expressiveness of the editor is limited.

Visual editors work great when the scope is limited. Human Resource Machine, Final Fantasy XII and Mindrover are all fantastic examples of games that use visual editors for scope limited logic.

They don't compile down to Haxe, but if you still want a visual tool I suggest you look at Stencyl and GameMaker.

Rhody Lugo

unread,
Aug 12, 2016, 2:01:58 PM8/12/16
to haxe...@googlegroups.com
Thanks for your suggestions, 

I’m trying to develop a visual scripting tool that eventually could be used to program games targeted to HTML5, and native platforms (including iOS, and Android). I haven’t tried GameMaker nor Stencil yet because they are closed source.

I’m not sure about scratch-openfl since GPL is too hostile to closed source AppStore like applications.

The tool would be used for a game engine that supports JavaScript, Lua and C++, so Blockly could be used for JS and Lua. Also some forks of Blockly already have code generators for C to program in Arduino, and they are adding support for statically typed languages in the official Blockly repo, so languages like C++, Java and C# could be added in the future.

I guess my options could be ruled out to either adding Haxe to one of those Blockly forks with C generators, or directly adding Haxe to Blockly but using dynamic types.

You received this message because you are subscribed to a topic in the Google Groups "Haxe" group.

Michael Apfelbeck

unread,
Aug 12, 2016, 8:10:56 PM8/12/16
to Haxe
You can map Blockly blocks to Haxe structures. There's nothing preventing you from doing this it's just a matter of putting in the work to map how the language structures map to Blockly blocks and how the blocks can connect.

I don't know how familiar you already are with how programming languages are defined and parsed, but essentially you're building a grammar that maps the blocks to the language structures. It's not really very difficult, I've made Blockly programs that generate javascript and parser configurations(for work so I can't point you to them :( ).
Reply all
Reply to author
Forward
0 new messages