Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Space Float

Another month compressed in an archive.

Source code

If you want to look at the code, here is the repository on github.

Conclusion

Well, enjoy the game and tell us your opinions. If you like, you can vote for our entry at this link.

I would thank pasto for this outstanding month.
I leave with the last devlog.

Audio

The reproduction of sound effects in Space Float is performed via the singleton enum Audio. It has the attributes float volume and boolean mute, useful to manage audio centrally.

Through the methods play(Sound) and play(Sound, float) you can play sounds, respectively at default or specific volume.

private float volume = 1.0f;
private boolean mute = false;

public void play(Sound sound) {
    play(sound, volume);
}

public void play(Sound sound, float volume) {
    if (!mute) sound.play(volume);
}

If necessary, it is possible to loop a sound effect through the method loop(Sound) and stop playback through the method stop(Sound).

public void stop(Sound sound) {
    sound.stop();
}

public void loop(Sound sound) {
    if (!mute) sound.loop();
}