Skip to content

Commit

Permalink
使用creator1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
0990 committed Apr 15, 2019
1 parent 174fe76 commit 9e2be2a
Show file tree
Hide file tree
Showing 33 changed files with 55 additions and 29 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# 头像大乱战
cocos creator开发的对战小游戏
cocos creator开发的对战小游戏客户端<br>

![login](doc/login.png)<br>
![game](doc/game.png)<br>
使用上下左右控制键转向(或摇杆),鼠标点击发射子弹,消灭其它人,其它人可随机加入游戏

# 编译运行

先运行服务端
服务端在此:https://github.com/0990/foxuc

客户端使用cocos creator1.10打开项目,运行即可
2 changes: 1 addition & 1 deletion assets/Audio/bullet.mp3.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.1",
"ver": "2.0.0",
"uuid": "cb06c1b7-1a2d-4f84-be24-77a1c3642b80",
"downloadMode": 0,
"subMetas": {}
Expand Down
2 changes: 1 addition & 1 deletion assets/Audio/dead.mp3.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.1",
"ver": "2.0.0",
"uuid": "6645eb0c-9b8a-41d6-abf6-05c68fad8fe7",
"downloadMode": 0,
"subMetas": {}
Expand Down
1 change: 1 addition & 0 deletions assets/Prefab/Alert.prefab.meta
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ver": "1.0.0",
"uuid": "f48ce7f1-b5a4-43d2-8dea-0763a2414e41",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"subMetas": {}
}
1 change: 1 addition & 0 deletions assets/Prefab/bullet.prefab.meta
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ver": "1.0.0",
"uuid": "2f20aa99-3ec5-497f-b022-2a42aa91727e",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"subMetas": {}
}
1 change: 1 addition & 0 deletions assets/Prefab/entity.prefab.meta
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ver": "1.0.0",
"uuid": "9791d6f0-1b5e-432b-a9eb-a7f910ddd632",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"subMetas": {}
}
1 change: 1 addition & 0 deletions assets/Prefab/rankItem.prefab.meta
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ver": "1.0.0",
"uuid": "1a78043b-6c75-4903-95f3-afe2940454ab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"subMetas": {}
}
10 changes: 8 additions & 2 deletions assets/Script/GameCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ cc.Class({
clientPrediction: false,
serverReconciliation: false,
interpolation: false,
bulletClip: cc.AudioClip,
bombClip: cc.AudioClip,
bulletClip: {
type:cc.AudioClip,
default:null,
},
bombClip: {
type:cc.AudioClip,
default:null,
},
},
// use this for initialization
onLoad: function () {
Expand Down
4 changes: 2 additions & 2 deletions assets/Script/GlobalConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ window.G = {
module.exports = {
debugMode: false,
//logonHost: "ws://192.168.0.100",
logonHost: "ws://47.97.125.198",
logonHost: "ws://127.0.0.1",

logonPort: 8400,
//websocket协议
wsProtocol: "yueZhanMJ",
wsProtocol: "xujialong",
speed: 50,
}
2 changes: 1 addition & 1 deletion assets/Texture/alert/Alert.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "ddd16f04-3b1b-440e-914d-f5eb2793ada6",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/alert/cancel.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "f5054ea0-01ab-49de-92ab-09004570112d",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/alert/ok.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "883cbb0d-ebda-4e16-8038-3e404e43afc1",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/avatar.jpg.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "8783c8ff-a345-467c-a562-278f88bf636a",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/bg.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "940dfc55-00e4-4c9d-a3ea-0e878972c6a0",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/bullet.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "85ea4fae-8d52-4d4e-97f1-fb9011020a75",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/cao.jpg.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "39aa6be4-b2e6-4367-9902-a6a7eeb27e6b",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/cao.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "a94cd62f-b127-4a5c-a28b-4e30798561eb",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/default_sprite_splash.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "d33e0623-5379-4a30-9f2a-04c97a8ce4e0",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/fei.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "9908852c-10d3-469e-8805-981fbd4268ca",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/gameRankBG.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "08654dbb-56bf-40ec-a41d-3fa29be03dd1",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/green.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "70cace1c-9e2a-4d9a-8e3d-2a0e18b8ad87",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/joystick.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "cad2c2ad-dc44-4126-ba2e-42110013aa39",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/joystickBG.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "94142f02-7b5a-40ea-aa05-6aa85d5121f7",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/rankBG.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "9387aa6c-b955-460d-949a-464e06a5eb3a",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/rankTitle.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "fca5d42d-20ff-45f2-9534-0ad80cf718f9",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/red.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "8f5e157a-21bb-4a9a-86c7-a4a5ffd38c7a",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/shoot.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "b60fc61d-0869-437e-9223-edb1bbe9eed1",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/start.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "3ed9ead6-3caf-4cae-9146-4d167145672b",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/title.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "8ae16807-3c9a-443f-aa6c-d2cd502d295e",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
2 changes: 1 addition & 1 deletion assets/Texture/yellow.png.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ver": "1.0.0",
"ver": "2.0.0",
"uuid": "8875fcf3-6f5b-4d91-87cc-c26396bac2e6",
"type": "sprite",
"wrapMode": "clamp",
Expand Down
Binary file added doc/game.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion settings/builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@
"orientation": "landscape"
},
"xxteaKey": "28860d39-a818-43",
"zipCompressJs": true
"zipCompressJs": true,
"qqplay": {
"orientation": "portrait",
"REMOTE_SERVER_ROOT": ""
},
"fb-instant-games": {}
}

0 comments on commit 9e2be2a

Please sign in to comment.