• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

Neurotic

[java] Pop up "window" over a gameboard?

8 posts in this topic

Hey all, I''ve got an interesting situation. I''m building a Java applictaion, that is basically a board game that wil be played over the net. The client/server stuff will be no huge problem, but the problem is this: I can''t show all the information I need at once, so what we''re proposing is to have a series of tabs to the left of the Frame. When you click on one of these tabs, the appropriate "windows" will appear over the top of the game board (making it slide, or fade it would be nice, but is not imperative). The information in each of the panels will also be changing depending on what is happening in the game. I honestly have almost no idea where to start with this... Changing panels around on mouseclick??? Its the problem of placing it over the top of the board image. I may have to end up putting it all on a external window. Any thoughts anyone? Thanks, Mark
0

Share this post


Link to post
Share on other sites
Your doing this with Java? That should be easy shouldn''t it!?!?

Well I don''t know java but I could do that DHTML, so java should be easier. I''m not sure how java works but in DHTML you have layers, so I''d have a base layer with my basic stuff, then when you click on a button, lets say, on the layer above I''d add in some HTML for a table with links that looks like a menu. then when you move your mouse away, take away that menu on the top layer.

So in Java I''d suspect you''d have some sort of objects right? Well I''d probably have let''s say 3 objects which are these tabs. Now when you click on the first tab, it makes the first boject (Some sort of panel or collection of other objects) visible while the other 2 panels would be made invisible, thereby bringing up the first panel to the top.

Get the idea? Then for # 2 you''d simply make #2 visible, others invisible! Etc... etc...

The trick is if you want to add blending or fading... you could do a "wipe" sort of effect by bring in the new panel over top of the old one before making the old one invisble or something... just experiment.

Good luck! Have fun!
See ya,
Ben
0

Share this post


Link to post
Share on other sites
Thanks,

Sounds like some interesting ideas, except for a few things:

1) Its not for sitting inside a browser, it''ll be an app. so no dhtml.

2) I''m not sure if you can layer like that... I may end up having to write some sort of weird Canvas extension... with ImageMaps...

Mark

----
http://go.to/e[m]anate
----
0

Share this post


Link to post
Share on other sites
Set the applet''s LayoutManager to a java.awt.BorderLayout.
Create a Panel with a java.awt.CardLayout, and add it to the applet at BorderLayout.WEST. This is your mainPanel. Create another Panel and add it to the applet at BorderLayout.EAST. This is your controlPanel.

You''ll end up with something like this:

XXXXXXXXX YYY
XXXXXXXXX YYY
XXXXXXXXX YYY
XXXXXXXXX YYY

where the X''s represent your mainPanel and the Y''s represent the controlPanel.

In the mainPanel, add your game canvas as a child with the constraint "game", for example:
mainPanel.add(gameCanvas, "game");

Then add your other informational panels in a similar fashion:

mainPanel.add(infoPanel1, "info1");
mainPanel.add(infoPanel2, "info2");
etc.

In the controlPanel, add whatever cool controls you want that enable players to switch views. Whenever one of these is activated, you''ll tell the CardLayout to show the corresponding panel, for example

cardLayout.show(mainPanel, "game");

would show the game canvas.

Anyway, CardLayout and BorderLayout have been around since JDK 1.0, so you should have no problems implementing this in any applet.
0

Share this post


Link to post
Share on other sites
Well, if it''s not in an applet, then you should be using JDK 1.3 and Swing components. Look up javax.swing.JTabbedPane, that''ll take care of most of what I mentioned above.
0

Share this post


Link to post
Share on other sites
Aha!

I had COMPLETLEY forgotted about CardLayoutManager >smacks forhead<

And wandering my way through swing, I''m sure I will find more useful extensions of it as well.

Much appreciated!!

Mark

----
http://go.to/e[m]anate
----
0

Share this post


Link to post
Share on other sites
You could implement/extend your own popup window like this:

New popupper popup:

popup = new popupper(xpos, ypos, xsize, ysize, data0)

data0 means that it uses data from data slot 0 from the database which could mean, Show information about Wall Street(monopoly).


I''m sorry about my floppy java syntax, but I haven''t been using java since 1 month, because I had to move
0

Share this post


Link to post
Share on other sites
Dialog boxes actually look like they''re going to be the easiest way to implement this.

Its just we would have liked it all in one window.. not in multiple.. but what can you do

Guess you have to work within your time restrictions.

Mark

----
http://go.to/e[m]anate
----
0

Share this post


Link to post
Share on other sites