Skip to content

Commit

Permalink
12
Browse files Browse the repository at this point in the history
优化了Sprite的创建 和添加了 背景音乐
  • Loading branch information
sisiea committed Jun 23, 2015
1 parent 8de7db1 commit 604a256
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 9 deletions.
18 changes: 9 additions & 9 deletions game.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
</style>


<script src="game.min.js"></script>
</head>
Expand Down
87 changes: 87 additions & 0 deletions res/candy.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>1.png</key>
<dict>
<key>frame</key>
<string>{{2,2},{64,64}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{64,64}}</string>
<key>sourceSize</key>
<string>{64,64}</string>
</dict>
<key>2.png</key>
<dict>
<key>frame</key>
<string>{{68,2},{64,64}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{64,64}}</string>
<key>sourceSize</key>
<string>{64,64}</string>
</dict>
<key>3.png</key>
<dict>
<key>frame</key>
<string>{{134,2},{64,64}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{64,64}}</string>
<key>sourceSize</key>
<string>{64,64}</string>
</dict>
<key>4.png</key>
<dict>
<key>frame</key>
<string>{{2,68},{64,64}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{64,64}}</string>
<key>sourceSize</key>
<string>{64,64}</string>
</dict>
<key>5.png</key>
<dict>
<key>frame</key>
<string>{{68,68},{64,64}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{64,64}}</string>
<key>sourceSize</key>
<string>{64,64}</string>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>2</integer>
<key>realTextureFileName</key>
<string>candy.png</string>
<key>size</key>
<string>{256,256}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:3999cbc9ae6f64947d5da30b8e249a22$</string>
<key>textureFileName</key>
<string>candy.png</string>
</dict>
</dict>
</plist>
Binary file added res/candy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions res/ribbon.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>FailRibbon.PNG</key>
<dict>
<key>frame</key>
<string>{{2,2},{724,203}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{724,203}}</string>
<key>sourceSize</key>
<string>{724,203}</string>
</dict>
<key>SuccessRibbon.PNG</key>
<dict>
<key>frame</key>
<string>{{2,207},{750,200}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{750,200}}</string>
<key>sourceSize</key>
<string>{750,200}</string>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>2</integer>
<key>realTextureFileName</key>
<string>ribbon.png</string>
<key>size</key>
<string>{1024,512}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:b2633f30e585ee7a0ceb06fb1a582880$</string>
<key>textureFileName</key>
<string>ribbon.png</string>
</dict>
</dict>
</plist>
Binary file added res/ribbon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 604a256

Please sign in to comment.