WORKING STATE - PLAYTESTING

This commit is contained in:
Marcel 2024-06-04 03:47:40 +02:00
parent c8346ded11
commit e4c09b4b51
32 changed files with 95 additions and 28 deletions

BIN
assets/0003HackingStationMuhvella.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0009HackingBicola.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0009HackingStationBicola.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0010PickupBicola.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0010PickupStationBicola.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0011AfterBicola.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0011AfterStationBicola.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0012HackingStationTobione.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0012HackingTobione.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0013PickupStationTobione.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0013PickupTobione.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0014AfterTobione.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0015End.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0016WrongStation.mp3 (Stored with Git LFS)

Binary file not shown.

BIN
assets/0017WrongStation.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0018WrongStation.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0019WrongStation.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0020WrongStation.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0021WrongStation.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0022WrongStation.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0023WrongStation.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0024PutMeBack.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0025PutMeBack.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0026PutMeBack.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0027PutMeBack.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/0028PutMeBack.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

30
copyFiles.py Normal file
View file

@ -0,0 +1,30 @@
import os
import shutil
def copy_files_to_root(src_folder, dest_root):
# Check if source folder exists
if not os.path.exists(src_folder):
print(f"Source folder '{src_folder}' does not exist.")
return
# Create destination root folder if it does not exist
if not os.path.exists(dest_root):
os.makedirs(dest_root)
# Copy files
for item in os.listdir(src_folder):
src_path = os.path.join(src_folder, item)
dest_path = os.path.join(dest_root, item)
if os.path.isfile(src_path):
shutil.copy2(src_path, dest_path)
print(f"Copied '{src_path}' to '{dest_path}'")
else:
print(f"Skipped '{src_path}' as it is not a file")
# Define source folder and destination root
src_folder = 'C:/Users/Marcel/CLionProjects/BuenzliIO/assets'
dest_root = 'D:/'
# Execute the copy function
copy_files_to_root(src_folder, dest_root)

View file

@ -157,7 +157,7 @@ void loop(void)
void setup(void)
{
randomSeed(analogRead(0));
Serial.begin(9600);
// Serial.println(ON_MAIN_STATION.getEntryAtIndex(0)->isAudio);
@ -182,5 +182,5 @@ void setup(void)
}
}
dfPlayer.volume(15);
dfPlayer.volume(25);
}

View file

@ -10,7 +10,7 @@
#define HACKING_STATION_MAGIE 6
#define PICKUP_STATION_MAGIE 7
#define AFTER_MAGIE 17 // weird hack because file 8 does not seem to work...
#define AFTER_MAGIE 16 // weird hack because file 8 does not seem to work...
#define HACKING_STATION_BICOLA 9
#define PICKUP_STATION_BICOLA 10
@ -21,4 +21,7 @@
#define AFTER_TOBIONE 14
#define END 15
#define WRONG_STATION 16
#define WRONG_STATION_START 17
#define WRONG_STATION_END 23
#define PUT_ME_BACK_START 24
#define PUT_ME_BACK_END 28

View file

@ -166,7 +166,7 @@ String IncorrectStation::updateDisplay(const Context& context)
void IncorrectStation::activated(const Context context)
{
context.dfPlayer->play(WRONG_STATION);
context.dfPlayer->play(random(WRONG_STATION_START, WRONG_STATION_END + 1));
}
@ -275,8 +275,9 @@ String Complain::updateDisplay(const Context& context)
return COMPLAIN_TEXT;
}
void Complain::activated(Context context)
void Complain::activated(const Context context)
{
context.dfPlayer->play(random(PUT_ME_BACK_START, PUT_ME_BACK_END + 1));
}