Monday, September 22, 2008

A excelllent turn of events

The Dev has finished rewriting the keyboard event system and it seems to work as expected, that is pressing key Ⅹ for any amount of time results is one key-press event, one key-hold event per frame, and one key-releases event, Holding more then one key produces events for each key independently . The key state graph now looks like this: v________^, if you think that the key state graph should look different, or that the behavior when multiple keys are held should be different, then, by all means, state your opinion in a comment.

strout("this = dev");

assert(quality(LWJGL) == Software::HIGH_QUALITY);

Please note that more testing is still needed before the Dev can be sure that the keyboard event system does work as it should.


{The pun sub-system is still under development, please report any malfunctions}

Sunday, September 14, 2008

Eventfull day

After a long hiatis, the Dev got back to work adding features. To be specific: he added the beginnings of a event system, which means that you can now make a object move around with the arrow keys, plus it is now possible for a object to draw itself every frame just by overriding the draw()
method inherited from GFObject.

However, there have been some problems: insofar as I could understand the Dev's direct communication they seem to lie with the fact the behavior of Java key press/release events are platform dependent. This seems to have greatly offended the Dev, who had placed great faith in Java's platform independence. I, however was surprised he did not know that key press/release events are platform dependent, as it is stated plainly in the online documentation(The online Java-docs where one of the first things BBJAM-parse processed).

The Dev has told me that he has found a Java library which may solve the key event problems, it is called LWJGL, and may provide a platform-independent keyboard interface, however the Dev has been wrong before (see this post).

Tuesday, September 9, 2008

Error in update()

A small bug in my time checking code caused me to think that I was not to scheduled to post till 2048. But all is well now, see my next post for a big update.