Add new assets and update image references: Introduce fingerprint kit and workstation images to the project. Update inventory CSS for improved styling and adjust image loading paths in game.js to reflect new asset locations. Comment out unused object scales in rooms.js for clarity.

This commit is contained in:
Z. Cliffe Schreuders
2025-10-10 19:08:11 +01:00
parent a010576dfd
commit ebef1bcd12
5 changed files with 9 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@@ -30,12 +30,12 @@
min-width: 60px;
height: 60px;
margin: 0 5px;
border: 1px solid rgb(111 112 135 , 0.3);
border: 1px solid rgba(255, 255, 255, 0.3);
display: flex;
justify-content: center;
align-items: center;
position: relative;
background: rgba(0, 0, 0, 0.8);
background: rgb(149 157 216 / 80%);
}
.inventory-item {

View File

@@ -56,7 +56,7 @@ export function preload() {
this.load.image('photo', 'assets/objects/picture1.png');
this.load.image('safe', 'assets/objects/safe1.png');
this.load.image('book', 'assets/objects/book1.png');
this.load.image('workstation', 'assets/objects/laptop1.png');
this.load.image('workstation', 'assets/objects/workstation.png');
this.load.image('bluetooth_scanner', 'assets/objects/bluetooth_scanner.png');
this.load.image('bluetooth', 'assets/objects/bluetooth.png');
this.load.image('tablet', 'assets/objects/tablet.png');
@@ -66,7 +66,7 @@ export function preload() {
// Load new object sprites from Tiled map tileset
// These are the key objects that appear in the new room_reception2.json
this.load.image('fingerprint_kit', 'assets/objects/fingerprint-brush-red.png');
this.load.image('fingerprint_kit', 'assets/objects/fingerprint_kit.png');
this.load.image('bin11', 'assets/objects/bin11.png');
this.load.image('bin10', 'assets/objects/bin10.png');
this.load.image('bin9', 'assets/objects/bin9.png');

View File

@@ -98,11 +98,11 @@ function boundsOverlap(rect1, rect2) {
// Define scale factors for different object types
const OBJECT_SCALES = {
'notes': 0.75,
'key': 0.75,
'phone': 1,
'tablet': 0.75,
'bluetooth_scanner': 0.7
// 'notes': 0.75,
// 'key': 0.75,
// 'phone': 1,
// 'tablet': 0.75,
// 'bluetooth_scanner': 0.7
};
// Function to create door sprites based on gameScenario connections