Ok, if you have been following me on Twitter, you know I've been working on a project involving BlazeDS, Flex, AIR, and ColdFusion. The game idea I had was pretty complex, so I thought it would make sense to start with a simple game, and focus on the technologies first. So with that in mind, I'm proud to announce the release of GameOne. Yes, I know, great name, eh? Well, I don't care how creative the name is, I'm just happy it works (mostly).
The game is basically a stock simulator. The stocks are fake and update every few minutes. When you buy/sell stocks, it is announced to all active players. You can chat as well. So for example:

So, it's late. I'm tired. And there is a lot I want to talk about this game, especially in regards to messaging and LCDS/BlazeDS+CF. (Seriously, why aren't people using it more?) But for now I figured I'd let folks download and play with it. I'll post the full source code (client+server side) later in the week. Enjoy. Oh, and for those of you who are competitive, you can view a dump of all users sorted by funds here: http://gameone.coldfusionjedi.com/


Comment 1 written by Dale Fraser on 23 April 2009, at 12:22 AM
Comment 2 written by Andrew Scott on 23 April 2009, at 2:04 AM
And yeah love the UI have to say its the best;-)
Comment 3 written by Hudu on 23 April 2009, at 2:49 AM
http://www.tutobook.com
Comment 4 written by Raymond Camden on 23 April 2009, at 6:22 AM
@Andrew: Um, consider it a ranking of liquid wealth then (I think that's what they call it ;).
Comment 5 written by Andrew Scott on 23 April 2009, at 6:40 AM
Btw I did sent you a tweet reply, but as you don't follow me you might not have seen it. I haven't tested your install badge on the blog post, but I was very annoyed that the check for Air was ignored and it downloaded it anyway. Just an FYI that this is a bug that you just may wish to fix, if you haven't already.
I might be wrong, liquid assets from my recall is your total assets on paper. Not 100% sure my meory serves me right there though.
Comment 6 written by Raymond Camden on 23 April 2009, at 6:48 AM
Yeah, you are probably right on liquid. Meh, what do I know. ;) To be honest, this entire game was a learning exercise so I can work on the -real- game I have in mind.
Comment 7 written by Andrew Scott on 23 April 2009, at 7:04 AM
Comment 8 written by JoshuaSiok on 23 April 2009, at 8:00 AM
Comment 9 written by Raymond Camden on 23 April 2009, at 8:05 AM
Comment 10 written by JoshuaSiok on 23 April 2009, at 8:18 AM
Comment 11 written by Raymond Camden on 23 April 2009, at 8:23 AM
Leaderboard: I originally wanted it in game, but at 11PM last night I was exhausted. ;)
Comment 12 written by Bradley Moore on 23 April 2009, at 8:26 AM
After clicking on a stock, I head down and enter an amount of shares to buy/sell. However, you have to click on the up or down arrow to get the buy/sell button to enable.
Comment 13 written by Andrew Scott on 23 April 2009, at 8:28 AM
Maybe another sugestion over time is something to remember what price the stock was purchased for, so that they know how much money is potential going to be earned lost etc. And maybe a runtime worm, that shows the rise and fall of the select stocks as well.
Comment 14 written by Raymond Camden on 23 April 2009, at 8:29 AM
@Andrew: The issue is that you can buy X shares of Y at Z, and Y shares of Y at Z-1. The UI to handle displaying all that would be a mess.
Comment 15 written by Andrew Scott on 23 April 2009, at 8:42 AM
Comment 16 written by Joe on 23 April 2009, at 8:54 AM
Comment 17 written by Sid Wing on 23 April 2009, at 8:57 AM
Comment 18 written by Raymond Camden on 23 April 2009, at 9:00 AM
@Andrew - Maybe so. Like a personal history.
To be clear, I don't plan on spending a lot of time on this. The entire app was meant as a training exercise and blogging fodder. But I'm taking all these comments to heart and will definitely remember them for the next app.
After my lunch meeting (and my food) I've got a minor update coming out to hit a few of the minor UI things.
Comment 19 written by Sid Wing on 23 April 2009, at 9:03 AM
Comment 20 written by Raymond Camden on 23 April 2009, at 9:06 AM
Comment 21 written by Andrew Scott on 23 April 2009, at 9:09 AM
Comment 22 written by Raymond Camden on 23 April 2009, at 9:59 AM
I'm not currently saving any history. When you buy shares of X twice, I just have one row in the db for the total # of shares.
I'm not going to spend much more time on game mechanics as I'd rather move on to the 'real' game (but I'm definitely fixing the darn typo and the darn 'cant hit enter' bug).
Comment 23 written by Joshua Cyr on 23 April 2009, at 10:38 AM
Show what price we bought the stocks at (in chat maybe)
Color code chat (real chatter vs alerts on buy/sell)
Comment 24 written by Raymond Camden on 23 April 2009, at 12:47 PM
Comment 25 written by Chris Clark on 23 April 2009, at 2:34 PM
Comment 26 written by joshua cyr on 23 April 2009, at 5:34 PM
Also, it needs more cowbell.
Comment 27 written by Bradley Moore on 23 April 2009, at 9:14 PM
Comment 28 written by Bradley Moore on 24 April 2009, at 9:44 AM
http://orangexception.com/expose/images/random/Gam...
Then follow-up error selling 7000 shares. I think my share count was already reset to 0 on the database from the above error, but the client hadn't updated.
http://orangexception.com/expose/images/random/Gam...
Comment 29 written by Sid Wing on 24 April 2009, at 1:14 PM
http://www.thecomputerwizards.org/gameone/
Comment 30 written by Bill Berzinskas on 24 April 2009, at 1:16 PM
http://dev.socialcloudz.com/dev/gameone_chart.cfm
Comment 31 written by Raymond Camden on 24 April 2009, at 1:17 PM
http://gameone.coldfusionjedi.com/feed.cfm
Comment 32 written by Bill Berzinskas on 24 April 2009, at 5:18 PM
http://dev.socialcloudz.com/dev/gameone_tracking.c...
this script uses a UUID in a cookie to keep tracking anonymous and per-user.. also makes sure other users can't tamper with your tracking.. ;)
Comment 33 written by Dale Fraser on 25 April 2009, at 7:37 AM
Number 1 player with
$2,487,445,097.52
Comment 34 written by Raymond Camden on 25 April 2009, at 8:45 AM
Comment 35 written by Bill Berzinskas on 25 April 2009, at 11:19 AM
Comment 36 written by Sid Wing on 25 April 2009, at 10:29 PM
http://www.thecomputerwizards.org/gameone/
Comment 37 written by Sid Wing on 25 April 2009, at 11:08 PM
---------------------------------------------------------
Executing Database Query.' faultDetail:'For details, turn on Robust Exception Information in the ColdFusion Administrator'"
name = "Error"
rootCause = (null)
headers = (null)
message = (mx.messaging.messages::ErrorMessage)#2
body = (null)
clientId = "3DD14FDB-3E09-FB17-EF29-B565C56F4065"
correlationId = "A7FFEDF4-CF9B-5047-5D75-E0A474CD0EC2"
destination = "ColdFusion"
extendedData = (null)
faultCode = "Server.Processing"
faultDetail = "For details, turn on Robust Exception Information in the ColdFusion Administrator"
faultString = "Unable to invoke CFC - Error Executing Database Query."
headers = (Object)#3
messageId = "44728866-A00E-44B4-D30F-4B1B2080DA01"
rootCause = (null)
timestamp = 1240719483040
timeToLive = 0
messageId = "44728866-A00E-44B4-D30F-4B1B2080DA01"
target = (null)
token = (mx.rpc::AsyncToken)#4
message = (mx.messaging.messages::RemotingMessage)#5
body = (Array)#6
[0] "sid.wing"
[1] "XXXXXXX"
[2] 2
[3] 55000000
clientId = "3DD14FDB-3E09-FB17-EF29-B565C56F4065"
destination = "ColdFusion"
headers = (Object)#7
DSEndpoint = "orca-amf"
DSId = "3DD14BD4-F81A-
------------------------
That's all I could capture of it.
Comment 38 written by Sid Wing on 27 April 2009, at 8:29 AM
I buy 2147483647 shares at 30 per share
Trying to buy 1 more share causes the crash point above
Comment 39 written by Raymond Camden on 27 April 2009, at 8:34 AM
Now that I've released the code, maybe someone will volunteer to do that. ;)
Comment 40 written by Sid Wing on 27 April 2009, at 8:36 AM
Comment 41 written by Doug on 27 April 2009, at 8:41 PM
Comment 42 written by Raymond Camden on 27 April 2009, at 8:46 PM
Comment 43 written by Bradley Moore on 27 April 2009, at 10:20 PM
Comment 44 written by Adam Tuttle on 29 April 2009, at 9:01 AM
Comment 45 written by Dale Fraser on 2 May 2009, at 5:49 AM
There is a hack / bug / exploit where you can get as many shares as you like, as I thought last week when people were on crazy numbers.
I now have over a 1000 T so the game is pointless now, but was fun before I discovered it.
Ray email me if you want me to explain, I dont want to do it here.
Comment 46 written by Phillip Senn on 9 May 2009, at 7:46 PM
I tried to look up the source code, but it's pre-Internet.
There used to be an old TRS80 game called Taipan, which was quit exciting really.
http://en.wikipedia.org/wiki/Taipan!
Comment 47 written by Phillip Senn on 9 May 2009, at 7:52 PM
And you have to add an exclamation point to the end of the link or otherwise you are directed to a wiki about Taipan snakes.
[Add Comment] [Subscribe to Comments]