Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: sky/sdk/example/game/res/sprites.json

Issue 1224773003: Adds ActionSequence to sprites and improved explosions in game demo (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/example/game/lib/game_demo_world.dart ('k') | sky/sdk/example/game/res/sprites.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/game/res/sprites.json
diff --git a/sky/sdk/example/game/res/sprites.json b/sky/sdk/example/game/res/sprites.json
index c772674a770e0d6f22753400fb211348eb7c72ea..656227827e6189b3924bd3726a7a9da8201d2846 100644
--- a/sky/sdk/example/game/res/sprites.json
+++ b/sky/sdk/example/game/res/sprites.json
@@ -1,17 +1,8 @@
{"frames": [
{
- "filename": "arrow.png",
- "frame": {"x":2,"y":2,"w":446,"h":283},
- "rotated": false,
- "trimmed": true,
- "spriteSourceSize": {"x":30,"y":49,"w":446,"h":283},
- "sourceSize": {"w":512,"h":512},
- "pivot": {"x":0.5,"y":0.5}
-},
-{
"filename": "asteroid_big_0.nrm.png",
- "frame": {"x":2,"y":287,"w":200,"h":188},
+ "frame": {"x":2,"y":260,"w":200,"h":188},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":200,"h":188},
@@ -20,16 +11,16 @@
},
{
"filename": "asteroid_big_0.png",
- "frame": {"x":204,"y":287,"w":200,"h":188},
+ "frame": {"x":260,"y":193,"w":200,"h":167},
"rotated": false,
- "trimmed": false,
- "spriteSourceSize": {"x":0,"y":0,"w":200,"h":188},
+ "trimmed": true,
+ "spriteSourceSize": {"x":0,"y":21,"w":200,"h":167},
"sourceSize": {"w":200,"h":188},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "asteroid_big_1.nrm.png",
- "frame": {"x":545,"y":275,"w":204,"h":166},
+ "frame": {"x":451,"y":2,"w":204,"h":166},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":204,"h":166},
@@ -38,7 +29,7 @@
},
{
"filename": "asteroid_big_1.png",
- "frame": {"x":589,"y":2,"w":204,"h":166},
+ "frame": {"x":657,"y":2,"w":204,"h":166},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":204,"h":166},
@@ -47,7 +38,7 @@
},
{
"filename": "asteroid_big_2.nrm.png",
- "frame": {"x":795,"y":2,"w":194,"h":165},
+ "frame": {"x":462,"y":170,"w":194,"h":165},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":194,"h":165},
@@ -56,7 +47,7 @@
},
{
"filename": "asteroid_big_2.png",
- "frame": {"x":795,"y":169,"w":194,"h":165},
+ "frame": {"x":658,"y":170,"w":194,"h":165},
"rotated": false,
"trimmed": true,
"spriteSourceSize": {"x":0,"y":2,"w":194,"h":165},
@@ -65,7 +56,7 @@
},
{
"filename": "asteroid_small_0.nrm.png",
- "frame": {"x":646,"y":170,"w":102,"h":84},
+ "frame": {"x":204,"y":362,"w":102,"h":84},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":102,"h":84},
@@ -74,7 +65,7 @@
},
{
"filename": "asteroid_small_0.png",
- "frame": {"x":862,"y":336,"w":102,"h":84},
+ "frame": {"x":308,"y":362,"w":102,"h":84},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":102,"h":84},
@@ -83,7 +74,7 @@
},
{
"filename": "asteroid_small_1.nrm.png",
- "frame": {"x":450,"y":171,"w":96,"h":102},
+ "frame": {"x":854,"y":213,"w":96,"h":102},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":96,"h":102},
@@ -92,7 +83,7 @@
},
{
"filename": "asteroid_small_1.png",
- "frame": {"x":548,"y":171,"w":96,"h":102},
+ "frame": {"x":854,"y":317,"w":96,"h":102},
"rotated": false,
"trimmed": true,
"spriteSourceSize": {"x":0,"y":0,"w":96,"h":102},
@@ -101,7 +92,7 @@
},
{
"filename": "asteroid_small_2.nrm.png",
- "frame": {"x":751,"y":336,"w":109,"h":84},
+ "frame": {"x":740,"y":337,"w":109,"h":84},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":109,"h":84},
@@ -110,7 +101,7 @@
},
{
"filename": "asteroid_small_2.png",
- "frame": {"x":751,"y":422,"w":109,"h":84},
+ "frame": {"x":740,"y":423,"w":109,"h":84},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":109,"h":84},
@@ -118,8 +109,44 @@
"pivot": {"x":0.5,"y":0.5}
},
{
+ "filename": "explosion_flare.png",
+ "frame": {"x":863,"y":2,"w":56,"h":209},
+ "rotated": false,
+ "trimmed": true,
+ "spriteSourceSize": {"x":4,"y":0,"w":56,"h":209},
+ "sourceSize": {"w":64,"h":256},
+ "pivot": {"x":0.5,"y":0.5}
+},
+{
+ "filename": "explosion_particle.png",
+ "frame": {"x":2,"y":450,"w":36,"h":60},
+ "rotated": false,
+ "trimmed": true,
+ "spriteSourceSize": {"x":14,"y":1,"w":36,"h":60},
+ "sourceSize": {"w":64,"h":64},
+ "pivot": {"x":0.5,"y":0.5}
+},
+{
+ "filename": "explosion_ring.png",
+ "frame": {"x":2,"y":2,"w":256,"h":256},
+ "rotated": false,
+ "trimmed": false,
+ "spriteSourceSize": {"x":0,"y":0,"w":256,"h":256},
+ "sourceSize": {"w":256,"h":256},
+ "pivot": {"x":0.5,"y":0.5}
+},
+{
+ "filename": "fire_particle.png",
+ "frame": {"x":40,"y":450,"w":55,"h":55},
+ "rotated": false,
+ "trimmed": true,
+ "spriteSourceSize": {"x":4,"y":4,"w":55,"h":55},
+ "sourceSize": {"w":64,"h":64},
+ "pivot": {"x":0.5,"y":0.5}
+},
+{
"filename": "laser.png",
- "frame": {"x":751,"y":170,"w":37,"h":76},
+ "frame": {"x":204,"y":260,"w":37,"h":76},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":37,"h":76},
@@ -127,8 +154,17 @@
"pivot": {"x":0.5,"y":0.5}
},
{
+ "filename": "shield.png",
+ "frame": {"x":260,"y":2,"w":189,"h":189},
+ "rotated": false,
+ "trimmed": false,
+ "spriteSourceSize": {"x":0,"y":0,"w":189,"h":189},
+ "sourceSize": {"w":189,"h":189},
+ "pivot": {"x":0.5,"y":0.5}
+},
+{
"filename": "ship.nrm.png",
- "frame": {"x":406,"y":287,"w":137,"h":167},
+ "frame": {"x":462,"y":337,"w":137,"h":167},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":137,"h":167},
@@ -137,7 +173,7 @@
},
{
"filename": "ship.png",
- "frame": {"x":450,"y":2,"w":137,"h":167},
+ "frame": {"x":601,"y":337,"w":137,"h":167},
"rotated": false,
"trimmed": true,
"spriteSourceSize": {"x":25,"y":10,"w":137,"h":167},
@@ -145,12 +181,30 @@
"pivot": {"x":0.5,"y":0.5}
},
{
- "filename": "star.png",
- "frame": {"x":862,"y":422,"w":62,"h":68},
+ "filename": "star_0.png",
+ "frame": {"x":204,"y":448,"w":62,"h":62},
+ "rotated": false,
+ "trimmed": true,
+ "spriteSourceSize": {"x":1,"y":1,"w":62,"h":62},
+ "sourceSize": {"w":64,"h":64},
+ "pivot": {"x":0.5,"y":0.5}
+},
+{
+ "filename": "star_1.png",
+ "frame": {"x":268,"y":448,"w":62,"h":62},
+ "rotated": false,
+ "trimmed": true,
+ "spriteSourceSize": {"x":1,"y":1,"w":62,"h":62},
+ "sourceSize": {"w":64,"h":64},
+ "pivot": {"x":0.5,"y":0.5}
+},
+{
+ "filename": "star_2.png",
+ "frame": {"x":332,"y":448,"w":62,"h":62},
"rotated": false,
"trimmed": true,
- "spriteSourceSize": {"x":11,"y":5,"w":62,"h":68},
- "sourceSize": {"w":82,"h":78},
+ "spriteSourceSize": {"x":1,"y":1,"w":62,"h":62},
+ "sourceSize": {"w":64,"h":64},
"pivot": {"x":0.5,"y":0.5}
}],
"meta": {
@@ -158,8 +212,8 @@
"version": "1.0",
"image": "sprites.png",
"format": "RGBA8888",
- "size": {"w":991,"h":508},
+ "size": {"w":952,"h":512},
"scale": "1",
- "smartupdate": "$TexturePacker:SmartUpdate:b79d98a34caa23746c4e2af6dd5b8506:bfdb7027c351003110a2082bbb53a657:1eabdf11f75e3a4fe3147baf7b5be24b$"
+ "smartupdate": "$TexturePacker:SmartUpdate:342fc72defddab59bb356b48894e2931:ecb4b4fa7772ea6a35788ebf670ca27c:1eabdf11f75e3a4fe3147baf7b5be24b$"
}
}
« no previous file with comments | « sky/sdk/example/game/lib/game_demo_world.dart ('k') | sky/sdk/example/game/res/sprites.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698