[Scummvm-devel] [Scummvm-cvs-logs] SF.net SVN: scummvm:[42841] scummvm/branches/gsoc2009-draci/engines/draci/ game.cpp

Robert Špalek rspalek at gmail.com
Mon Jul 27 14:59:00 CEST 2009


hi Denis,

On Mon, Jul 27, 2009 at 7:34 AM, <dkasak13 at users.sourceforge.net> wrote:

> Revision: 42841
>          http://scummvm.svn.sourceforge.net/scummvm/?rev=42841&view=rev
> Author:   dkasak13
> Date:     2009-07-27 05:34:22 +0000 (Mon, 27 Jul 2009)
>
> Log Message:
> -----------
> Enabled running of look/use scripts on left/right mouse button press for
> testing (Warning: unstable in some places).
>

this is AWESOME!  I was looking forward to this stage, when it starts
interacting!

a few obvious comments, but I cannot help to say them:
- position the text on the objects instead of [0,0]
- use a proper color instead of the same one, which looks different in each
palette
- implement more GPL commands to make the game really interactive.  for
example, one very easy one should be changing the shape of the game cursor.
it should nicely change to left/right arrow when being on the edge of the
location
- evaluate mathematical expression on whether the object can be used before
running the program.  this tells you if you should use the normal game
cursor or its variant with red borders (= signal that the user can perform
the action)


> +                       // HACK: Test running look and use scripts
> +                       if (_vm->_mouse->lButtonPressed()) {
> +                               _vm->_script->run(obj->_program,
> obj->_look);
> +                               _vm->_mouse->lButtonSet(false);
> +                       }
> +
> +                       if (_vm->_mouse->rButtonPressed()) {
> +                               _vm->_script->run(obj->_program,
> obj->_use);
> +                               _vm->_mouse->rButtonSet(false);
> +                       }
>
> not sure if this has something to do with my architecture, but clicks don't
work on my iMac.

-- 
Robert Špalek <rspalek at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20090727/9e0be1e7/attachment.html>


More information about the Scummvm-devel mailing list