From a4a3c1c3b95bcefa3a426d9767b3d553a86708eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Fri, 24 Oct 2014 17:25:04 +0200 Subject: [PATCH] Finished doc --- doc/classes | 6 ++++-- doc/known_bugs | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/classes b/doc/classes index 4411fa7..5d50b11 100644 --- a/doc/classes +++ b/doc/classes @@ -7,11 +7,13 @@ Thing: A base class, providing the Canvas- and Color-Mechanisms and positioning. Creature: Creatures are everything tha may attack and move (that is, players and monsters) Additional to Thing, this class provides mechanisms for moving the element by mouse or arrow-keys, collision-control to prevent overlaps, and bindings. - (*) Furthermore, every creture-object has a variable set to the associated game-object. + (*) Furthermore, every creture-object has a variable set to the id of the associated game-object, + such that one may call that one by "player[]". The following additional functions and variables are defined in jsds_crafty.js: -last_sel: contains a reference to the game-object associated to the last clicked object. +cur_sel/last_sel: contain references to game-object associated to the last and previously clicked object. + Needed for several functions like attacking, as well as for reset_bug (see below). end_init(): This function should be called as last after an adventure is loaded and initialized. Usually, when using arrow key control, crafty moves every EACH object where it is activated. end_init disables this control for each object of type "Creature", and sets a hook needed to work diff --git a/doc/known_bugs b/doc/known_bugs index 8421275..50159dd 100644 --- a/doc/known_bugs +++ b/doc/known_bugs @@ -20,3 +20,6 @@ If this happens, DON'T CLICK ANOTHER OBJECT! Open the JS-console and trigger the If you accidentily clicked ONE other object, it is still possible to get back to the old state: Manually reset_bug(), de- and refocus the window, and trigger reset_bug() once more. +=== "Mobility " === + +JSDSH does NOT work on mobile devices! \ No newline at end of file