Compare commits

...

2 Commits

Author SHA1 Message Date
Ader Alisma 01
3ae0de86ba Changed creepling to be an array 2025-07-13 18:28:34 -04:00
Ader Alisma 01
eef09242a8 Main mechanic done 2025-07-13 18:13:05 -04:00
7 changed files with 1480 additions and 1 deletions

View File

@ -248,7 +248,7 @@ MonoBehaviour:
_renderLayer: Default
_position: {x: 0, y: 0}
_scale: {x: 1, y: 1}
_waveConfig: {fileID: 11400000, guid: d8140ae36f1b7fd4fb1a57ab3dc69de4, type: 2}
_waveConfig: {fileID: 11400000, guid: 660102a48ad7d2244ab404cfc1f6a573, type: 2}
_startPopulation: 10
_startFood: 40
_startWood: 0

View File

@ -0,0 +1,23 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eb0795e326609f0499365f5b65c2b5cd, type: 3}
m_Name: WaveConfig_Creeper_Test
m_EditorClassIdentifier:
_constantSpawn:
- _enemy: {fileID: 80204295746100150, guid: 1be769d6ef642314b8846bed35e7297c, type: 3}
_count: 20
_nestedGroupSpawn:
- groupSpawn:
- _enemy: {fileID: 80204295746100150, guid: 2def22091e1ff0d43abe2797c18a2fda, type: 3}
_count: 1
triggerTime: 0.5
_gameDuration: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 660102a48ad7d2244ab404cfc1f6a573
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2def22091e1ff0d43abe2797c18a2fda
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Creeper : Opponent
{
[SerializeField]
private GameObject[] creeplings;
public override void Death()
{
for (int i = 0; i < creeplings.Length; i++)
{
float randomX = Random.Range(0f, 2f) + transform.position.x;
Vector3 spawnPosition = new Vector3(randomX, transform.position.y, transform.position.z);
GameObject creeplingsInstance = Instantiate(creeplings[i], spawnPosition, Quaternion.identity);
}
base.Death();
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f89e6964a347fce48a22f42c1c23416c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: