Skip to content

Per/exe #147

Merged
merged 2 commits into from
May 26, 2026
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Millions-1.1.0-installer.exe
Binary file not shown.
Binary file added Millions.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public void addAppController(final AppController appController) {
public void setGameState(final GameState gameState) {
this.gameState = gameState;

if (gameState == GameState.WORKDAY && !workMusicPlaying) {
if (!isWeekend() && !workMusicPlaying) {
audioManager.playBgMusic(Audio.WORK_THEME);
workMusicPlaying = true;
weekendMusicPlaying = false;
}

if (gameState == GameState.FREEDAY && !weekendMusicPlaying) {
if (isWeekend() && !weekendMusicPlaying) {
audioManager.playBgMusic(Audio.WEEKEND_THEME);
weekendMusicPlaying = true;
workMusicPlaying = false;
Expand All @@ -64,7 +64,7 @@ public void setGameState(final GameState gameState) {
public void startGame() {
timer = new Timer(true);
final int delay = 0;
final int period = 1000;
final int period = 10;

timer.scheduleAtFixedRate(new TimerTask() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public DesktopInitializer(
News news = new News(event.company(), event.trend());
mailController.createMessage(news.generateAuthor(), "BREAKING NEWS", news.generateNews());
}));


}

/**
Expand Down
Binary file added src/main/resources/images/app_icon.ico
Binary file not shown.