@@ -44,6 +44,10 @@
Ladegeschwindigkeit:
{{ ship.loadingSpeed | number:'0.0-2' }} t/s
+
+ Balance:
+ {{ ship.balance | number:'0.0-2' }} Credits
+
diff --git a/src/app/components/dialog/ship-dialog/ship-dialog.component.ts b/src/app/components/dialog/ship-dialog/ship-dialog.component.ts
index d14af4a..10e9fdb 100644
--- a/src/app/components/dialog/ship-dialog/ship-dialog.component.ts
+++ b/src/app/components/dialog/ship-dialog/ship-dialog.component.ts
@@ -45,5 +45,6 @@ export class ShipDialogComponent {
sell() {
this.gameService.sellShip(this.ship);
+ this.close();
}
}
diff --git a/src/app/components/ships/buy/buy.component.html b/src/app/components/ships/buy/buy.component.html
index f8e19c6..74ee5c0 100644
--- a/src/app/components/ships/buy/buy.component.html
+++ b/src/app/components/ships/buy/buy.component.html
@@ -4,25 +4,32 @@
-
🚀 Neues Schiff: Pioneer-1
-
{{ config.desciption }}
+
+
+ Pioneer-01
+ Colony Carrier
+ Industrial Tanker
+
+
+
🚀 Neues Schiff: {{ selectedShip.name }}
+
{{ selectedShip.desciption }}
Kosten:
- {{ config.buyCost | number:'0.0-2'}} Credits
+ {{ selectedShip.buyCost | number:'0.0-2'}} Credits
Frachtraum:
- {{ config.cargoSize | number: '0.0-2'}} t
+ {{ selectedShip.cargoSize | number: '0.0-2'}} t
Max Geschwindigkeit:
- {{ config.maxSpeed | number: '0.0-2'}} km/s
+ {{ selectedShip.maxSpeed | number: '0.0-2'}} km/s
Unterhalt:
- {{ config.cost | number: '0.0-2'}} Credits
+ {{ selectedShip.cost | number: '0.0-2'}} Credits
diff --git a/src/app/components/ships/buy/buy.component.ts b/src/app/components/ships/buy/buy.component.ts
index 74d5e2a..e36e873 100644
--- a/src/app/components/ships/buy/buy.component.ts
+++ b/src/app/components/ships/buy/buy.component.ts
@@ -4,10 +4,11 @@ import { GameService } from '../../../service/game.service';
import { CdkDrag, CdkDragDrop, CdkDragHandle, CdkDropList, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';
import { Planet } from '../../../model/planet.model';
import { ShipConfig } from '../../../model/ships/ship.model';
+import { FormsModule } from '@angular/forms';
@Component({
selector: 'app-buy',
- imports: [CommonModule, CdkDropList, CdkDrag, CdkDragHandle],
+ imports: [CommonModule, CdkDropList, CdkDrag, CdkDragHandle, FormsModule],
templateUrl: './buy.component.html',
styleUrl: './buy.component.scss'
})
@@ -19,13 +20,53 @@ export class BuyComponent {
config: ShipConfig = {
name: 'Pioneer-01',
acceleration: 500,
- cargoSize: 10,
+ cargoSize: 20,
cost: 0.6,
- loadingSpeed: 25,
- maxSpeed: 500,
+ loadingSpeed: 15,
+ maxSpeed: 300,
planetRoute: [],
buyCost: 2000,
- desciption: 'Ein kleines, schnelles Schiff. Es hat wenig Platz für Ladung, lädt aber schnell und ist sehr wendig.'
+ desciption: 'Ein kleines, schnelles Schiff. Es hat wenig Platz für Ladung, lädt aber schnell und ist sehr wendig.',
+ texture: 'swift-hauler'
+ }
+
+ config2: ShipConfig = {
+ name: 'Colony Carrier',
+ acceleration: 200,
+ cargoSize: 50,
+ cost: 1.6,
+ loadingSpeed: 20,
+ maxSpeed: 200,
+ planetRoute: [],
+ buyCost: 4000,
+ desciption: 'Eine größere Version von der Pioneer-01. Der größere Frachtraum geht zu Lasten der Beschleunigung und Maximalgeschwindigkeit.',
+ texture: 'colony-carrier'
+ }
+
+ config3: ShipConfig = {
+ name: 'Industrial Tanker',
+ acceleration: 5,
+ cargoSize: 300,
+ cost: 3.8,
+ loadingSpeed: 5,
+ maxSpeed: 600,
+ planetRoute: [],
+ buyCost: 8000,
+ desciption: 'Ein großes behäbiges Schiff. Es wird durchaus schnell, beschleunigt aber sehr langsam und erreicht die Spitzengeschwindigkeit nur selten.',
+ texture: 'industrial-tanker'
+ }
+
+ selectedModel = '1';
+
+ get selectedShip(): ShipConfig {
+
+ if (this.selectedModel == '1') {
+ return this.config;
+ } else if (this.selectedModel == '3') {
+ return this.config3
+ }
+
+ return this.config2;
}
canAffordShip() {
@@ -35,7 +76,7 @@ export class BuyComponent {
buyShip() {
if (!this.canAffordShip()) return;
this.gameService.createShip({
- ...this.config,
+ ...this.selectedShip,
planetRoute: this.selectedPlanets
})
this.close();
@@ -57,4 +98,5 @@ export class BuyComponent {
);
}
}
+
}
diff --git a/src/app/components/status-bar/status-bar.component.html b/src/app/components/status-bar/status-bar.component.html
index 39fc4f1..5c95245 100644
--- a/src/app/components/status-bar/status-bar.component.html
+++ b/src/app/components/status-bar/status-bar.component.html
@@ -1,8 +1,8 @@
- Credits: {{gameService.money | number:'0.0-0'}}
+ {{gameService.money | number:'0.0-0'}} Credits
-
Schiffe
+
Route anlegen
\ No newline at end of file
diff --git a/src/app/data/planets.data.ts b/src/app/data/planets.data.ts
index 369fad2..d337026 100644
--- a/src/app/data/planets.data.ts
+++ b/src/app/data/planets.data.ts
@@ -3,97 +3,97 @@ import { PlanetInit } from "../model/planet.model";
export const PLANETCONFIGS: { x: number, y: number, texture: string, config: PlanetInit}[] = [
{
- x: 600,
- y: 800,
+ x: 900,
+ y: 950,
texture: 'terra-nova',
config: {
name: 'Terra Nova',
initialGoods: [
- { type: GoodType.Wasser, amount: 15 },
- { type: GoodType.Nahrung, amount: 8, productionBonus: 1.3 },
+ { type: GoodType.Wasser, amount: 10 },
+ { type: GoodType.Nahrung, amount: 10, productionBonus: 1.3 },
]
}
},
{
- x: 3000,
- y: 900,
+ x: 4000,
+ y: 1500,
texture: 'mechanica-prime',
config: {
name: 'Mechanica Prime',
initialGoods: [
- { type: GoodType.Wasser, amount: 120 },
- { type: GoodType.Nahrung, amount: 80 },
- { type: GoodType.Metall, amount: 50, productionBonus: 1.5 },
- { type: GoodType.Bauteile, amount: 20, productionBonus: 1.3 },
+ { type: GoodType.Wasser, amount: 10 },
+ { type: GoodType.Nahrung, amount: 10 },
+ { type: GoodType.Metall, amount: 10, productionBonus: 1.5 },
+ { type: GoodType.Bauteile, amount: 10, productionBonus: 1.3 },
{ type: GoodType.Elektronik, amount: 10 }
]
}
},
{
x: 1800,
- y: 2800,
+ y: 3800,
texture: 'aqualis',
config: {
name: 'Aqualis',
initialGoods: [
- { type: GoodType.Wasser, amount: 30, productionBonus: 2.0 },
- { type: GoodType.Nahrung, amount: 15 },
+ { type: GoodType.Wasser, amount: 200, productionBonus: 2.0 },
+ { type: GoodType.Nahrung, amount: 10 },
{ type: GoodType.Treibstoff, amount: 10 }
]
}
},
{
- x: 3900,
- y: 2500,
+ x: 4500,
+ y: 5500,
texture: 'planet',
config: {
name: 'Ferron',
initialGoods: [
- { type: GoodType.Wasser, amount: 120 },
- { type: GoodType.Nahrung, amount: 80 },
- { type: GoodType.Erz, amount: 200, productionBonus: 1.8 },
- { type: GoodType.Metall, amount: 40 },
- { type: GoodType.Treibstoff, amount: 20 }
+ { type: GoodType.Wasser, amount: 10 },
+ { type: GoodType.Nahrung, amount: 10 },
+ { type: GoodType.Erz, amount: 10, productionBonus: 1.8 },
+ { type: GoodType.Metall, amount: 10 },
+ { type: GoodType.Treibstoff, amount: 10 }
]
}
},
{
- x: 5400,
- y: 1400,
+ x: 7400,
+ y: 2400,
texture: 'novus-reach',
config: {
name: 'Novus Reach',
initialGoods: [
- { type: GoodType.Nahrung, amount: 90, productionBonus: 1.5 },
- { type: GoodType.Wasser, amount: 50 },
- { type: GoodType.Bauteile, amount: 15 }
+ { type: GoodType.Nahrung, amount: 10, productionBonus: 1.5 },
+ { type: GoodType.Wasser, amount: 10 },
+ { type: GoodType.Bauteile, amount: 10 }
]
}
}
,
{
x: 3700,
- y: 4600,
- texture: 'novus-reach',
+ y: 7600,
+ texture: 'volaris',
config: {
- name: 'Novus Reach 2',
+ name: 'Volaris',
initialGoods: [
- { type: GoodType.Nahrung, amount: 90, productionBonus: 1.5 },
- { type: GoodType.Wasser, amount: 50 },
- { type: GoodType.Bauteile, amount: 15 }
+ { type: GoodType.Nahrung, amount: 10 },
+ { type: GoodType.Wasser, amount: 10, productionBonus: 1.1 },
+ { type: GoodType.Bauteile, amount: 10 }
]
}
},
{
- x: 6000,
- y: 3600,
- texture: 'terra-nova',
+ x: 8000,
+ y: 6600,
+ texture: 'ignis-prime',
config: {
- name: 'Terra Nova 2',
+ name: 'Ignis Prime',
initialGoods: [
- { type: GoodType.Wasser, amount: 120 },
- { type: GoodType.Nahrung, amount: 80, productionBonus: 1.3 },
- { type: GoodType.Erz, amount: 100 }
+ { type: GoodType.Wasser, amount: 10 },
+ { type: GoodType.Nahrung, amount: 10 },
+ { type: GoodType.Treibstoff, amount: 10, productionBonus: 0.8 }
]
}
}
diff --git a/src/app/model/goods/good-config.ts b/src/app/model/goods/good-config.ts
index c277342..25ef79c 100644
--- a/src/app/model/goods/good-config.ts
+++ b/src/app/model/goods/good-config.ts
@@ -8,11 +8,11 @@ export interface GoodConfig {
}
export const GOODS_DATA: Record
= {
- [GoodType.Erz]: { baseProduction: 1.0, baseDemand: 0, storageLimit: 500, isRawResource: true },
+ [GoodType.Erz]: { baseProduction: 1.0, baseDemand: 0.001, storageLimit: 500, isRawResource: true },
[GoodType.Wasser]: { baseProduction: 1, baseDemand: 0.0015, storageLimit: 300, isRawResource: true },
[GoodType.Nahrung]: { baseProduction: 1, baseDemand: 0.001, storageLimit: 200, isRawResource: true },
- [GoodType.Metall]: { baseProduction: 1, baseDemand: 0, storageLimit: 300, isRawResource: false },
+ [GoodType.Metall]: { baseProduction: 1, baseDemand: 0.001, storageLimit: 300, isRawResource: false },
[GoodType.Treibstoff]: { baseProduction: 1, baseDemand: 0, storageLimit: 150, isRawResource: false },
- [GoodType.Elektronik]: { baseProduction: 1, baseDemand: 0, storageLimit: 100, isRawResource: false },
- [GoodType.Bauteile]: { baseProduction: 1, baseDemand: 0, storageLimit: 100, isRawResource: false }
+ [GoodType.Elektronik]: { baseProduction: 1, baseDemand: 0.001, storageLimit: 100, isRawResource: false },
+ [GoodType.Bauteile]: { baseProduction: 1, baseDemand: 0.001, storageLimit: 100, isRawResource: false }
};
\ No newline at end of file
diff --git a/src/app/model/planet.model.ts b/src/app/model/planet.model.ts
index ad0a405..4c6e315 100644
--- a/src/app/model/planet.model.ts
+++ b/src/app/model/planet.model.ts
@@ -11,12 +11,12 @@ export class Planet {
public image: string;
private goods: Map = new Map();
- private updateSubscription = interval(5000).subscribe(() => {this.update(5)}); // alle 5s
+ private updateSubscription = interval(1000).subscribe(() => {this.update(1)}); // alle 5s
public isGrowing: boolean = false;
private populationGrowthRate = 0.002; // Basiswachstum pro Tick (%)
private populationDeclineRate = 0.005; // Basisrückgang bei Mangel (%)
- demandSecondsBuffer = 150; // Anfrage immer mindestens 30 Sekunden überleben
+ public demandSecondsBuffer = 150; // Anfrage immer mindestens 30 Sekunden überleben
private productionLevel: Map = new Map();
private dockedShips: Ship[] = [];
@@ -60,13 +60,56 @@ export class Planet {
this.dockCapacity = 1;
}, 10000)
}
+
+ adjustPopulationDemands(good: Good) {
+ switch(good.type) {
+ case GoodType.Erz:
+ if (this.population > 250) {
+ good.demandRate = GOODS_DATA.Erz.baseDemand
+ } else {
+ good.demandRate = 0;
+ }
+ break;
+ case GoodType.Bauteile:
+ if (this.population > 500) {
+ good.demandRate = GOODS_DATA.Bauteile.baseDemand
+ } else {
+ good.demandRate = 0;
+ }
+ break;
+ case GoodType.Elektronik:
+ if (this.population > 700) {
+ good.demandRate = GOODS_DATA.Elektronik.baseDemand
+ } else {
+ good.demandRate = 0;
+ }
+ break;
+ case GoodType.Metall:
+ if (this.population > 750) {
+ good.demandRate = GOODS_DATA.Metall.baseDemand
+ } else {
+ good.demandRate = 0;
+ }
+ break;
+ case GoodType.Treibstoff:
+ if (this.population > 900) {
+ good.demandRate = GOODS_DATA.Treibstoff.baseDemand
+ } else {
+ good.demandRate = 0;
+ }
+ break;
+ }
+ }
private update(seconds: number): void {
this.goods.forEach((good: Good, key: string) => {
+
+
+ this.adjustPopulationDemands(good)
+
const lvlMultiplier = this.productionLevel.get(good.type) ?? 1;
good.amount += good.productionRate * seconds * lvlMultiplier;
- good.amount -= good.demandRate * seconds;
// Min 0
good.amount = Math.max(0, good.amount);
@@ -77,23 +120,11 @@ export class Planet {
this.updatePopulation(seconds)
+
return;
// Debug-Ausgabe (später ersetzen durch Events/Callback/Service)
- console.log(`[${this.name}] Wirtschaft aktualisiert:`);
- this.goods.forEach(good => {
- console.log(` ${good.type}: ${good.amount.toFixed(2)}`);
- });
- console.log("Angeboten:")
- for (let good of this.offeredGoods) {
- console.log(` ${good.type}: ${good.amount.toFixed(2)}`)
- }
-
- console.log("Nachgefragt:")
- for (let good of this.requestedGoods) {
- console.log(` ${good.type}: ${good.amount.toFixed(2)}`)
- }
@@ -134,9 +165,8 @@ export class Planet {
const inTransit = this.goodsInTransit.filter(g => g.type == good.type).reduce((acc, succ) => acc + succ.amount, 0);
-
+
if (demand < good.amount + inTransit) {
- console.log(`[${this.name}] Skipping request for ${good.type}: ${inTransit} in transit + ${good.amount} > ${demand}`);
continue; // Es werden genug geliefert.
}
@@ -151,19 +181,9 @@ export class Planet {
}
get offeredGoods(): TradeInstance[] {
- return this.getAllGoods().filter(g => g.productionRate && g.amount).map(g => { return { type: g.type, amount: g.amount, target: this.name }})
+ return this.getAllGoods().filter(g => g.productionRate && g.amount).map(g => { return { type: g.type, amount: g.amount - (g.demandRate * this.population * this.demandSecondsBuffer), target: this.name }}).filter(g => g.amount > 0)
}
- // request(ship: ShipUi) {
- // const offers = this.offeredGoods;
- // if (offers.length == 0) { return; }
- // const loaded = ship.loadCargo(offers[0]);
- // offers[0].amount -= loaded;
- // const reduce = this.goods.get(offers[0].type)
- // if (!reduce) { return; }
- // reduce.amount = Math.max(0, reduce.amount - loaded);
- // }
-
request(demandedGood: {type: GoodType, amount: number}) {
const offers = this.offeredGoods;
if (offers.length == 0) { return 0; }
@@ -225,14 +245,18 @@ export class Planet {
*/
private calculateNaturalDemand(seconds: number): Map {
const demand = new Map();
-
- for (const goodType in GOODS_DATA) {
- const config = GOODS_DATA[goodType as GoodType];
- if (config.baseDemand > 0) {
- demand.set(goodType as GoodType, this.population * config.baseDemand * seconds);
- }
+
+ for (let good of this.getAllGoods()) {
+ demand.set(good.type ,this.population * good.demandRate * seconds )
}
+ // for (const goodType in GOODS_DATA) {
+ // const config = GOODS_DATA[goodType as GoodType];
+ // if (config.baseDemand > 0) {
+ // demand.set(goodType as GoodType, this.population * config.baseDemand * seconds);
+ // }
+ // }
+
return demand;
}
@@ -280,9 +304,7 @@ export class Planet {
dock(ship: Ship) {
- console.log("DOCK:", ship.name)
if (!this.dockedShips.includes(ship)) {
- console.log("DOCK:", ship.name)
this.dockedShips.push(ship);
this.shipsWaitingForDocking = this.shipsWaitingForDocking.filter(s => s != ship); // aus warteschlange entfernen
}
@@ -309,6 +331,36 @@ export class Planet {
this.gameService.money -= 3000;
}
+ upgradeProduction() {
+ if (this.gameService.money < this.productionLvlUpgradeCost) { return; }
+ this.gameService.money -= this.productionLvlUpgradeCost;
+ this.getAllGoods().filter(g => g.productionRate).forEach(good => {
+ const lvl = this.productionLevel.get(good.type);
+ if (lvl) {
+ this.productionLevel.set(good.type, lvl + 1);
+ } else {
+ this.productionLevel.set(good.type, 2)
+ }
+ if (good.productionStorage) {
+ good.productionStorage = good.productionStorage * 1.5;
+ }
+
+ })
+
+
+ }
+
+ getProductionLvl(good: Good): number {
+ return this.productionLevel.get(good.type) ?? 1;
+ }
+
+ get productionLvlUpgradeCost(): number {
+ const lvls = Array.from(this.productionLevel.values());
+ lvls.push(1); // falls es leer ist
+ const lvl = Math.max(...lvls);
+ return lvl * 1000;
+ }
+
}
export interface PlanetInit {
diff --git a/src/app/model/ship.ts b/src/app/model/ship.ts
index 1e8b54f..1b16c89 100644
--- a/src/app/model/ship.ts
+++ b/src/app/model/ship.ts
@@ -1,7 +1,6 @@
import { MapScene } from "../scene/map.scene";
import { GameService } from "../service/game.service";
import { PlanetUi } from "../ui/planet.ui";
-import { TradeInstance } from "./planet.model";
import { FlightMode, Ship } from "./ships/ship.model";
export class ShipUi extends Phaser.Physics.Arcade.Sprite {
@@ -16,7 +15,7 @@ export class ShipUi extends Phaser.Physics.Arcade.Sprite {
private orbitSpeed: number = Math.PI / 25; // Eine Runde in 2 Sekunden
constructor(scene: MapScene, x: number, y: number, gameService: GameService, ship: Ship) {
- super(scene, x, y, 'ship');
+ super(scene, x, y, ship.texture);
this.gameService = gameService;
this.model = ship;
diff --git a/src/app/model/ships/ship.model.ts b/src/app/model/ships/ship.model.ts
index 7d203b9..017f731 100644
--- a/src/app/model/ships/ship.model.ts
+++ b/src/app/model/ships/ship.model.ts
@@ -14,6 +14,7 @@ export interface ShipConfig {
planetRoute: Planet[];
buyCost: number;
desciption: string;
+ texture: string;
}
export class Ship {
@@ -29,6 +30,10 @@ export class Ship {
public cost = 0.5
public buyCost = 0;
public description: string = "";
+ texture: string;
+
+ public totalCost: number = 0;
+ public totalEarnings: number = 0;
private updateInterval = interval(1000).subscribe(() => {
this.update();
@@ -44,7 +49,10 @@ export class Ship {
this.cost = config.cost;
this.buyCost = config.buyCost;
this.description = config.desciption;
+ this.texture = config.texture;
this.route = new TradeRoute(config.planetRoute)
+ this.name = config.name + ' - ' + Math.round(Math.random() * 100);
+ this.totalCost = config.buyCost;
}
@@ -80,10 +88,10 @@ export class Ship {
for (let dgood of delivering) {
const good = planet.getGood(dgood.type);
if (!good) { continue; }
- await this.removeFromCargoSpace({type: dgood.type, amount: dgood.amount, target: dgood.target}, good);
+ await this.removeFromCargoSpace(dgood, good);
}
- this.cargoSpace = this.cargoSpace.filter(c => c.amount != 0 && c.amount != undefined)
+ this.cargoSpace = this.cargoSpace.filter(c => c.amount != 0 && c.amount != undefined && c.amount > 0);
return Promise.resolve(null);
}
@@ -101,7 +109,7 @@ export class Ship {
for (let demand of demands) {
// requested amount: demand - storage
- const stored = this.cargoSpace.find(c => c.type == demand.type);
+ const stored = this.cargoSpace.find(c => c.type == demand.type && demand.target == c.target);
if (stored) { demand.amount -= stored.amount; };
demand.amount = Math.min(demand.amount, this.freeCargoSpace);
demand.amount = Math.max(demand.amount, 0)
@@ -118,18 +126,21 @@ export class Ship {
}
private async removeFromCargoSpace(cargo: TradeInstance, to: Good) {
- const steps = Math.ceil(cargo.amount)
+ const steps = Math.ceil(cargo.amount);
+ const transferPerStep = cargo.amount / steps;
for (let i = 1; i <= steps; i++) {
- const existing = this.cargoSpace.find(c => c.type == cargo.type);
- if (existing) {
- existing.amount -= (cargo.amount / steps);
- to.amount += (cargo.amount / steps);
- this.gameService.money += 5;
+ if (cargo) {
+ cargo.amount -= transferPerStep;
+ to.amount += transferPerStep;
+ this.gameService.money += 18 * transferPerStep;
+ this.totalEarnings += 18 * transferPerStep;
}
await this.waitForLoading(1)
}
+ to.amount += cargo.amount;
+ cargo.amount = 0;
return Promise.resolve(null)
}
@@ -138,7 +149,7 @@ export class Ship {
const steps = Math.ceil(cargo.amount)
for (let i = 1; i <= steps; i++) {
- const existing = this.cargoSpace.find(c => c.type == cargo.type);
+ const existing = this.cargoSpace.find(c => c.type == cargo.type && cargo.target == c.target);
if (existing) {
existing.amount += (cargo.amount / steps);
} else {
@@ -166,12 +177,17 @@ export class Ship {
update() {
this.gameService.money -= this.cost;
+ this.totalCost += this.cost;
}
sell() {
this.updateInterval.unsubscribe();
}
+
+ get balance(): number {
+ return this.totalEarnings - this.totalCost;
+ }
}
export enum FlightMode {
diff --git a/src/app/scene/map.scene.ts b/src/app/scene/map.scene.ts
index 23620c9..07c95a6 100644
--- a/src/app/scene/map.scene.ts
+++ b/src/app/scene/map.scene.ts
@@ -21,10 +21,14 @@ export class MapScene extends Phaser.Scene {
}
preload() {
- this.load.image('ship', 'sprites/ships/swift-hauler.png');
+ this.load.image('swift-hauler', 'sprites/ships/swift-hauler.png');
+ this.load.image('colony-carrier', 'sprites/ships/colony-carrier.png');
+ this.load.image('industrial-tanker', 'sprites/ships/industrial-tanker.png');
this.load.image('harbour', 'sprites/buildings/harbour.png');
this.load.image('planet', 'sprites/planets/planet-1.png');
this.load.image('terra-nova', 'sprites/planets/terra-nova.png');
+ this.load.image('volaris', 'sprites/planets/volaris.png');
+ this.load.image('ignis-prime', 'sprites/planets/ignis-prime.png');
this.load.image('mechanica-prime', 'sprites/planets/mechanica-prime.png');
this.load.image('novus-reach', 'sprites/planets/novus-reach.png');
this.load.image('aqualis', 'sprites/planets/aqualis.png');
@@ -47,7 +51,7 @@ export class MapScene extends Phaser.Scene {
for (let i = 0; i< 1000; i++) {
const x = Phaser.Math.Between(0, 10000);
const y = Phaser.Math.Between(0, 10000);
- this.add.circle(x, y, Phaser.Math.Between(1, 3), 0x88ccff)
+ this.add.circle(x, y, Phaser.Math.Between(2, 10), 0x88ccff)
}
// Beispiel: ein paar Kreise (Planeten) zeichnen
diff --git a/src/app/service/game.service.ts b/src/app/service/game.service.ts
index 957106a..44e668a 100644
--- a/src/app/service/game.service.ts
+++ b/src/app/service/game.service.ts
@@ -15,7 +15,7 @@ export class GameService {
showTutorial = true;
- public money = 12000;
+ public money = 12500;
onShipCreate: EventEmitter = new EventEmitter();
onShipDestroy: EventEmitter = new EventEmitter();