Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

Sample build settings #1047

Closed JohnBlackburne closed 5 years ago

JohnBlackburne commented 5 years ago

Just trying building the sample in /samples/demo_web and I had to change two things to get it to work

Change the dependencies line to

    classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.4.0'

Change one of the additionalCompilerOptions to

   '-target-player=19.0',

Obviously Starling needs Flash 19 or later now. The dependencies line is from the gradlefx documentation.

JohnBlackburne commented 5 years ago

Also to get it to build a version that works I needed to change one more of the additionalCompilerOptions:

    '-swf-version=30'

That’s the version matching Flash Player 19

PrimaryFeather commented 5 years ago

You're totally right, thanks a lot for the heads-up! I totally forgot that there even was a gradle script available for the samples. :wink: Now it's working again!