15.05.2008, 19:15, written by Mario Donick
Optimizing the Mouse Interface
Today I optimized the
mouse interface to allow movement along different distances.Until today, one click always meant "move one tile in the direction I clicked".Now, the distance between the @ in the center of the screen (i.e. the player's position) and the mouse position at the moment of the click is used to calculate the number of tiles that are between the @ and the tile the player clicked on.If the option "MoveOneTilePerClick" in lambdarogue.cfg is set to "= False", the click will move the player to exactly the tile he clicked.So now, less clicks than before are needed to move over long distances. Actually, this is some kind of running implementation most roguelikes know.To move only one tile, the player has just to click directly next to the @.
Earlier / Later / Permanent Link
powered by d.elog blogging software v0.6 / 17.04.2009
© Mario Donick 2005–2009.
d.elog contains Xinha, a free WYSIWYG textarea editor.