Get The Code

Tuesday, May 31, 2011

Added Note, Detach and 12 Count Block

Added Note, Detach and 12 Count Block
Note plays a Note(Piano wave file)
Detach moves the node away based on frequency
12 Count Cycles through 12  values * frequency

Working On Adding a Note Block

Trying out a Note Block that will play A,B,C,D,E Based on the frequency

I think I will also need a divide by 2 and a -1 Block

Having some problems with the Nifty GUI Library and NullPointer Crashes.  I think its the way I am creating and destroying them.

Sunday, May 29, 2011

New Demo "Im on a quad copter"

http://www.youtube.com/watch?v=nOBL_oRYeXk
I had fun making this little quad copter
I found I have some bugs in my exporter though so I cant export it yet.

I added a Inventory "I" key screen to help me select the blocks since that are more then 10 now

I also put the first  10 on the number keys 0-9 on the keyboard
Am using the 5 key on the numpad as a on and off button for the Master Block

Changed the color of the Color Block to grey when its powered off.

Friday, May 27, 2011

Reversing Fequency is done and Possibly Switching how I Store my variables

I was thinking that I might switch to JSON for storing my script parameters.
I could possibly just switch to just a parameter map for each Block

So instead of a getter and setter for say frequency value on the blocks I would get it from a parameter map

var frequency = thisBlock.getFequency();
vs
var frequency = thisBlock.getParameter("frequency");

Thursday, May 26, 2011

Reversing The Frequency

I want to add two new blocks a constant (1) Frequency and a 2X Multiplier Frequency
I ran into a problem with my recursive function that sends the frequency to the child Nodes.

I realized that it was overriding all of the child frequencies that are set in the custom scripts

I am going to do it in reverse so that the child will look at what the parents frequency is and act accordingly
instead of the parent setting the child frequency.

Wednesday, May 25, 2011

Released Second Alpha For Testing

Released Second Alpha For Testing

Changed the way textures are used

Fixed the Build Files
Now using script.dir to tell where to find scripts instead of jaring them inside the jar file

Also now using contents of the Scripts/blocks to load the blocks

Tuesday, May 24, 2011

Magnet Block

I made a magnet block today. Not sure how I want the final one to work , but this one does a ray and looks for a block if it finds one it tries to move the master block closer to the hitBlock.

I also changed the way I get the Texture. Now I have one file that will hold all of the Textures.

Monday, May 23, 2011

ANT and console

This weekend I created my ANT build files and started looking into a console window.
 
On a personal note I bought a cast net and used it to catch bait. Was completely messy but a lot of fun. I also caught a cat fish.

Wednesday, May 18, 2011

What not to do:

I am trying to implement Client Server and am finding out that using any class that starts with
sun.org package is a bad idea.
I was getting this error

package sun.org.mozilla.javascript.internal does not exist
    [javac] import sun.org.mozilla.javascript.internal.EvaluatorException;

I just replaced it with a generic Exception and it seems to be ok.

-Greg

Sunday, May 15, 2011

Balloon Block

Working on a balloon block
when turned on will float the objects attached to it.

First Post: What, Why, How

What:
A block base game that you can script the behavior of the blocks.

Why:
To mark off one item on my bucket list and to help pay for my hobbies.

How:
By creating the core structure of the game and setting it lose on the  world to create new content.
Using JmonkeyEngine and the built in scripting capabilities of java JDK to allow users to create their own blocks.