This webpage demonstrates how background music could work in a web RPG such as afar.ws.
It is created using iframes and javascript.
Note that while walking around, if the background music is new, it changes; otherwise it just carries on from "map" to "map".
Structure:
index.htm - holds the iframes
|- iframe: game
|- iframe: bgm
game.htm, woods.htm, woods2.htm, woods3.htm, city.htm - "maps"
game.mid, woods.mid, city.mid - midi files for background music
Opinions, thoughts, technical problems, bug reports?
Is this something I should develop further with means to incorporate into afar.ws or is it a bad idea?
In the context of such a game, it would of course be configurable to be turned off.
Thoughts for the future:
- use a flash app to loop the music instead of relying on whatever the user has as "default" music player. For me it's quicktime, and so does not loop automatically
- use php and user variables inside a game to allow the music to be turned on and off
- perhaps allow the user to select their own battle music as that will be prominently heard
- jukebox for people who want to pick songs on their own
http://afar.ws/musictest/
It is created using iframes and javascript.
Note that while walking around, if the background music is new, it changes; otherwise it just carries on from "map" to "map".
Structure:
index.htm - holds the iframes
|- iframe: game
|- iframe: bgm
game.htm, woods.htm, woods2.htm, woods3.htm, city.htm - "maps"
game.mid, woods.mid, city.mid - midi files for background music
Opinions, thoughts, technical problems, bug reports?
Is this something I should develop further with means to incorporate into afar.ws or is it a bad idea?
In the context of such a game, it would of course be configurable to be turned off.
Thoughts for the future:
- use a flash app to loop the music instead of relying on whatever the user has as "default" music player. For me it's quicktime, and so does not loop automatically
- use php and user variables inside a game to allow the music to be turned on and off
- perhaps allow the user to select their own battle music as that will be prominently heard
- jukebox for people who want to pick songs on their own
http://afar.ws/musictest/