October 12, 2008

Playing around with gameQuery

gameQuery, a new jQuery plugin, provides functions for creating browser games. In this early stage gameQuery supports a main-loop, game area (playground), sprites with CSS animations and sounds (not tried yet).

I have played around with gameQuery and here is the result. A simple Pong clone that should work in IE6/7, Chrome and Firefox.

The current gameQuery version is 0.2.5 and so there are some points for improvement. Every sprite needs an animation and every animation needs an image even if you don’t need it. Playground is always position:absolute and it has a black border. Only little things that you can override.

found @ Ajaxian

7 Comments

  1. selim says:

    The game is great! it’s nice to see what you’ve done with my small plugin :) . I’ve never thought about having a sprite without an image associated to it ;) I will to add this possibility to the plugin as soon as I can and make the playground more customizable has well!

  2. DerFichtl says:

    You are right, a problem that usually only occur when you start to develop a game but it is very confusing when you have to find that problem.

  3. [...] ยป Playing around with gameQuery bo! hu? co. (tags: jquery games) [...]

  4. matteo says:

    Good job and thanks for sharing.

    FYI: after pressing q or a keys, most of the time my firefox thinks I’m trying to execute a search on the page and thus prevents the next keypress to reach the document. Explicitly focusing an element on the page at each keypress and/or interrupting keypress propagation are possible fixes.

    cheers

  5. DerFichtl says:

    Uhhh, thank you for that tip … i will fix that in the next days.

  6. Nate says:

    404 – NOT FOUND -
    DOESNT LOOK LIKE THE GAME IS UP ANYMORE

  7. DerFichtl says:

    game is back again …
    http://bohuco.net/testing/gamequery/pong.html

    simple nibbles keyboard controls …
    http://bohuco.net/testing/gamequery/test01.html