function game() { CreatePerson("player","player.rss",destroy_with_map); AttachCamera("player"); AttachInput("player"); // ... player_obstructed = IsPersonObstructed("player", GetPersonX("player"), GetPersonY("player")); direction = GetPersonDirection("player"); QueuePersonCommand("player", COMMAND_MOVE_SOUTH, true);
var player;function game() { player = new Person ("player","player.rss",destroy_with_map); player.attachCamera(); player.attachInput(); // ... player_obstructed = player.isObstructed(player.x,player.y); direction = player.getDirection(); player.queueCommand(COMMAND_MOVE_SOUTH,true);
var Actor = function(stuff, morestuff) { this.stuff = stuff this.morestuff = morestuff}Actor.prototype.getStuff = function() { return this.stuff;}