Beruflich Dokumente
Kultur Dokumente
At first you should rewrite common flambe embedder code. Unfortunately, this part is not automated by Haxe:)
1 2 3 4 5 6 7 8 9 < s c r i p tt y p e = " t e x t / j a v a s c r i p t "s r c = " f l a m b e . j s " > < / s c r i p t > < s c r i p tt y p e = " t e x t / j a v a s c r i p t "s r c = " f g l . j s " > < / s c r i p t > < s c r i p tt y p e = " t e x t / j a v a s c r i p t " > f g l . c r e a t e ( d o c u m e n t . g e t E l e m e n t B y I d ( " c o n t e n t " ) ," c o m . j e t l a b . g e m c r u s h " ) ; f g l . o n R e a d y ( f u n c t i o n ( ) { f l a m b e . e m b e d ( [ " t a r g e t s / m a i n h t m l . j s " ] ," c o n t e n t " ) ; } ) ; < / s c r i p t >
Do not forget to put fgl.js file in your project folder. To create a "More Games" button on your game title - use example below. Add to Title.hx:
1 2 3 # i ff g l p r i v a t ev a r_ m o r e g a m e s _ b u t t o n : E n t i t y ; # e n d
1/3
https://blog.jetlab-games.com/
3/21/2014
4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4
To enable all code defined inside (#if fgl) blocks you should set this option in project file (flambe.yaml) like this:
1 2 3 #A d d i t i o n a lf l a g st op a s st ot h eH a x ec o m p i l e r #h a x e _ f l a g s :l i bn a p eDf o o b a r h a x e _ f l a g s :Df g l
or you can set -D fgl option directly to compiler in command line at a build time. You can check results of this guide here: http://blog.jetlab-games.com/gemcrush/index-fgl.html Posted in gamedev and tagged Flambe, Haxe on December 21, 2013 [https://blog.jetlabgames.com/2013/12/fgl-api-and-haxe/] by jetlab.
3/21/2014
2 #h a x e _ f l a g s :l i bn a p eDf o o b a r 3 h a x e _ f l a g s :Df l a m b e _ d i s a b l e _ w e b g l
Posted in gamedev and tagged Flambe, Haxe on December 20, 2013 [https://blog.jetlabgames.com/2013/12/flambe-disable-webgl/] by jetlab.
https://blog.jetlab-games.com/
3/3