[Add]: Auto spawn, explode animation

This commit is contained in:
Mohammad_Hasan 2025-10-24 16:12:44 +04:00
parent da994469ec
commit 22669b9419
20 changed files with 6964 additions and 294 deletions

232
assets/Bullet.prefab Normal file
View File

@ -0,0 +1,232 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "Bullet",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 2
},
{
"__id__": 3
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 107,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 20.373,
"y": 168.422,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.075,
"y": 0.1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 90
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e3b2dec1-9de5-459d-8b97-1335000bc60f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "703c7fWWSFIqLoVKP56Pw8g",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"label": null,
"text": "hello",
"BulletSpeed": 500,
"_id": ""
},
{
"__type__": "cc.PolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"tag": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"points": [
{
"__type__": "cc.Vec2",
"x": -12.5,
"y": 20
},
{
"__type__": "cc.Vec2",
"x": -37.5,
"y": 15
},
{
"__type__": "cc.Vec2",
"x": -47.5,
"y": 10
},
{
"__type__": "cc.Vec2",
"x": -52.5,
"y": 5
},
{
"__type__": "cc.Vec2",
"x": -52.5,
"y": -5
},
{
"__type__": "cc.Vec2",
"x": -47.5,
"y": -10
},
{
"__type__": "cc.Vec2",
"x": -37.5,
"y": -15
},
{
"__type__": "cc.Vec2",
"x": -14.5,
"y": -20
},
{
"__type__": "cc.Vec2",
"x": 14.5,
"y": -20
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": -13
},
{
"__type__": "cc.Vec2",
"x": 43.5,
"y": -11
},
{
"__type__": "cc.Vec2",
"x": 47.5,
"y": -10
},
{
"__type__": "cc.Vec2",
"x": 53.5,
"y": -2
},
{
"__type__": "cc.Vec2",
"x": 51.5,
"y": 6
},
{
"__type__": "cc.Vec2",
"x": 39.5,
"y": 14
},
{
"__type__": "cc.Vec2",
"x": 20.5,
"y": 19
}
],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "f4xpsR+sJJ86l8C4Tf5XS9",
"sync": false
}
]

View File

@ -0,0 +1,8 @@
{
"ver": "1.2.1",
"uuid": "d6a31879-4924-4889-995f-06e86f666750",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,82 @@
// Learn TypeScript:
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property
duratrion : number = 0.5;
@property
moveAmountX : number = 100;
@property
moveAmountY : number = 50;
moveEnemy : cc.ActionInterval;
@property(cc.Prefab)
yellowBullet: cc.Prefab = null;
@property
enemyLife: number = 3
playAnimation : Boolean = true;
setMovements() {
var moveLeft = cc.moveBy(this.duratrion, cc.v2(-this.moveAmountX, -this.moveAmountY)).easing(cc.easeCircleActionInOut());
var moveRight = cc.moveBy(this.duratrion, cc.v2(this.moveAmountX, -this.moveAmountY)).easing(cc.easeCircleActionInOut());
return cc.repeatForever(cc.sequence(moveLeft, moveRight));
}
shootBullets() {
var bullet = cc.instantiate(this.yellowBullet);
bullet.setPosition(this.node.position.x, this.node.position.y - 60);
this.node.parent.addChild(bullet);
}
// LIFE-CYCLE CALLBACKS:
onLoad () {
this.moveEnemy = this.setMovements();
this.node.runAction(this.moveEnemy);
this.schedule(this.shootBullets, Math.random() * 0.5 + 0.5, cc.macro.REPEAT_FOREVER, 0);
}
onCollisionEnter(otherCollider, selfCollider) {
if(otherCollider.name === 'greenbullet<PolygonCollider>') {
this.enemyLife--;
if(this.enemyLife <= 0 && this.playAnimation) {
this.node.stopAllActions();
this.playAnimation = false;
this.node.getComponent(cc.Animation).play();
}
}
if(otherCollider.name === 'player<PolygonCollider>') {
this.node.destroy();
cc.director.loadScene('Menu');
}
}
removeExplosion() {
this.node.destroy();
this.node.parent.getComponent('Game').spawnShips();
}
start () {
}
update (dt) {
if(this.node.position.y <= -(this.node.parent.getContentSize().height)) {
this.node.destroy();
cc.director.loadScene('Menu');
}
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "1a501302-469a-4d85-947b-e2e4ab14b6dc",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -13,13 +13,21 @@ const {ccclass, property} = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Label) @property(cc.Prefab)
label: cc.Label = null; alienship1: cc.Prefab = null;
@property @property(cc.Prefab)
text: string = 'hello'; alienship2: cc.Prefab = null;
// LIFE-CYCLE CALLBACKS: @property(cc.Prefab)
alienship3: cc.Prefab = null;
spawnShips() {
var ships = [this.alienship1, this.alienship2, this.alienship3];
var ship = cc.instantiate(ships[Math.floor(Math.random() * ships.length)]);
ship.setPosition(Math.random() * 800 - 400, this.node.position.y + ship.getContentSize().height * 5);
this.node.addChild(ship);
}
onLoad () { onLoad () {
var manager = cc.director.getCollisionManager(); var manager = cc.director.getCollisionManager();

View File

@ -24,7 +24,15 @@ export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
// onLoad () {} onCollisionEnter(otherCollider, selfCollider) {
if(['alienship3<PolygonCollider>', 'alienship4<PolygonCollider>', 'alienship5<PolygonCollider>'].indexOf(otherCollider.name) !== -1) {
this.node.destroy();
}
}
onLoad () {
cc.director.preloadScene('Menu');
}
start () { start () {

View File

@ -19,6 +19,18 @@ export default class NewClass extends cc.Component {
@property(cc.Prefab) @property(cc.Prefab)
greenBullet: cc.Prefab = null; greenBullet: cc.Prefab = null;
playerLifes: number = 5;
onCollisionEnter(otherCollider, selfCollider) {
if(otherCollider.name === 'Bullet<PolygonCollider>') {
this.playerLifes--;
otherCollider.node.destroy();
if(this.playerLifes <= 0) {
this.node.destroy();
cc.director.loadScene('Menu');
}
}
}
shootBullets() { shootBullets() {
var bullet = cc.instantiate(this.greenBullet); var bullet = cc.instantiate(this.greenBullet);
bullet.setPosition(this.node.position.x, this.node.position.y + 40); bullet.setPosition(this.node.position.x, this.node.position.y + 40);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "cc2e67f0-0ceb-4da8-9632-bd91b3dcab54",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"alienship1": {
"ver": "1.0.4",
"uuid": "875bbb9c-ed50-4318-96c8-e7076ad5f265",
"rawTextureUuid": "cc2e67f0-0ceb-4da8-9632-bd91b3dcab54",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 8,
"offsetY": 3,
"trimX": 17,
"trimY": 2,
"width": 165,
"height": 154,
"rawWidth": 183,
"rawHeight": 164,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

743
assets/alienship3.prefab Normal file
View File

@ -0,0 +1,743 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "alienship3",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 2
},
{
"__id__": 3
},
{
"__id__": 4
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 6
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 95,
"height": 98
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 20.299,
"y": 291.321,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.5,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 90
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 2,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "858a9413-cff3-4cca-a59f-f366483b9b62"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "1a501MCRppNhZR74uSrFLbc",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"duratrion": 0.5,
"moveAmountX": 100,
"moveAmountY": 75,
"yellowBullet": {
"__uuid__": "d6a31879-4924-4889-995f-06e86f666750"
},
"enemyLife": 3,
"_id": ""
},
{
"__type__": "cc.PolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"tag": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"points": [
{
"__type__": "cc.Vec2",
"x": 17.5,
"y": 49
},
{
"__type__": "cc.Vec2",
"x": 17.5,
"y": 47
},
{
"__type__": "cc.Vec2",
"x": 26.5,
"y": 45
},
{
"__type__": "cc.Vec2",
"x": 24.5,
"y": 43
},
{
"__type__": "cc.Vec2",
"x": 31.5,
"y": 41
},
{
"__type__": "cc.Vec2",
"x": 26.5,
"y": 40
},
{
"__type__": "cc.Vec2",
"x": 26.5,
"y": 38
},
{
"__type__": "cc.Vec2",
"x": 31.5,
"y": 36
},
{
"__type__": "cc.Vec2",
"x": 32.5,
"y": 34
},
{
"__type__": "cc.Vec2",
"x": 30.5,
"y": 34
},
{
"__type__": "cc.Vec2",
"x": 27.5,
"y": 31
},
{
"__type__": "cc.Vec2",
"x": 27.5,
"y": 26
},
{
"__type__": "cc.Vec2",
"x": 23.5,
"y": 26
},
{
"__type__": "cc.Vec2",
"x": 17.5,
"y": 21
},
{
"__type__": "cc.Vec2",
"x": 10.5,
"y": 22
},
{
"__type__": "cc.Vec2",
"x": 10.5,
"y": 20
},
{
"__type__": "cc.Vec2",
"x": 14.5,
"y": 19
},
{
"__type__": "cc.Vec2",
"x": 11.5,
"y": 17
},
{
"__type__": "cc.Vec2",
"x": 11.5,
"y": 15
},
{
"__type__": "cc.Vec2",
"x": 14.5,
"y": 14
},
{
"__type__": "cc.Vec2",
"x": 9.5,
"y": 14
},
{
"__type__": "cc.Vec2",
"x": 3.5,
"y": 10
},
{
"__type__": "cc.Vec2",
"x": -3.5,
"y": 10
},
{
"__type__": "cc.Vec2",
"x": -3.5,
"y": 8
},
{
"__type__": "cc.Vec2",
"x": -11.5,
"y": 8
},
{
"__type__": "cc.Vec2",
"x": -10.5,
"y": 10
},
{
"__type__": "cc.Vec2",
"x": -12.5,
"y": 10
},
{
"__type__": "cc.Vec2",
"x": -22.5,
"y": 6
},
{
"__type__": "cc.Vec2",
"x": -25.5,
"y": 3
},
{
"__type__": "cc.Vec2",
"x": -40.5,
"y": 3
},
{
"__type__": "cc.Vec2",
"x": -47.5,
"y": 1
},
{
"__type__": "cc.Vec2",
"x": -46.5,
"y": -2
},
{
"__type__": "cc.Vec2",
"x": -24.5,
"y": -4
},
{
"__type__": "cc.Vec2",
"x": -20.5,
"y": -8
},
{
"__type__": "cc.Vec2",
"x": -11.5,
"y": -11
},
{
"__type__": "cc.Vec2",
"x": -10.5,
"y": -9
},
{
"__type__": "cc.Vec2",
"x": -12.5,
"y": -8
},
{
"__type__": "cc.Vec2",
"x": -7.5,
"y": -8
},
{
"__type__": "cc.Vec2",
"x": -3.5,
"y": -9
},
{
"__type__": "cc.Vec2",
"x": -2.5,
"y": -11
},
{
"__type__": "cc.Vec2",
"x": 3.5,
"y": -10
},
{
"__type__": "cc.Vec2",
"x": 3.5,
"y": -12
},
{
"__type__": "cc.Vec2",
"x": 8.5,
"y": -13
},
{
"__type__": "cc.Vec2",
"x": 10.5,
"y": -15
},
{
"__type__": "cc.Vec2",
"x": 13.5,
"y": -14
},
{
"__type__": "cc.Vec2",
"x": 11.5,
"y": -16
},
{
"__type__": "cc.Vec2",
"x": 13.5,
"y": -20
},
{
"__type__": "cc.Vec2",
"x": 11.5,
"y": -20
},
{
"__type__": "cc.Vec2",
"x": 10.5,
"y": -22
},
{
"__type__": "cc.Vec2",
"x": 18.5,
"y": -22
},
{
"__type__": "cc.Vec2",
"x": 24.5,
"y": -27
},
{
"__type__": "cc.Vec2",
"x": 28.5,
"y": -27
},
{
"__type__": "cc.Vec2",
"x": 27.5,
"y": -31
},
{
"__type__": "cc.Vec2",
"x": 30.5,
"y": -35
},
{
"__type__": "cc.Vec2",
"x": 32.5,
"y": -35
},
{
"__type__": "cc.Vec2",
"x": 26.5,
"y": -39
},
{
"__type__": "cc.Vec2",
"x": 31.5,
"y": -41
},
{
"__type__": "cc.Vec2",
"x": 24.5,
"y": -43
},
{
"__type__": "cc.Vec2",
"x": 25.5,
"y": -46
},
{
"__type__": "cc.Vec2",
"x": 19.5,
"y": -47
},
{
"__type__": "cc.Vec2",
"x": 17.5,
"y": -49
},
{
"__type__": "cc.Vec2",
"x": 35.5,
"y": -49
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": -47
},
{
"__type__": "cc.Vec2",
"x": 39.5,
"y": -46
},
{
"__type__": "cc.Vec2",
"x": 38.5,
"y": -43
},
{
"__type__": "cc.Vec2",
"x": 40.5,
"y": -39
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": -36
},
{
"__type__": "cc.Vec2",
"x": 47.5,
"y": -34
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": -33
},
{
"__type__": "cc.Vec2",
"x": 39.5,
"y": -26
},
{
"__type__": "cc.Vec2",
"x": 37.5,
"y": -26
},
{
"__type__": "cc.Vec2",
"x": 36.5,
"y": -24
},
{
"__type__": "cc.Vec2",
"x": 44.5,
"y": -17
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": -15
},
{
"__type__": "cc.Vec2",
"x": 44.5,
"y": -15
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": -12
},
{
"__type__": "cc.Vec2",
"x": 38.5,
"y": -16
},
{
"__type__": "cc.Vec2",
"x": 36.5,
"y": -16
},
{
"__type__": "cc.Vec2",
"x": 34.5,
"y": -13
},
{
"__type__": "cc.Vec2",
"x": 35.5,
"y": -11
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": -9
},
{
"__type__": "cc.Vec2",
"x": 36.5,
"y": -7
},
{
"__type__": "cc.Vec2",
"x": 36.5,
"y": -5
},
{
"__type__": "cc.Vec2",
"x": 41.5,
"y": -4
},
{
"__type__": "cc.Vec2",
"x": 41.5,
"y": -2
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": -1
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": 1
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": 1
},
{
"__type__": "cc.Vec2",
"x": 40.5,
"y": 4
},
{
"__type__": "cc.Vec2",
"x": 36.5,
"y": 4
},
{
"__type__": "cc.Vec2",
"x": 35.5,
"y": 7
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": 7
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": 9
},
{
"__type__": "cc.Vec2",
"x": 37.5,
"y": 10
},
{
"__type__": "cc.Vec2",
"x": 35.5,
"y": 11
},
{
"__type__": "cc.Vec2",
"x": 35.5,
"y": 14
},
{
"__type__": "cc.Vec2",
"x": 39.5,
"y": 15
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": 11
},
{
"__type__": "cc.Vec2",
"x": 46.5,
"y": 13
},
{
"__type__": "cc.Vec2",
"x": 43.5,
"y": 14
},
{
"__type__": "cc.Vec2",
"x": 44.5,
"y": 16
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": 17
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": 19
},
{
"__type__": "cc.Vec2",
"x": 36.5,
"y": 25
},
{
"__type__": "cc.Vec2",
"x": 39.5,
"y": 26
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": 32
},
{
"__type__": "cc.Vec2",
"x": 47.5,
"y": 34
},
{
"__type__": "cc.Vec2",
"x": 44.5,
"y": 37
},
{
"__type__": "cc.Vec2",
"x": 40.5,
"y": 38
},
{
"__type__": "cc.Vec2",
"x": 38.5,
"y": 42
},
{
"__type__": "cc.Vec2",
"x": 38.5,
"y": 44
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": 45
},
{
"__type__": "cc.Vec2",
"x": 42.5,
"y": 47
}
],
"_id": ""
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581"
},
"_clips": [
{
"__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581"
}
],
"playOnLoad": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a2v8qIaKpJ9KfekoQURhld",
"sync": false
}
]

View File

@ -0,0 +1,8 @@
{
"ver": "1.2.1",
"uuid": "30cd2ea4-f09d-4e95-ac5a-5da2f6caff02",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

1108
assets/alienship4.prefab Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
{
"ver": "1.2.1",
"uuid": "ae1edc08-8943-4d97-9dc5-cafe25f7c26f",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

1143
assets/alienship5.prefab Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
{
"ver": "1.2.1",
"uuid": "62c4d241-de53-40eb-bdb5-4911b2509030",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

86
assets/explosion.anim Normal file
View File

@ -0,0 +1,86 @@
{
"__type__": "cc.AnimationClip",
"_name": "explosion",
"_objFlags": 0,
"_native": "",
"_duration": 0.6833333333333333,
"sample": 60,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "272e7776-a643-43f8-add8-764c5a2f407f"
}
},
{
"frame": 0.08333333333333333,
"value": {
"__uuid__": "659d2d21-a496-4367-97be-676a28431ba3"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "3642f3f5-43ca-49c8-8470-5a27370efedd"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "5949b190-dda4-4860-8d3c-30e7b567de7c"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "9611d0c9-7ba3-4088-a3d6-f8165e9a321c"
}
},
{
"frame": 0.4166666666666667,
"value": {
"__uuid__": "bc0e1999-c2dc-42df-ae10-597118fa8914"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "0c3fc7eb-274f-4c1d-8480-4814a0bafc34"
}
},
{
"frame": 0.5833333333333334,
"value": {
"__uuid__": "4c848579-85b3-47af-8a99-dc56231d1cd4"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "7b947948-8b2b-4fd7-86a5-679934e7d265"
}
}
]
}
}
},
"events": [
{
"frame": 0,
"func": "",
"params": []
},
{
"frame": 0.6666666666666666,
"func": "removeExplosion",
"params": [
""
]
}
]
}

View File

@ -0,0 +1,5 @@
{
"ver": "2.1.0",
"uuid": "e351c2ae-7a11-4a05-b5d6-e6c91d934581",
"subMetas": {}
}

View File

@ -59,8 +59,8 @@
}, },
"_scale": { "_scale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.4, "x": 0.8,
"y": 1, "y": 2,
"z": 1 "z": 1
}, },
"_eulerAngles": { "_eulerAngles": {

View File

@ -1,6 +1,6 @@
{ {
"ver": "1.2.1", "ver": "1.2.1",
"uuid": "80ebb5d6-8175-4c2a-918e-375e3bb9fcaf", "uuid": "b7521c67-e13a-4a83-affe-f86364304313",
"optimizationPolicy": "AUTO", "optimizationPolicy": "AUTO",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"readonly": false, "readonly": false,