Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
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] 2 3 ... 7
1  Discussions / Miscellaneous Topics / Re: A fairly new online game :D on: 2006-05-04 20:59:25
If you really were an active member of this board then you would know that requiring a login is going to turn away 90% of the people and offer money in the game for doing so makes you look shady!  This makes it obvious that you are also a liar.  So now, after only 2 posts you have made yourself out to me shady and a liar!  Quick work, good job!
2  Game Development / Newbie & Debugging Questions / Re: How to make an applet email some data? on: 2006-04-19 22:21:46
It's an html thing
1  
<a href="mailto:whoever@whereever.com">Email Link</a>
3  Game Development / Newbie & Debugging Questions / Re: How to make an applet email some data? on: 2006-04-19 21:01:53
make the action of the submit
1  
mailto:whoever@whereever.com
4  Game Development / Game Mechanics / Re: JOODE Development Status on: 2006-04-12 23:39:15
 Grin Thanks!
5  Game Development / Game Mechanics / Re: JOODE Development Status on: 2006-04-12 23:01:34
Is there someplace to download the tests so we can see how the development is going?
6  Game Development / Game Mechanics / Re: JOODE Development Status on: 2006-04-04 20:46:29
The CVS repo at sourceforge has been down for the last couple of days.
7  Discussions / General Discussions / Re: Poll: Game Development Team on: 2006-03-29 21:42:11
Not true, the first program that I worked on at my current job netted my company $5 million and it was only a small subset of the entire application.

Anyway I voted that I would but that the money doesn't matter.  I am starting a software company with my friends now because I can't imagine a group of people that I would rather work with.  And they all have very well developed and varied skills that I hope will lead to our success!  I can only hope that we will develop something that wil bring in $10 million!!!!
8  Discussions / General Discussions / Re: XBox 360 Games on: 2006-03-28 21:12:32
I am VERY impressed with Condemned:Criminal Origins.  The graphics, physics and gameplay are all amazing!
9  Java Game APIs & Engines / OpenGL Development / Re: Screenshots in LWJGL? on: 2006-03-23 20:01:19
If you are going to take the shot in away from anything else you could use the ZBuffer to decide what should be alpha and what should show.
10  Game Development / Newbie & Debugging Questions / Re: 2d arrays. on: 2006-03-15 23:42:44
Lets say that you have a 3x2 array instead, for simplicity's sake, that looks like this
1  
2  
3  
0  0
0 10
0 20

meanig that you want the pictures to be drawn down the left hand side like this
1  
2  
3  
[ ]
[ ]
[ ]

Ok, now lets look at your code
1  
2  
3  
4  
5  
6  
7  
for (int i = 0; i < 3; i++)
{
    for (int j = 0; j < 2; j++)
    {
        g.drawImage(HitImg, CursorHitForClient[i][j], CursorHitForClient[i][j], Graphics.HCENTER | Graphics.BOTTOM);
    }
}


I added the brackets for clairity.  Ok on the first loop through it gets [0,0] which is 0, so it draws at (0,0), then it hits the inner loop again and gets [0,1] which is 0 again so it draws another one at (0,0).  The it hits the outer loop again and it it gets [1,0] which is 0, so it draws a third image at (0,0), then it gets [1,1] whic is 10, so it draws the image at (10, 10)!!! Then it will draw another one at (0,0) then at (20,20), then at (0,0) then at (30,30).

The trouble is that you are using the same value for both the X and Y coordinates of the drawImage().  Your code should look like this instead.
1  
2  
3  
4  
for (int i = 0; i < 3; i++)
{
    g.drawImage(HitImg, CursorHitForClient[i][0], CursorHitForClient[i][1], Graphics.HCENTER | Graphics.BOTTOM);
}
11  Java Game APIs & Engines / JOGL Development / Re: Really stupid problem on: 2006-03-15 18:41:14
It's the byte stuff.  I had the same sort of problem.  I ended up using char's to hold the data for images that were 16bpp and long's for 32bpp then casting them to int's to put it back into the buffer so that Java wouldn't misinterperate the signed vs. unsigned stuff.
12  Java Game APIs & Engines / Java 2D / Re: Rectangular Map on: 2006-03-13 23:54:40
Will a JScrollPane work for you?
13  Discussions / General Discussions / Re: Why C# teams try to port C++ engines to pure C# quite often(?), but Java don on: 2006-03-13 19:25:36
I tend to believe it's too big language differences between C++ and Java.
I don't think that's the case.  I mean there is the JOODE project that is porting ODE to Java, besides going from one language to another always has issues, regarless of which two they are.  There could never be a purely Java port of these engines because in order to talk to the hardware there needs to be at least a little native code.  So a wrapper is really the only solution.
14  Java Game APIs & Engines / Java 2D / Re: Chek Mouse pointer INSIDE a image... on: 2006-03-09 19:37:01
Well, you know the location of the upper-left hand corner of the image and it's width and height, you can use these to build a rectangle.
1  
2  
3  
4  
5  
if(mouse.getX() >= image.x && mouse.getX() <= (image.x + image.getWidth() &&
   mouse.getY() >= image.y && mouse.getY() <= (image.y + image.getHeight())
{
    // The mouse is inside the image
}
15  Java Game APIs & Engines / Java 2D / Re: ByteBuffer into BufferedImage on: 2006-03-03 18:51:15
Ok, I am having a heck of a time with this!  What I have are gray scale images that have either 16bpp or 32bpp.  When I wrtie them out to a file, Photoshop can read them as raw images, but I still can't figure out how to get them into a buffered image.  The setRGB() takes an integer array as an argument, so I can't figure out how to use the 16bpp images there and when I use the 32bpp images they show up as just black!  Here is the code that I am using:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
// Write RAW image format
rasterData.rewind();
while(rasterData.hasRemaining())
{
    output.write(rasterData.get());
}
output.close();
           
// Create BufferedImage
BufferedImage image = null;
if(!bit16)
{
    int[] rasterArray = new int[rasterData.capacity()/4];
    count = 0;
    while(rasterData.hasRemaining())
    {
        rasterArray[count] = rasterData.getInt();
    }
    image = new BufferedImage(cols, rows, BufferedImage.TYPE_USHORT_565_RGB);
    image.setRGB(0, 0, cols, rows, rasterArray, 0, cols);
}
           
JFrame previewFrame = new JFrame("Image Preview");
previewFrame.setSize(cols, rows);
previewFrame.setVisible(true);
previewFrame.getContentPane().getGraphics().drawImage(image, 0, 0, null);


and I have attached one of the 16bpp images and one of the 32bpp images in a rar file.  I had to rename it as .txt so just change it back to .rar

-=EDIT=-
I uploaded the wrong file initially.  It's fixed now.
16  Java Game APIs & Engines / Java 2D / ByteBuffer into BufferedImage on: 2006-03-02 22:11:31
I am reading a binary file and I need to take the data and put it into a BufferedImage so I can display it.  It seems like I should know how to do this, but I can't think of it!  Anyone able to help?
17  Games Center / Archived Projects / Re: Three simple games on: 2006-02-28 21:33:21
Those are really good!  I especially like the SnakeCharmer game!
18  Discussions / General Discussions / Re: java.nio.ByteBuffer on: 2006-02-27 20:27:38
Ok, thank you!
19  Discussions / General Discussions / java.nio.ByteBuffer on: 2006-02-27 19:08:45
I have a file that has image data in it in Big Endian byte order.  I have created a ByteBuffer and set the order to Big Endian.  If I use myBuffer.getShort() will the resulting short be in Big Endian or the native order for the OS?
20  Discussions / General Discussions / Re: Layout Help! on: 2006-02-27 17:40:14
Perfect!! Thank you!
21  Discussions / General Discussions / Layout Help! on: 2006-02-24 23:29:52
I have a JFrame that I have set up that looks like this:

and I want the label on the right to be centered up and down in the space marked by the arrow.
Here is how I have it laid out:

Inside the lower JPane with the parts labeled BorderLayout.WEST and BorderLayout.EAST I have panels with FlowLayouts modified to justify left or right.  Now how can I get that Label to center vertically?
22  Java Game APIs & Engines / JOGL Development / Re: Making the transition from C++ to Java on: 2006-02-18 19:31:16
The book they gave us in school which was very good was
Java: How to Program by Harvey M. Deitel and Paul J. Deitel
isbn: 0131483986
23  Discussions / Miscellaneous Topics / Re: nineteen. on: 2006-02-17 23:11:11
In the deep south, I'd be almost old enough to be your grand-dad....
HAHAHAHAHA!!
24  Discussions / Miscellaneous Topics / Re: where you are friends? (Google earth) on: 2006-02-17 22:45:30
It's actually not that big of a company, the picture is decieving.  We have about 200-300 employees.  Yeah it's a long way between the two (about 10 hours by car) and my family is still there. Cry
25  Discussions / Miscellaneous Topics / Re: where you are friends? (Google earth) on: 2006-02-17 21:57:26
I work here
1  
43 03'15.49"N, 76 03'36.12"W

It is actually a lot more developed than when those pictures were taken.
and I grew up here
1  
39 56'43.04"N, 83 03'00.62"W
26  Java Game APIs & Engines / JOGL Development / Re: Making the transition from C++ to Java on: 2006-02-17 19:32:20
Are you doing the drawing in OpenGL with C++?  If so then using a Java binding won't be much different.
27  Games Center / 4K Game Competition - 2006 / Re: Putting things into perspective on: 2006-02-15 21:03:29
I'm not worthy!  You are awesome!!
28  Games Center / 4K Game Competition - 2006 / Re: Putting things into perspective on: 2006-02-14 20:34:45
HAHA very cool! 
29  Games Center / 4K Game Competition - 2006 / Re: Putting things into perspective on: 2006-02-14 20:03:09
I would LOVE to see these!!   Grin
30  Discussions / General Discussions / Re: what's the meaning of n00b? on: 2006-02-02 20:42:23
n00b = newbie.  This means a person who is a newcomer to a certain field or area.  In the case of it being under your name that's based on the number of posts you have, so as you post more it'll change to something else. Smiley
Pages: [1] 2 3 ... 7
 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (48 views)
2014-04-15 18:08:23

BurntPizza (44 views)
2014-04-15 03:46:01

UprightPath (60 views)
2014-04-14 17:39:50

UprightPath (42 views)
2014-04-14 17:35:47

Porlus (58 views)
2014-04-14 15:48:38

tom_mai78101 (81 views)
2014-04-10 04:04:31

BurntPizza (140 views)
2014-04-08 23:06:04

tom_mai78101 (240 views)
2014-04-05 13:34:39

trollwarrior1 (200 views)
2014-04-04 12:06:45

CJLetsGame (207 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!