This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var generate_uuid = true; | |
var fname_uuid = "uuid.ini"; | |
ini_open(fname_uuid); | |
global.uuid = ini_read_string("generated", "uuid", "unknown"); | |
ini_close(); | |
if (global.uuid == noone or global.uuid == "unknown") | |
{ | |
show_debug_message("no good: " + global.uuid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addSprite(name, x, y) | |
{ | |
var sprite = game.add.sprite(0, 0, name); | |
// centered | |
sprite.pivot.x = sprite.width * 0.5; | |
sprite.pivot.y = sprite.height * 0.5; | |
sprite.position.x = x; | |
sprite.position.y = y; |