let spr_w = 48
let spr_h = 48
let spr_count_x = -999
let spr_count_y = -999
spr_count_x = 1
spr_count_y = 0
var spr1 = new Sprite(ImageManager.loadCharacter('Actor1'))
SceneManager._scene.addChild(spr1)
spr1.texture.frame = new Rectangle(spr_w*spr_count_x, spr_h*spr_count_y, spr_w, spr_h)
spr1.x = 20
spr1.y = 20
spr_count_x = 7
spr_count_y = 0
var spr2 = new Sprite(ImageManager.loadCharacter('Actor1'))
SceneManager._scene.addChild(spr2)
spr2.texture.frame = new Rectangle(spr_w*spr_count_x, spr_h*spr_count_y, spr_w, spr_h)
spr2.x = 20
spr2.y = 68
spr_count_x = 1
spr_count_y = 4
var spr3 = new Sprite(ImageManager.loadCharacter('Actor1'))
SceneManager._scene.addChild(spr3)
spr3.texture.frame = new Rectangle(spr_w*spr_count_x, spr_h*spr_count_y, spr_w, spr_h)
spr3.x = 118
spr3.y = 20
spr_count_x = 4
spr_count_y = 4
var spr4 = new Sprite(ImageManager.loadCharacter('Actor1'))
SceneManager._scene.addChild(spr4)
spr4.texture.frame = new Rectangle(spr_w*spr_count_x, spr_h*spr_count_y, spr_w, spr_h)
spr4.x = 118
spr4.y = 68
$gameScreen.showPicture(10, "_Notes_CRP", 0, 20, 10, 40, 40, 255, 0)
$gameScreen.showPicture(11, "_Beer_CRP", 0, 65, 30, 50, 30, 255, 0)
$gameScreen.showPicture(12, "_Beer_CRP", 0, 65, 78, 50, 30, 255, 0)
$gameScreen.showPicture(13, "_Beer_CRP", 0, 165, 30, 50, 30, 255, 0)
$gameScreen.showPicture(14, "_Beer_CRP", 0, 165, 78, 50, 30, 255, 0)
//The code above is a sample for tinkering.
//The actual production code, naturally, consists of classes, loops and dictionaries.
//And launched from the backend :)