Skip to content

Commit

Permalink
Merge pull request #147 from einaskoi/per/exe
Browse files Browse the repository at this point in the history
Per/exe
  • Loading branch information
einaskoi authored May 26, 2026
2 parents 1a14ad5 + 71ae696 commit 53df9e9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
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.

0 comments on commit 53df9e9

Please sign in to comment.