QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

[release] Pocket Gambler

This is a discussion on [release] Pocket Gambler within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Introducing, Pocket Gambler! It is sort of a cross between a casino game, and a text-based Grand Theft Auto. Yes ...

Reply
 
LinkBack Thread Tools
Old 02-24-2008, 01:16 PM   #1
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default [release] Pocket Gambler

Introducing, Pocket Gambler! It is sort of a cross between a casino game, and a text-based Grand Theft Auto.

Yes I know, it's not very pretty right now. But a version with graphics will be released sometime in the future.

*Sorry if this is in the wrong section. It's not flash, so it seemed like a better fit here.

Screenshot



Game Information
  • Buy lottery tickets and play slot machines
  • Out of money? Take a risk and steal things to gain money, but you might get sent to jail.
  • In jail? Try to break out by yourself or by using special items. You can also behave well and hope for parole.
  • If you have a lot of money you can buy items, and then sell them later when you are low in money.
  • Coded in HTML and JavaScript
  • Currently only text, will make GUI later
  • High score submitting
  • Game saving and loading. This feature currently only works on the PSP, but a expect a PC version using cookies to save soon.

Play the Game

Click to play online version (no download required)
ZIP Download for offline play (12 KB)

Installation Instructions for Offline Version

If you are playing the online version, you don't need to read this.

1) Unzip the folder
2) Copy game.html to PSP/COMMON
3) Enter "file:/PSP/COMMON/game.html" into your PSP's web browser
4) Start gambling!
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 01:45 PM   #2
 
McLoViN_iT's Avatar
 
Join Date: Dec 2007
Posts: 270
Trader Feedback: 0
Default

wow I suck at this: First I stole the windows source code and got away, I went to jail for stealing a psp, broke out, then went to jail again for stealing a car!
McLoViN_iT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 01:59 PM   #3
PSP Developer On Break
 

 
My Mood: Bashful
Join Date: Jan 2008
Real First Name: [The]Cobra
Location: New York
Just Played: GameLive Shell
Posts: 587
Trader Feedback: 0
Default

Quote:
Originally Posted by McLoViN_iT
wow I suck at this: First I stole the windows source code and got away, I went to jail for stealing a psp, broke out, then went to jail again for stealing a car!
lol
try to stop doing bad stuff
lol
-= Double Post =-
cool game u should try to import it to c or to lua with nice grafic
__________________
Project:GameLive-Shell(Perc:19% | Ver: V0.1)

Last edited by thecobra; 02-24-2008 at 02:07 PM.. Reason: Automerged Doublepost
thecobra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 02:15 PM   #4
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default

Quote:
Originally Posted by thecobra
cool game u should try to import it to c or to lua with nice grafic
Thanks

And yes, at some point I would like to port it to Lua. However that requires me to first learn Lua.
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 02:32 PM   #5
PSP Developer On Break
 

 
My Mood: Bashful
Join Date: Jan 2008
Real First Name: [The]Cobra
Location: New York
Just Played: GameLive Shell
Posts: 587
Trader Feedback: 0
Default

Quote:
Originally Posted by littlevish
Thanks

And yes, at some point I would like to port it to Lua. However that requires me to first learn Lua.
u should look for tutoring of lua
if u look at it it almost the same as java

what the heck if u copy ur html and put it in a lua player u problely get a 85% compatiblity
__________________
Project:GameLive-Shell(Perc:19% | Ver: V0.1)
thecobra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 03:04 PM   #6
Veteran
 
-TheSilenceOfNoOne-'s Avatar
 
Join Date: Jul 2006
Real First Name: [TSON]
Location: Location?
Just Played: PKMN Crystal (WIP)
Posts: 1,862
Trader Feedback: 0
Default

That lotto and slots are pretty expensive! O_O

But niiice job!
__________________
This signature has been raped by the rep system
-TheSilenceOfNoOne- is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 05:34 PM   #7

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

I got 54 years for stealing poop

After i sold my soul for 4 dollars *sigh*
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 08:50 PM   #8
 
Join Date: Jan 2008
Posts: 612
Trader Feedback: 0
Default

I sold my soul for 4 dollars and then got $3915 for the windows source code. Go linux! Good job writing this all in javascript, I know a bit of HTML/JS myself and I looked at it and there are only a few relatively minor things that I would do differently. If you want, I'll help you out learning Lua if you want to rewrite this in lua.
TurtlesPwn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2008, 08:51 PM   #9
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default

Quote:
Originally Posted by TurtlesPwn
I sold my soul for 4 dollars and then got $3915 for the windows source code. Go linux! Good job writing this all in javascript, I know a bit of HTML/JS myself and I looked at it and there are only a few relatively minor things that I would do differently. If you want, I'll help you out learning Lua if you want to rewrite this in lua.
Sure, any help would be appreciated

I'm actually playing around with Lua right now. Having a bit of trouble with random numbers.
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-26-2008, 11:40 PM   #10

.info
 
Yongobongo's Avatar
 
Join Date: Jun 2006
Location: ACT, Australia
Posts: 1,674
Trader Feedback: 0
Default

Quote:
Originally Posted by littlevish
Sure, any help would be appreciated

I'm actually playing around with Lua right now. Having a bit of trouble with random numbers.
Code:
math.random(min,max)
Nice game, littlevish
__________________

http://www.yongobongo.com
PSN - yongobongo
Yongobongo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2008, 01:20 AM   #11
 
BigSanFrey's Avatar
 
My Mood: Amused
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 1,773
Trader Feedback: 0
Default

It is a pretty sweet game I must say!!
I found a bug (please excuse me), i was just tinkering around.. I think many people could find it if they looked easy. (I dont think it is patchable)
I just tinked around a little. Sorry !
__________________
[B][FONT="Verdana"]WHA!?[/FONT][/B]

Last edited by BigSanFrey; 02-27-2008 at 01:35 AM..
BigSanFrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2008, 05:22 AM   #12
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default

Quote:
Originally Posted by BigSanFrey
It is a pretty sweet game I must say!!
I found a bug (please excuse me), i was just tinkering around.. I think many people could find it if they looked easy. (I dont think it is patchable)
I just tinked around a little. Sorry !
Hehe, yes I saw your score. It is pretty easy to do.

At some point I will either try to encrypt the JS, or since I am porting this to Lua, score spoofing may be harder. Although either way, it wouldn't be too hard...
-= Double Post =-
Quote:
Originally Posted by Yongobongo
Code:
math.random(min,max)
Nice game, littlevish
yep, I had that part. But I didn't know about the ostime thing so the number wouldn't always turn out the same.

Last edited by littlevish; 02-27-2008 at 05:23 AM.. Reason: Automerged Doublepost
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2008, 09:17 PM   #13

.info
 
Yongobongo's Avatar
 
Join Date: Jun 2006
Location: ACT, Australia
Posts: 1,674
Trader Feedback: 0
Default

Quote:
Originally Posted by littlevish
Hehe, yes I saw your score. It is pretty easy to do.

At some point I will either try to encrypt the JS, or since I am porting this to Lua, score spoofing may be harder. Although either way, it wouldn't be too hard...
-= Double Post =-


yep, I had that part. But I didn't know about the ostime thing so the number wouldn't always turn out the same.
Code:
Math.randomseed(os.time())
Coding it in LUA won't make score spoofing harder either unless you somehow encrypt the score, or you compile the script with LuaC (making it unreadable).
On your current JS version, you could store all saved data online in your SQL database, because that would prevent spoofing, but then you wouldn't be able to save offline.
A homebrew version will be nice
And you'll be able to use pretty graphics without worrying about memory errors..
__________________

http://www.yongobongo.com
PSN - yongobongo
Yongobongo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2008, 09:24 PM   #14
 
BigSanFrey's Avatar
 
My Mood: Amused
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 1,773
Trader Feedback: 0
Default

I loved this game so much that I am making a graphics calculator version !
__________________
[B][FONT="Verdana"]WHA!?[/FONT][/B]
BigSanFrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2008, 09:40 PM   #15
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default

Quote:
Originally Posted by BigSanFrey
I loved this game so much that I am making a graphics calculator version !
Haha, that's what my original was

And Yongo, yeah I realized score spoofing will still be just as easy if somebody has a text editor and is smart enough to realize changing "money = 2000" might work. And I don't really want to do save data online, since my PSP wifi card doesn't work. That means I wouldn't be able to test it

I wonder if there is a way for the server to verify that the LUA script is unmodified before submitting the score?

Or I could just compile it like you said.
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2008, 09:45 PM   #16
 
BigSanFrey's Avatar
 
My Mood: Amused
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 1,773
Trader Feedback: 0
Default

Make a basic encryption for it, doesn't have to be hard then you can decrypt it again!
__________________
[B][FONT="Verdana"]WHA!?[/FONT][/B]
BigSanFrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2008, 09:52 PM   #17

.info
 
Yongobongo's Avatar
 
Join Date: Jun 2006
Location: ACT, Australia
Posts: 1,674
Trader Feedback: 0
Default

Quote:
Originally Posted by littlevish
Haha, that's what my original was

And Yongo, yeah I realized score spoofing will still be just as easy if somebody has a text editor and is smart enough to realize changing "money = 2000" might work. And I don't really want to do save data online, since my PSP wifi card doesn't work. That means I wouldn't be able to test it

I wonder if there is a way for the server to verify that the LUA script is unmodified before submitting the score?

Or I could just compile it like you said.
You could check the md5 sum of the file against what your server has maybe?
__________________

http://www.yongobongo.com
PSN - yongobongo
Yongobongo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 06:11 AM   #18
 
Join Date: Jan 2008
Posts: 612
Trader Feedback: 0
Default

Coding it in LUA won't make score spoofing harder either unless you somehow encrypt the score, or you compile the script with LuaC (making it unreadable).
no. even your md5 the file idea and compare is not completely foolproof. there is absolutely no reason to use LuaC for anything.
On your current JS version, you could store all saved data online in your SQL database, because that would prevent spoofing, but then you wouldn't be able to save offline.
saving everything online in an SQL DB doesn't prevent score spoofing by itself. you could easily still save offline.
TurtlesPwn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 01:10 PM   #19

.info
 
Yongobongo's Avatar
 
Join Date: Jun 2006
Location: ACT, Australia
Posts: 1,674
Trader Feedback: 0
Default

Quote:
Originally Posted by TurtlesPwn
Coding it in LUA won't make score spoofing harder either unless you somehow encrypt the score, or you compile the script with LuaC (making it unreadable).
no. even your md5 the file idea and compare is not completely foolproof. there is absolutely no reason to use LuaC for anything.
On your current JS version, you could store all saved data online in your SQL database, because that would prevent spoofing, but then you wouldn't be able to save offline.
saving everything online in an SQL DB doesn't prevent score spoofing by itself. you could easily still save offline.
I meant saving EVERYTHING in the SQL, so the score is always loaded from the SQL, rather than the var being set at start up of the game.
__________________

http://www.yongobongo.com
PSN - yongobongo
Yongobongo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 01:20 PM   #20
Founder of AllTechRelated
 
psp2468's Avatar
 
Join Date: Aug 2007
Real First Name: Matti
Location: :)
Just Played: Medal of Honour
Posts: 684
Trader Feedback: 0
Default

its a very fun game Nice one
__________________
Founder of AllTechRelated.com
psp2468 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 03:39 PM   #21
 
Join Date: Jan 2008
Posts: 612
Trader Feedback: 0
Default

Quote:
Originally Posted by Yongobongo
I meant saving EVERYTHING in the SQL, so the score is always loaded from the SQL, rather than the var being set at start up of the game.
That still won't fix anything. Example:
Original code:
Code:
money = tableofvariablesobtainedfromphpscriptwhichdisplaysDBinfo[money]
Altered:
Code:
money = tableofvariablesobtainedfromphpscriptwhichdisplaysDBinfo[money]
money = 1000000
TurtlesPwn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 09:26 PM   #22
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default

Some early screens of the Lua port...







More info coming soon. As with my other version, I want to finish the code before adding graphics.
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 09:36 PM   #23
 
BigSanFrey's Avatar
 
My Mood: Amused
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 1,773
Trader Feedback: 0
Default

I think you should lower the price of the slots.
__________________
[B][FONT="Verdana"]WHA!?[/FONT][/B]
BigSanFrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 09:42 PM   #24
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default

Quote:
Originally Posted by BigSanFrey
I think you should lower the price of the slots.
Maybe...I have them high so that you occasionally lose big at the slots and it's not just free money
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 10:06 PM   #25

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

littlevish - Quick grammatical fix you can do Add a (s) to the end of house, car, etc. when looking t what you own ^^
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 10:21 PM   #26
 
BigSanFrey's Avatar
 
My Mood: Amused
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 1,773
Trader Feedback: 0
Default

Actually, don't change the price. I noticed you don't actually lose the $2000, you just don't get as much back.
__________________
[B][FONT="Verdana"]WHA!?[/FONT][/B]
BigSanFrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2008, 10:33 PM   #27
 
Join Date: Dec 2006
Posts: 251
Trader Feedback: 0
Default

Quote:
Originally Posted by SG57
littlevish - Quick grammatical fix you can do Add a (s) to the end of house, car, etc. when looking t what you own ^^
Ah, good point. Thanks.
littlevish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-29-2008, 06:25 PM   #28
PSP Developer On Break
 

 
My Mood: Bashful
Join Date: Jan 2008
Real First Name: [The]Cobra
Location: New York
Just Played: GameLive Shell
Posts: 587
Trader Feedback: 0
Default

cool i see u are working on importing it to lua
keep up the good work
__________________
Project:GameLive-Shell(Perc:19% | Ver: V0.1)
thecobra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
gambler , pocket , release

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 01:14 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us