Commit 83945f29 by Shawn Wang

666

parent c6a417b5
fe/resource/assets/grid.jpg

453 Bytes | W: | H:

fe/resource/assets/grid.jpg

333 Bytes | W: | H:

fe/resource/assets/grid.jpg
fe/resource/assets/grid.jpg
fe/resource/assets/grid.jpg
fe/resource/assets/grid.jpg
  • 2-up
  • Swipe
  • Onion skin
{ {
"groups": [ "groups": [
{ {
"keys": "bg_jpg,egret_icon_png,description_json,control_jpg,grid_jpg,logo_jpg,mask_jpg", "keys": "bg_jpg,egret_icon_png,description_json,control_jpg,grid_jpg,logo_jpg,mask_jpg,grid_select_jpg",
"name": "preload" "name": "preload"
} }
], ],
...@@ -40,6 +40,11 @@ ...@@ -40,6 +40,11 @@
"name": "mask_jpg", "name": "mask_jpg",
"type": "image", "type": "image",
"url": "assets/mask.jpg" "url": "assets/mask.jpg"
},
{
"name": "grid_select_jpg",
"type": "image",
"url": "assets/grid_select.jpg"
} }
] ]
} }
\ No newline at end of file
...@@ -26,8 +26,8 @@ class Guy extends egret.Sprite { ...@@ -26,8 +26,8 @@ class Guy extends egret.Sprite {
this.x += this.step * delta.x this.x += this.step * delta.x
this.y += this.step * delta.y this.y += this.step * delta.y
if(this.x <= 0){ if(this.x <= 10){
this.x = 0 this.x = 10
} }
if(this.y <= 15){ if(this.y <= 15){
this.y = 15 this.y = 15
...@@ -35,8 +35,8 @@ class Guy extends egret.Sprite { ...@@ -35,8 +35,8 @@ class Guy extends egret.Sprite {
if(this.y >= 72*9 + 15){ if(this.y >= 72*9 + 15){
this.y = 72*9 + 15 this.y = 72*9 + 15
} }
if(this.x >= 72*13){ if(this.x >= 72*13 + 10){
this.x = 72*13 this.x = 72*13 + 10
} }
} }
} }
\ No newline at end of file
...@@ -24,7 +24,9 @@ class GameScene extends egret.Sprite { ...@@ -24,7 +24,9 @@ class GameScene extends egret.Sprite {
this.controller.addEventListener("position_change", this.onPositionChange, this) this.controller.addEventListener("position_change", this.onPositionChange, this)
this.map = new Map() this.map = new Map()
this.map.y = 15 this.map.y = 15
this.map.x = 10
this.me.y = 15 this.me.y = 15
this.me.x = 10
this.addChild(this.map) this.addChild(this.map)
this.addChild(this.me) this.addChild(this.me)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment