Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (688)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Simple Clipping on: 2005-12-26 22:46:49
Thanks Jeff and Rolz!  I got it working.

-Mike Smiley
2  Game Development / Newbie & Debugging Questions / Simple Clipping on: 2005-12-26 09:17:31
Hello all,

  I implemented my own simple windowing system for my game.  Since I only want to render the window when something has changed, I need to ensure that when my underlying tile system does not draw over my window.  I was thinking of doing it this way:  Start with a clipping region that is the same dimensions as the JFrame that holds the game, and have each of my game windows "cookie-cut" out where they are drawn.  This solution seems simple enough, yet when looking at the Graphics and Shape API it seems that I cannot create an arbitrary shape without explicitly specifying the points (like with a polygon).

In other words, I can't figure out how to do this robustly.  I know there are some other simple design patterns out there, so if someone could tell me how to implement the solution I explained or point me in the right direction it would be much appreciated!

-Mike Smiley
3  Game Development / Newbie & Debugging Questions / Re: JDesktopPane and Canvas on: 2005-12-22 10:35:11
Thanks Mr. Light, I will look into thisĀ  Smiley

By the way, did you mean paintComponent(..) as opposed to printComponent(...)?

4  Game Development / Newbie & Debugging Questions / Re: Space Invaders 101 Source Code on: 2005-12-22 10:32:15
Thanks for posting this, it was very helpful.

5  Game Development / Newbie & Debugging Questions / Re: JDesktopPane and Canvas on: 2005-12-22 05:36:45
Last question about this.  For the JInternalFrame is there any way to get rid of or modify the title bar (not the text, the actual bar.  I don't want it there). 

6  Game Development / Newbie & Debugging Questions / Re: JDesktopPane and Canvas on: 2005-12-22 05:22:16
Ok, yes I am an idiot.  The problem was that I was using update instead of paint in the Canvas.

Thank you much,
7  Game Development / Newbie & Debugging Questions / Re: JDesktopPane and Canvas on: 2005-12-22 05:20:13
Kingaschi --

  Thanks for the reply.  I try this, but all that comes out on the internal frame is black.  Does my Canvas need to implement another method besides update(...)?  Like paint or something?

Thank you
8  Game Development / Newbie & Debugging Questions / JDesktopPane and Canvas on: 2005-12-22 05:02:24
Hello all,

  Long time reader, but first time poster.  Smiley Anyhow, I have a question for you all.  I am working with internal frames.  I want to have the big desktop frame contain the items drawn by a Canvas.  I can successfully get the Canvas to draw when I use AWT.  To clarify my problem, here is what I am doing using AWT for drawing of the Canvas in a frame (pseudo-code):

Canvas s = new Canvas
Frame f = new Frame
f.add(s) //add the Canvas to the Frame

while(true) s.update(...)

This works for me, but since I would like to add internal frames, I need to start using JDesktopPane.  How would I add the Canvas to the main JDesktopPane and have it constantly call update on the Canvas inside of it?  And when I get that up and running, after I add stuff to internal frames, how can I get it to constantly redraw itself?

Thanks in advance!!
Pages: [1]
Dwinin (76 views)
2015-11-07 13:29:08

Rems19 (82 views)
2015-10-31 01:36:56

Rems19 (82 views)
2015-10-31 01:32:37

williamwoles (108 views)
2015-10-23 10:42:59

williamwoles (95 views)
2015-10-23 10:42:45

Jervac_ (113 views)
2015-10-18 23:29:12

DarkCart (138 views)
2015-10-16 00:58:11

KaiHH (119 views)
2015-10-11 14:10:14

KaiHH (160 views)
2015-10-11 13:26:18

BurntPizza (174 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!