Market game

Place to place any code snippets, completed games, or even uncompleted games for IR users to use.
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Market game

Post by hallsofvallhalla »

I promised it so here it is. It is incomplete but it is the Stock Market game I built.

Play it here
http://indie-resource.com/moneygame/login.php

download
http://www.mediafire.com/?o7lb75f0bsawfqc

Enjoy
spawnfestis
Posts: 79
Joined: Fri Dec 04, 2009 3:19 am

Re: Market game

Post by spawnfestis »

That's some lazy templating. :P
I didn't understand anything.. maybe it's because I don't know jack about the stock market, what do I know.
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Market game

Post by hallsofvallhalla »

this game was still a WIP. Can't bitch about free code :D
User avatar
Callan S.
Posts: 2042
Joined: Sun Jan 24, 2010 5:43 am

Re: Market game

Post by Callan S. »

I bought shares in Mattel. When do I get my toys? :mrgreen:

Halls, does this do dividends, or can you only make money by selling high?

Does it record at what price you originally bought the shares? Doesn't seem to - would be extremely handy
Fight Cycle : My latest Browser game WIP
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Market game

Post by hallsofvallhalla »

yeah just go to check your stocks, it is in yellow.

Your owned Stocks
Shares Symbol Bought for Total Shares
ADBE $26.27 3
User avatar
Callan S.
Posts: 2042
Joined: Sun Jan 24, 2010 5:43 am

Re: Market game

Post by Callan S. »

Oh yeah, I see.

It'd be good, when you go to check stocks, it checks if you own some and shows that next to the current data. Just would give that instant gratification of seeing if the shares gone up since you bought it or not.
Fight Cycle : My latest Browser game WIP
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
19871986
Posts: 19
Joined: Mon May 16, 2011 7:40 am

Re: Market game

Post by 19871986 »

Hi;

i need messages.php for this browser games and 'action window' don't show anythink..
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Market game

Post by hallsofvallhalla »

i never finished this so never finished messages.php. Action window can have anything you want in there.

BTW I wrote over this DB on the live server so the live version no longer works.
19871986
Posts: 19
Joined: Mon May 16, 2011 7:40 am

Re: Market game

Post by 19871986 »

can you make messages.php for this project ? when you have a time.
User avatar
62896dude
Posts: 516
Joined: Thu Jan 20, 2011 2:39 am

Re: Market game

Post by 62896dude »

19871986, I am confident that you can figure this out.. And if not, there is a tutorial somewhere on this site (sorry, I don't remember where, it wasn't by halls) and it was extremely helpful. But I think that creating your own message.php would really make your understanding of its code and PHP as a whole a LOT better
Languages: C++, C#, Javascript + Angular, PHP
Programs: Webstorm 2017, Notepad++, Photoshop
Current Project: HP Destiny
Post Reply

Return to “Code Sharing”