This file contains hidden or 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
| //? https://github.com/B2tGame/onmo-games-phaser/pull/4/files | |
| (this.mouseUpCallback = null), | |
| (this.mouseOutCallback = null), | |
| (this.mouseOverCallback = null), | |
| (this.capture = !1), | |
| (this.active = !1), | |
| (this.enabled = !0), | |
| @@ -10805,9 +10802,6 @@ var momentData = JSON.parse(onmoHtmlGame.momentDatas); |
This file contains hidden or 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
| (this.mouseUpCallback = null), | |
| (this.mouseOutCallback = null), | |
| (this.mouseOverCallback = null), | |
| (this.touchStartCallback = null), | |
| (this.touchMoveCallback = null), | |
| (this.touchEndCallback = null), | |
| (this.capture = !1), | |
| (this.active = !1), | |
| (this.enabled = !0), | |
| @@ -10805,9 +10802,6 @@ var momentData = JSON.parse(onmoHtmlGame.momentDatas); |
This file contains hidden or 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
| import OutlineSpriteFX from './OutlineSpriteFx'; | |
| export default class MyScene extends Phaser.Scene { | |
| create() { | |
| const pipeline:OutlineSpriteFX = this.renderer.pipelines.add('OutlineSpriteFX', new OutlineSpriteFX(this.game)); | |
| pipeline.thickness = 3; | |
| pipeline.color.setFromRGB(Phaser.Display.Color.IntegerToRGB(0xff3333)); | |
| const sprite = this.add.sprite(100, 100, 'someSprite'); |
This file contains hidden or 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
| contractInput { | |
| coordinateX: '104', | |
| coordinateY: '104', | |
| parcelId: 'C-104-104-V', | |
| size: 2, | |
| boost: [ 0, 0, 0, 0 ], | |
| parcelAddress: 'twinkle-others-smol', | |
| district: 43 | |
| } | |
| /Users/shohan4556/Desktop/Upwork_Projects/aavegotchi-realm-service-consumers/node_modules/@ethersproject/logger/lib/index.js:199 |
This file contains hidden or 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
| import { SceneObject } from "types"; | |
| const DEFAULT_ZOOM = 0.01; | |
| const scrollMap = (scene: SceneObject, pointer: Phaser.Input.Pointer, zoom: number) => { | |
| zoom = Phaser.Math.Clamp(Phaser.Math.RoundTo(zoom, -3), 0.01, 1); | |
| if (scene.globalPosition) { | |
| scene.cameras.main.centerOn(scene.globalPosition.x, scene.globalPosition.y); | |
| scene.cameras.main.zoomTo(zoom, 0); |
This file contains hidden or 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
| // necessary modules | |
| const { | |
| Engine, | |
| Render, | |
| World, | |
| Body, | |
| Bodies, | |
| Mouse, | |
| MouseConstraint, | |
| Constraint, |
This file contains hidden or 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 ONMOInit() { | |
| var isUnload = false; | |
| onmoHtmlGame.init({ | |
| unload: function () { | |
| console.log("#unload"); | |
| game.destroy(); | |
| onmoHtmlGame.sendEvent(OnmoHtmlGame.EVENTS.UNLOADED); | |
| isUnload = true; |
This file contains hidden or 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
| //box3 | |
| const box3 = this.add.container(startX / 2 - 100, 350).setDepth(20); | |
| square = this.add.sprite(0, 0, "square").setOrigin(0.5).setScale(0.5); | |
| number = this.add.text(40, -50, 3, { color: 0xffff }); | |
| item = this.add.image(0, 0, this.levelData[index].boxs[0]).setOrigin(0.5); | |
| box3.add(square); | |
| box3.add(number); | |
| box3.add(item); | |
| box3.setSize(128, 128); |
This file contains hidden or 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
| // save score for the first time | |
| if (localStorage.hasOwnProperty("score") == false) { | |
| localStorage.setItem("score", this.SCORE); | |
| } else { | |
| const savedScore = localStorage.getItem("score"); | |
| if (this.SCORE > savedScore) { | |
| localStorage.setItem("score", this.SCORE); | |
| } | |
| } |
This file contains hidden or 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
| { | |
| "tilesets": [ | |
| { | |
| "columns": 1, | |
| "firstgid": 1, | |
| "image": "tile64x64.png", | |
| "imageheight": 64, | |
| "imagewidth": 64, | |
| "margin": 0, | |
| "name": "tile64x64", |