Skip to content

Commit

Permalink
Battle adjustments for final
Browse files Browse the repository at this point in the history
  • Loading branch information
eea88 committed Jul 18, 2024
1 parent cbeb13b commit 2a9b0f8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function playGame() {
if (frameCounter % 250 === 0) {
if (game.enemies.length < 200) {

for (let i = 0; i < 40; i++) {
for (let i = 0; i < 30; i++) {
// Create 20 basic enemies
game.enemies.push(new BasicOrc(8)); // ideally change the Enemy type here
console.log("New Enemy Wave");
Expand All @@ -222,7 +222,7 @@ function playGame() {
if (frameCounter % 250 === 0) {
if (game.enemies.length < 200) {

for (let i = 0; i < 50; i++) {
for (let i = 0; i < 20; i++) {
// Create 20 basic enemies
game.enemies.push(new BasicOrc(9)); // ideally change the Enemy type here
console.log("New Enemy Wave");
Expand All @@ -242,9 +242,9 @@ function playGame() {
else if( frameCounter <16000){
game.wave = 11;
if (frameCounter % 250 === 0) {
if (game.enemies.length < 250) {
if (game.enemies.length < 200) {

for (let i = 0; i < 50; i++) {
for (let i = 0; i < 20; i++) {
// Create 20 basic enemies
game.enemies.push(new BasicOrc(10)); // ideally change the Enemy type here
console.log("New Enemy Wave");
Expand All @@ -264,9 +264,9 @@ function playGame() {
else if( frameCounter <18000){
game.wave = 12;
if (frameCounter % 250 === 0) {
if (game.enemies.length < 300) {
if (game.enemies.length < 200) {

for (let i = 0; i < 50; i++) {
for (let i = 0; i < 20; i++) {
// Create 20 basic enemies
game.enemies.push(new BasicOrc(12)); // ideally change the Enemy type here
console.log("New Enemy Wave");
Expand All @@ -285,9 +285,9 @@ function playGame() {
else if( frameCounter <20000){
game.wave = 13;
if (frameCounter % 250 === 0) {
if (game.enemies.length < 300) {
if (game.enemies.length < 200) {

for (let i = 0; i < 50; i++) {
for (let i = 0; i < 20; i++) {
// Create 20 basic enemies
game.enemies.push(new BasicOrc(15)); // ideally change the Enemy type here
console.log("New Enemy Wave");
Expand All @@ -306,9 +306,9 @@ function playGame() {
else if( frameCounter <22000){
game.wave = 14;
if (frameCounter % 250 === 0) {
if (game.enemies.length < 300) {
if (game.enemies.length < 200) {

for (let i = 0; i < 50; i++) {
for (let i = 0; i < 20; i++) {
// Create 20 basic enemies
game.enemies.push(new BasicOrc(17)); // ideally change the Enemy type here
console.log("New Enemy Wave");
Expand Down

0 comments on commit 2a9b0f8

Please sign in to comment.