Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 56 bytes modified
parent
24c1664ce5
commit
36f18415e9
|
@ -34,7 +34,6 @@ this.gridMaterial = GameLib.EntityManager.Instance.findComponentById('xpkbcvson9
|
||||||
|
|
||||||
this.materialBaconDisappearing = GameLib.EntityManager.Instance.findComponentById('40byzi2uxm');
|
this.materialBaconDisappearing = GameLib.EntityManager.Instance.findComponentById('40byzi2uxm');
|
||||||
|
|
||||||
|
|
||||||
this.animation = GameLib.EntityManager.Instance.findComponentById('tnlwgvf12x');
|
this.animation = GameLib.EntityManager.Instance.findComponentById('tnlwgvf12x');
|
||||||
this.canvas = GameLib.EntityManager.Instance.findComponentById('85d0jk6dhx');
|
this.canvas = GameLib.EntityManager.Instance.findComponentById('85d0jk6dhx');
|
||||||
this.burnLight = GameLib.EntityManager.Instance.findComponentById('yy6ef7ur7m');
|
this.burnLight = GameLib.EntityManager.Instance.findComponentById('yy6ef7ur7m');
|
||||||
|
@ -49,6 +48,15 @@ this.scoreTexture = GameLib.EntityManager.Instance.findComponentById('kva68t4dm8
|
||||||
|
|
||||||
this.animationSystems = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.SYSTEM_ANIMATION);
|
this.animationSystems = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.SYSTEM_ANIMATION);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initial Game Settings
|
||||||
|
* @type {number}
|
||||||
|
*/
|
||||||
|
this.score = 0;
|
||||||
|
this.level = 1;
|
||||||
|
this.rows = 0;
|
||||||
|
this.speed = 1;
|
||||||
|
|
||||||
GameLib.CustomCode.TETRIS_BLOCK_I = 0;
|
GameLib.CustomCode.TETRIS_BLOCK_I = 0;
|
||||||
GameLib.CustomCode.TETRIS_BLOCK_L = 1;
|
GameLib.CustomCode.TETRIS_BLOCK_L = 1;
|
||||||
GameLib.CustomCode.TETRIS_BLOCK_L2 = 2;
|
GameLib.CustomCode.TETRIS_BLOCK_L2 = 2;
|
||||||
|
@ -576,9 +584,6 @@ GameLib.CustomCode.prototype.startAnimations = function () {
|
||||||
|
|
||||||
GameLib.CustomCode.prototype.drawGrid = function () {
|
GameLib.CustomCode.prototype.drawGrid = function () {
|
||||||
|
|
||||||
this.gridMaterial.color.fromHex('#a79f99');
|
|
||||||
this.gridMaterial.color.updateInstance('color');
|
|
||||||
|
|
||||||
var geometry = new THREE.BufferGeometry();
|
var geometry = new THREE.BufferGeometry();
|
||||||
|
|
||||||
var points = [];
|
var points = [];
|
||||||
|
@ -1412,6 +1417,7 @@ GameLib.Event.Emit(
|
||||||
this.createTile('tile_center')
|
this.createTile('tile_center')
|
||||||
|
|
||||||
this.drawGrid();
|
this.drawGrid();
|
||||||
|
this.drawStatus();
|
||||||
|
|
||||||
GameLib.Event.Emit(GameLib.Event.GAME_LOADED);
|
GameLib.Event.Emit(GameLib.Event.GAME_LOADED);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue