MKelm / mct

"Mass Control Tycoon" a GPL game for Windows, Mac and Linux
Other
5 stars 1 forks source link

Music #33

Open jackery4444 opened 10 years ago

jackery4444 commented 10 years ago

As I said in my comment on steam, music, and particularly composition, is a passion of mine and the music for the game is an area that I would like to contribute to. In my opinion the opening music for any game, in particular Sci-fi games, should grab the player's attention and hook their interest. It is the first interaction the player has with the game and it will instantly highlight the quality and finish of the game. The music we have at the moment, I feel, doesn't grab the player's attention. It is very quit and repetitive, perform for in-game music, but not for the title screen.

If you will let me I'd like to compose a more striking piece of music that I think will show the game in a better light and command the player's attention.

MKelm commented 10 years ago

Yes, it is just a first test to use in game music, I do not have much experience with that, so you are invited to join the process! And the todo for a javsscript playlist function (more or less intelligent) in combination with the current HTML5 audio element is open, if it is possible, I did not researched it yet.

Note: This issue has a relation to this wiki article https://github.com/MKelm/mct/wiki/Music

I changed the milestone to "Game alpha 1" that gives one month time for the first improvements.

If you want to start development on a music feature or music you can, I changed the issue assignment to you.

MKelm commented 10 years ago

Fame for you on Twitter https://twitter.com/mctgame (with indieDB connection) / Facebook https://www.facebook.com/mctgame

MKelm commented 10 years ago

I have added a new audio.js with more js logic* and a music status setting in game.js to enable / disable music https://github.com/mctteam/mct/commit/e402168cff38187a824e9ae9f84f9534e90574fb

*this can be extended with playlist functionality

MKelm commented 10 years ago

here is the audio effect channels handler https://github.com/mctteam/mct/commit/276d7ab82610147e5b831186de45b7c06ec35fa4 set mct.status.audio.effects.active = 1 in base/init.js to enable an effects sound test

update: a new configuration file for audio and music themes https://github.com/mctteam/mct/commit/7aa60bec8bbdf0f9436406da24d42d0f634df382

the idea for music themes is to activate different sets of music in different areas, that needs two audio objects / channels for music, to fade them if an area transition occurs. The last track and last play time of track on fadeout has to be saved, to re-start the track of the old area if a area transition to it occurs again, and so on ...

the theme definitions contains arrays with music handles to use them as playlist, no playlist logic yet

update: simple playlist logic for music themes without fading yet https://github.com/mctteam/mct/commit/44090f067db7cfc6f4bf55bb5a9c7aa25f434001

update2: transition effect for playlist items https://github.com/mctteam/mct/commit/f114991978f384d1e1f971424ad3e20c2dad6ce3

update3: click events implemented and effects demo slightly improved, enabled by default