BlackxRam
02-15-2004, 10:00 PM
This is a simple template modification with will play a different Midi file on each page in John's V3arcade.
I made this because some flash games come without music on them and i know sometimes playing a game in this arcade with no background sound can be really annoying. So I made this so i can have a MIDI/MP3 playing in the background that sounds like it goes with the Flash Game.
People will always be able to turn it off incase they dont want to listen to the music.
So Here is the little modification:
Step 1:
First you want to look for the Midis or Mp3's you wish to play during certain games. Find the games you want to have Midi files to play and name them exactly the name of the Flash Game Name. If your game was "asteroids", name the file "asteroids" .mid or .mp3 or whatever.
Upload these files into a folder called media in your images/arcade folder in your forums directory.
Step 2: Easy Code Addition
In the arcade_play template find this line. There are 2 instances of it.
<td class="thead" colspan="2"><span class="smallfont">$thisGame[title]</span>
After that place this code:
<br><object
id="mediaPlayer"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject"
height=70>
<param name="fileName" value="$stylevar[imgdir_arcade]/media/$thisGame[title].mid">
<param name="animationatStart" value="1">
<param name="transparentatStart" value="1">
<param name="autoStart" value="1">
<param name="autoSize" value="0">
<param name="showControls" value="1">
<param name="loop" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowStatusBar" value="1">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
filename="$stylevar[imgdir_arcade]/media/$thisGame[title].mid"
src="$stylevar[imgdir_arcade]/media/$thisGame[title].mid"
name=NSPlay
showcontrols=1
showdisplay=0
showstatusbar=1
height=70>
</embed>
</object>
The first instance covers the Challenge page and the second instance covers the normal page.
The above code is set for midi files. You can easily change it or customize it to mp3 or whatever file you wish to use as long as the PATHS remain in tact.
Have fun with it.
Adam Kauth
I made this because some flash games come without music on them and i know sometimes playing a game in this arcade with no background sound can be really annoying. So I made this so i can have a MIDI/MP3 playing in the background that sounds like it goes with the Flash Game.
People will always be able to turn it off incase they dont want to listen to the music.
So Here is the little modification:
Step 1:
First you want to look for the Midis or Mp3's you wish to play during certain games. Find the games you want to have Midi files to play and name them exactly the name of the Flash Game Name. If your game was "asteroids", name the file "asteroids" .mid or .mp3 or whatever.
Upload these files into a folder called media in your images/arcade folder in your forums directory.
Step 2: Easy Code Addition
In the arcade_play template find this line. There are 2 instances of it.
<td class="thead" colspan="2"><span class="smallfont">$thisGame[title]</span>
After that place this code:
<br><object
id="mediaPlayer"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject"
height=70>
<param name="fileName" value="$stylevar[imgdir_arcade]/media/$thisGame[title].mid">
<param name="animationatStart" value="1">
<param name="transparentatStart" value="1">
<param name="autoStart" value="1">
<param name="autoSize" value="0">
<param name="showControls" value="1">
<param name="loop" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowStatusBar" value="1">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
filename="$stylevar[imgdir_arcade]/media/$thisGame[title].mid"
src="$stylevar[imgdir_arcade]/media/$thisGame[title].mid"
name=NSPlay
showcontrols=1
showdisplay=0
showstatusbar=1
height=70>
</embed>
</object>
The first instance covers the Challenge page and the second instance covers the normal page.
The above code is set for midi files. You can easily change it or customize it to mp3 or whatever file you wish to use as long as the PATHS remain in tact.
Have fun with it.
Adam Kauth