Skip to content

Commit

Permalink
add installer and exe
Browse files Browse the repository at this point in the history
  • Loading branch information
peretr committed May 25, 2026
1 parent 1a14ad5 commit 05f727d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 05f727d

Please sign in to comment.