Jump to content

  • Log In with Google      Sign In   
  • Create Account

Jemgine



DeyjaScript 12 : Closures

Posted by Deyja, 30 October 2011 - - - - - - · 367 views

The next step after lambda functions is obviously closures. Without closures, I couldn't write code like this.

var view = new View(world, new Rectangle(0,0,800,600));
bindKey("W", [void v] { view.panCamera(0.0, 1.0, 5.0); }, true);

Closures allow lambdas to use variables local to the function they are declared in. To implement...


DeyjaScript 11 : Enough blather; time to actually use it.

Posted by Deyja, 18 October 2011 - - - - - - · 448 views

I mentioned last time that I might start integrating this scripting language with that other thing, and I did. Nothing evolves a library faster than actually using it. First, I designed the interface I wanted scripts to see. The first thing I want to use scripts...


DeyjaScript 10 : Lambdas

Posted by Deyja, 11 October 2011 - - - - - - · 430 views

I started thinking, okay, I've written this thing. Now how can I actually use it? Wasn't I supposed to be making a mud engine? Yeah, well, I already don't want to anymore. Instead, I'm going to use DeyjaScript in this thing, http://www.gamedev.n...ony-build-demo/ . I'll use it to implement an in-game...


Gnome Colony Build Demo

Posted by Deyja, 07 October 2011 - - - - - - · 725 views

So, I think this is finally ready to show people.

Here's a screenshot I took.


Here's something someone else made.


And here is the actual thing...!



DeyjaScript 9 : Arrays and Generics

Posted by Deyja, 01 October 2011 - - - - - - · 587 views

For arrays in this language, I had two requirements. First, they had to be dynamically sized, and second, they had to be type-safe. But, when I want about trying to actually implement them, I discovered that my current implementation of the type system could handle only one or the other. I could create arrays, but like in C++, the array itself could have no...






July 2016 »

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627 28 2930
31      

Recent Comments

Recent Comments

PARTNERS