|
@@ -7,8 +7,8 @@
|
|
|
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
|
-*Monkeys*,+
|
|
|
-+
|
|
|
+*Monkeys*,
|
|
|
+
|
|
|
For anyone who still ask for something like *“Scripting” with JME3*, here is it, about it at once!
|
|
|
|
|
|
We nearly reach 3.0, i’m so excited about it and want to write something for it. In this post you will have a good run from Zero to Hero with Groovy and Monkey :p
|
|
@@ -20,8 +20,10 @@ image::wiki/stll_monkey_typing.jpg[100,width="",height="",align="right"]
|
|
|
|
|
|
[IMPORTANT]
|
|
|
====
|
|
|
-emoji:
|
|
|
-*Quick question*: What this related to my other tuts emoji:confused ?+[atomixtuts]
|
|
|
+emoji: +
|
|
|
+*Quick question*: What this related to my other tuts emoji:confused ? +
|
|
|
+
|
|
|
+pass:[[atomixtuts]]
|
|
|
*Answer*: As I wrote the others, I thought I should write this first, because if no one know about Groovy, no one can understand a single line of my code emoji:confused , and it’s bad!
|
|
|
====
|
|
|
|
|
@@ -45,9 +47,6 @@ Let’s start!
|
|
|
|
|
|
== Content:
|
|
|
|
|
|
-+
|
|
|
-+
|
|
|
-+
|
|
|
|
|
|
. GET STARTED
|
|
|
. LEARN GROOVY
|
|
@@ -75,8 +74,6 @@ Let’s start!
|
|
|
.. Codegen
|
|
|
.. Groovy – Almighty God!
|
|
|
|
|
|
-'''
|
|
|
-
|
|
|
|
|
|
== GET STARTED
|
|
|
|
|
@@ -87,7 +84,6 @@ If you already know about Groovy and just curious about how to intergrate Groovy
|
|
|
====
|
|
|
|
|
|
|
|
|
-
|
|
|
=== WHAT IS GROOVY?
|
|
|
|
|
|
*Groovy*…
|
|
@@ -126,14 +122,14 @@ link:http://groovy.codehaus.org/Download?nc[http://groovy.codehaus.org/Download?
|
|
|
|
|
|
=== WHAT CAN BE SCRIPT
|
|
|
|
|
|
-_*or “TO SCRIPT OR NOT TO SCRIPT, is the PROBLEM”?*_
|
|
|
+*_or “TO SCRIPT OR NOT TO SCRIPT, is the PROBLEM”?_*
|
|
|
|
|
|
*Everything*.
|
|
|
You can do almost every thing with Groovy just like with Java.
|
|
|
|
|
|
In this post i will show example by example every aspect of game you can develop with Groovy.
|
|
|
|
|
|
-+++<u>*Pros:*</u>+++
|
|
|
+*+++<u>Pros:</u>+++*
|
|
|
|
|
|
* Scripting is very common and intuitive way to do game programing. It's common because it's shorter, cleaner, easy to read, maintain and re-use.
|
|
|
|
|
@@ -145,7 +141,8 @@ In this post i will show example by example every aspect of game you can develop
|
|
|
|
|
|
* Performance improved recently: If you worry about the performance, , in the next release, it can even get to the speed of Java, and soon to be a very competitive opponent to Scala! Read this? link:http://java.dzone.com/articles/groovy-20-performance-compared[http://java.dzone.com/articles/groovy-20-performance-compared]
|
|
|
|
|
|
-+++<u>*Cons:*</u>+++
|
|
|
+*+++<u>Cons:</u>+++*
|
|
|
+
|
|
|
It’s good, but what about the down-side?
|
|
|
|
|
|
* Can not run in Android, yet!
|
|
@@ -231,7 +228,7 @@ I means use your imagination. I give you some examples:
|
|
|
* Make a whole freaking game
|
|
|
* Even feed my dogs …
|
|
|
|
|
|
-[10 more]
|
|
|
+pass:[[10 more]]
|
|
|
|
|
|
What I want to say is *Groovy* is for smarty, master it and it save you +++<u>freaking big times</u>+++ ! Java and Groovy are a sweetest combination of programing languages I ever tried beside of dozen of others.
|
|
|
|
|
@@ -298,8 +295,9 @@ So technical problem and requirement will be dicussed first, then the Design of
|
|
|
|
|
|
==== NEED OF POWERFUL SCRIPTING SYSTEM
|
|
|
|
|
|
-iframe::https://docs.google.com/presentation/d/1Kc1ehI1qLbtEGe-6-q8NikY7Q77A6jvozDaX94BqX0g/embed?start=false&loop=false&delayms=3000[width="100%", height="850px", alt="", scroll="true",border="true",align="false"]
|
|
|
-
|
|
|
+++++
|
|
|
+<iframe src=https://docs.google.com/presentation/d/1Kc1ehI1qLbtEGe-6-q8NikY7Q77A6jvozDaX94BqX0g/embed?start=false&loop=false&delayms=3000 width="100%", height="850px", alt="", scroll="true",border="true",align="false"></iframe>
|
|
|
+++++
|
|
|
|
|
|
|
|
|
==== DESIGN & ARCHITECTURE
|