It would have been nice been able to pause/stop and clear the console.log while debugging
tomknot
@tomknot
3
Posts
868
Profile views
0
Followers
0
Following
Posts made by tomknot
-
Console features
-
Notify via json or xml
Having the option of notifying me through some url.json would have been awesome as I could make a mobile application for getting notifications
I personally would not mind this .json being available for everyone.. maybe one could take some advantage looking at others 'notifications' but guess it would be hard automate such tasks?
-
Callbacks
Hi, I've played around with this game now, and noticed that the code snippet below does not work. The goal is to recreate the same creep (having same name and body parts):
.... if (creep.suicide() == OK) { var res = Game.spawns.Barracks.canCreateCreep(myBody, myName); console.log('res', res); if (res == OK) { Game.spawns.Barracks.createCreep(myBody, myName); } ...
The "problem" is that the creep still exists as it is killed (being killed) as I get
ERR_NAME_EXISTS
(-3) error. Wouldn't it be better have it been a callback for these kind of code? Like so...creep.suicide(function() { // on success (OK) }).error(function(response)) { // on error response = ERR_... });