Quote:
04-03-03 at 11:23 PM DigitalDesktops said this in Post #388
PONG
Game Hash Offset: 5
Score Return Variable: $playerScore
HTML Code for Game:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="750" height="100">
<param name="movie" value="$vpa_gameurl?location=$vpa_bburl&gamename=$game&gamehash=$gamehash&s=$session[sessionhash]">
<param name=loop value=false>
<param name=menu value=false>
<param name=quality value=high>
<param name=bgcolor value=#000000>
<embed src="$vpa_gameurl" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="100">
</embed>
</object>
Enjoy!
|
Well, I have decided that the original game was a bit... "off"....
The AI has been tweaked to make the game more playable (the AI won't wipe the floor with you now unless it's losing, then it gets "mad" and plays better) and I have solved our mysterious "playerScore" variable problem. For some reason, the game clears the "playerScore" variable if the player wins. So I thought... "
If the playerScore would have to equal the scorelimit for the player to win, why not just grab the $scorelimit value for the score board?"
Don't use $playerScore anymore. Use $scorelimit. I am also attaching a modified copy of Pong that won't submit
anything if you lose. (If I didn't do this, you could set the scorelimit to 100 and watch the game give you points....)
So, in the Admin CP,
change the $playerScore to $scorelimit and
replace the SWF with the one I have attached. This has the AI fix, the score fix, and a couple other tweaks to make the game look better.