Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (566)
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  
  That Evil MouseListener of mine..  (Read 908 times)
0 Members and 1 Guest are viewing this topic.
Offline elwiz

Senior Newbie




Bom-Shackalack, Jatack!


« Posted 2004-12-30 04:34:57 »

Well, nope!

To be honest, it's probably this evil morning and the lack of proper amount of coffee.

Anyway, just a thought. in the name of good "OOP" I was creating 3 classes, my GameUI, my GamePiece and my GameBoard. The thought was that the GameUI should implement the GameBoard, which extends a simple Jpanel.

That get's me into trouble since the mouseListener then should be implemeneted at the gameBoard(correct?). And then I really need to move everything called "Logic" to the GameBoard since this one must know about the different pieces and what to do with them.
In the other hand.. isn't that kind of right? To let the GameUI be a simple conatiner with menus and the GameBoard the logic part wich implements GamePieces..

Am I out on a holiday here or what do you think..?
(yep, i really feel like a Clubie)
Offline elwiz

Senior Newbie




Bom-Shackalack, Jatack!


« Reply #1 - Posted 2004-12-30 07:52:37 »

Well.. it works.. now I only need to find out a way to draw that ugly board. Why can't they be satisfied with an ordinary chessboard instead of that lousy "cross" design  :-/
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #2 - Posted 2004-12-30 08:32:41 »

>Why can't they be satisfied with an ordinary chessboard
>instead of that lousy "cross" design

Hint: no one knows what you're talking about Wink

If you mean isometry:
http://forum.java.sun.com/thread.jspa?threadID=580217

弾幕 ☆ @mahonnaiseblog
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline elwiz

Senior Newbie




Bom-Shackalack, Jatack!


« Reply #3 - Posted 2004-12-30 08:53:08 »

Grin
Stupid me..  of course not. I was talking about my implementing of http://www.javaonthebrain.com/java/solitaire/

An assignment, university. Anyway, I did a ugly one, I created my 9.9 Grid of JPanels and then I hold the "dead corners" in an array, setting there BackGround to Black.
Turns out to look nice but be.. well..

This will not do in the long run though, but it keeps me safe and warm during new year.. Wink
then I'll have to do something about it.. a LOT.. actually

Regards
Offline Malohkan

Senior Member




while (true) System.out.println("WOO!!!!");


« Reply #4 - Posted 2004-12-30 16:38:10 »

the source is available at that link there... why don't you just look at that?

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
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.

Pippogeek (35 views)
2014-09-24 16:13:29

Pippogeek (28 views)
2014-09-24 16:12:22

Pippogeek (17 views)
2014-09-24 16:12:06

Grunnt (40 views)
2014-09-23 14:38:19

radar3301 (23 views)
2014-09-21 23:33:17

BurntPizza (58 views)
2014-09-21 02:42:18

BurntPizza (29 views)
2014-09-21 01:30:30

moogie (34 views)
2014-09-21 00:26:15

UprightPath (47 views)
2014-09-20 20:14:06

BurntPizza (51 views)
2014-09-19 03:14:18
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!