summaryrefslogtreecommitdiff
path: root/src/grobot.c
AgeCommit message (Collapse)Author
2017-03-28Let the GUI process between updates!Joshua Judson Rosen
Move the GDK lock-management into the various arena action functions so that we can release the lock _before_ sleeping in the guile thread, allowing the GUI thread to update when the sleep starts rather than when the sleep ends, so that the messages actually stand a chance at remaining visible for something close to USLEEP_TIME-- rather than not showing until USLEEP_TIME has already expired. Otherwise many of the updates get lost, e.g.: (while (robot-feel "space") (robot-move 1)) ... never seems to actually spend any time with the "Robot feels ..." messages visible onscreen between the "Robot moves.." messages. Note also that this change allows the GUI to generally be much more responsive to user interaction (e.g.: scrolling, selection/copy/paste) while a robot program is running!
2017-03-28UI: show for _what_ types of things robot is smelling/feeling/lookingJoshua Judson Rosen
2017-03-28robot-move: signal DEATH only _after_ the display has been updatedJoshua Judson Rosen
This avoids weird off-by-1 errors in the GUI counters at game end.
2017-03-28robot-move: update display regardless of whether movement succeededJoshua Judson Rosen
Even if there's no movement to animate per se, we still want to be able to see the energy/shields stats decrementing as we bump into things--otherwise we might be surprised when our robots suddenly dies with our counters all still _apparently_ well above zero! Note that we're still charging only 1 hit against energy and shields per failed move *command* regardless of how many spaces the robot was attempting to go....
2017-03-28Consistently specify directions symbolicallyJoshua Judson Rosen
2009-11-18Fix issues when compiling with optimisations.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-10-14Change email address for Jim Hall, upon request.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-08-03Add Gtk interface. Using a Vte for guile input.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-05-17Upgrade license to GPLv3 or later. Bump version to 1.1.1.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-10Remove sign hack.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-09Misc cleanups and GType style conversion.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-09Corrected all copyright headers, and misc cleanups.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-08Add -Wall and -Wfatal-errors compile flags, and correct code to compile cleanly.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-01-21Reformatted src/map.c.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-01-21Reformatted src/grobot.c.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-01-21Corrected fsf address in copyright.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-01-21Imported GNU robots from CVS.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>