Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (552)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  First Game - Blackjack  (Read 3395 times)
0 Members and 1 Guest are viewing this topic.
Offline JosephML

Junior Newbie





« Posted 2012-02-12 19:30:40 »

I wrote the majority of this in hotel rooms and, as a result it's full of bugs, but it's not too bad for a first attempt (I think). Theoretically, you can use both mouse and keyboard input but for some reason mouse input throws a bunch of stack overflow errors. Eventually I hope to implement AI players with differing skill based on probability and different tables with different max/min bets etc and maybe even, if I ever get round to it, some sort of networking function.

In the mean time enjoy (or not).

The source can be found here: http://www.mediafire.com/?hjk86r94s103luv

And compiled here.
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2012-02-12 19:50:42 »

It's best if you give us a ready made jar instead of making us compile and run Tongue

It runs really fine, I was actually surprised how professional it felt with all the smooth moving and fading transitions.

I did get a continuously printing exception at java.awt.AWTEventMulticaster.mouseMoved(...) that occurred whenever the mouse moved. Scrolling up did not show the source of the exception, that line just kept getting printed in droves.

Great job Smiley

Offline JosephML

Junior Newbie





« Reply #2 - Posted 2012-02-12 19:57:23 »

The stack overflow on mouse move is very annoying and I can't get the root of the problem for some reason... I think it's something to do with info box thing which I'll probably take out anyway cause it looks rubbish.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2012-02-12 19:59:23 »

I have never heard of that class in my entire 3 years using Java2D :S

Offline JosephML

Junior Newbie





« Reply #4 - Posted 2012-02-12 20:03:30 »

Which class?
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #5 - Posted 2012-02-12 20:04:34 »

AWTEventMulticaster Smiley

Offline sproingie

JGO Kernel


Medals: 202



« Reply #6 - Posted 2012-02-12 23:39:33 »

Sounds to me like there's an event loop, which will manifest as a stack overflow error.  Probably spiking the CPU really good whenever you move the mouse, so fixing it should make things run a lot more smoothly.
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2012-02-12 23:43:15 »

Oh well guess what I found Tongue
It also seems like an internal Swing bug too.

Offline elamre

JGO Coder


Medals: 17
Projects: 1


hitar!


« Reply #8 - Posted 2012-02-13 00:03:18 »

Im not abble to play it.
Sometimes it keeps asking for my Name. Also i can spell my name with unlimited length.
And the other times i get in, then i can bet. After i pressed +5, i press go.
Nothing happens from here on, nothing. Cant press anything either.

My projects:
Tower Defence!]http://www.java-gaming.org/topics/iconified/25690/view.html]Tower Defence! [lll.......] 30%!
Lightsnakerider! [llllll....] 60%!
Offline ReBirth
« Reply #9 - Posted 2012-02-13 04:37:40 »

I'm in work time. Executable jar would be great.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JosephML

Junior Newbie





« Reply #10 - Posted 2012-02-13 07:16:14 »

Im not abble to play it.
Sometimes it keeps asking for my Name. Also i can spell my name with unlimited length.
And the other times i get in, then i can bet. After i pressed +5, i press go.
Nothing happens from here on, nothing. Cant press anything either.

This happens if you use mouse input in the menus which is annoying, if you use keyboard input it should be fine.

I'm in work time. Executable jar would be great.

The compiled version is an executable jar?
Offline ReBirth
« Reply #11 - Posted 2012-02-13 07:38:07 »

No, I meant if it was. Compiled version need to packed into jar first so I just double click to run it.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (23 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (41 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!