Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (602)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (650)
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: Creating game art on: 2005-06-19 20:48:06
Thanks for all the help, but got GIMP and it has solved my problem.  Think it might have had something to do with the way Microsoft Paint saves PNG images, leaving background pixels white but not transparent, but Paint works fine for GIFs suprisingly.  Either way got GIMP and it's working great, exactly what I was after and easy to use.

Thanks again
2  Game Development / Newbie & Debugging Questions / Re: Creating game art on: 2005-06-18 10:46:53
Thanks I wasn't sure where to ask, but thanks for the reference.
3  Game Development / Newbie & Debugging Questions / Creating game art on: 2005-06-18 08:45:52
I've got a simple 2D game ready to go, but I want to create my own art work for it.  Anyone got any tips on what software to use to allow easy importing of the images into java that supports transparent edges for the images, preferably in png format.

4  Game Development / Newbie & Debugging Questions / Re: Font Antialiasing + AWT on: 2005-03-27 11:17:41
if it is an instance of Graphics2D use set rendering hint:

screenGraphic.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);


EDIT: screenGraphic here is the Graphics2d object
5  Discussions / Miscellaneous Topics / Re: "Bad" programming? on: 2005-03-25 15:00:37
This has gone off in a direction which I wouldn't insult you all with, by giving my newbie opinions, but as far as my very simple method is concerned I changed to a while, just to save any trouble.  Generally we have been taught to not do it, but I'll leave it to yourselves to decided whether we should or not.

public int min()//returns the smallest value in the Set or returns -1 if the set is empty
 int i =0;
 boolean found = false;
 while(found!=true && i <maxSizeOfThisSet)
     if(numbers == true)
          found = true;
    return i;
    return -1;

Thanks for the info on it all though.
6  Discussions / Miscellaneous Topics / Re: "Bad" programming? on: 2005-03-24 10:38:05
Thanks for the quick reply, just thought the jumping out of the middle of a loop reminded me of something we were told not to do when we werer learning PASCAL.  I try to bench most the code, seems its faster using the iterative option, probably cause I'm passing a couple of pretty big objects as parameters.

Cheers for the help

7  Discussions / Miscellaneous Topics / "Bad" programming? on: 2005-03-24 10:09:34
Im doing a thing for colleage to return the first element of a set, but were off for Easter so I can't ask if this is "bad" programming.  Should I break out of a for loop like this or is this bad programming?

public int min()//returns the smallest value in the Set or returns -1 if the set is empty
 for(int i = 0; i <maxSizeOfThisSet; i++)
      if(numbers == true)
     return i;
 return -1;

One other question is in a quiz game I'm building one of the main procedures called is recursive, but I could easily make it iterative.  I'm trying to make it as fast as I can, and I was wondering whether Java has larger procedure overheads or whether it is generally faster to use assignment statements etc.

Thanks for any feedback.

8  Discussions / Miscellaneous Topics / Re: Can't find constructor on: 2004-11-28 14:49:27
Brilliant found it Grin.
I was looking in the docs but wasn't sure what exactly I was looking for as I wasn't sure about the state. The code is actually
frame.setExtendedState( MAXIMIZED_BOTH );
Thanks for the help.

9  Discussions / Miscellaneous Topics / Re: Can't find constructor on: 2004-11-28 07:36:07
We have actually just finished the project off, and I'm wanting to apply the polish.  I've searched for this on Google but can't find anything, basically I want to maximise a screen to make it cover the desktop.  I don't mean a full screen application like a game, but more like a software package would be.  Is there code for maximising in the same way as .setResizable and visible etc?  If not should I use code I have developed in games to fill the screen with a setSize just less than the resolution so the window bar still shows up at the bottom.

Thanks for any help.
10  Discussions / Miscellaneous Topics / Re: Can't find constructor on: 2004-11-21 06:55:00
>Oh and are you sure that you want to use Boolean there and not boolean?

This is the problem, thanks.

>(Btw classes should start with an uppercase letter)

Is this for good readability yeah?  It's a team project, that class was programed by someone else, I promise Grin
11  Discussions / Miscellaneous Topics / Can't find constructor on: 2004-11-19 05:46:37
My code is very straightforward.  I'm trying to build an airport booking system and there is a customer class with the following code and constructor:


class customer implements Serializable
public customer(String name, String address, String town, String county, String country, double cost, Boolean veg, Boolean dis)

When i try to make a pretend object for this class I get an error saying cannot resolve symbol. symbol : constructor customer (...type of variables...). location: class customer.  It puts the arrow under the new, as in it can't find this class.  I don't know why, I've made pretend flights and planes already with out errors but the customer gives the error for the code:

customer c2 = new customer("name", "address", "town", "county", "country", cost, b, b);

Can anyone see what I've done wrong?  Any help much appreciated.

a new customer object can be created if the class is overloaded and customer c2 = new customer();, but why doesn't the first one work?

12  Game Development / Newbie & Debugging Questions / Re: game help on: 2004-09-30 18:29:24
The best way to do it would probably be to start with 10 lives or whatever, and a successful attack could lower the opponents lives variable by 1 (or more) and after each decrement check for end, ie 0.
13  Game Development / Newbie & Debugging Questions / Re: Compiling for Brackeens book on: 2004-09-20 05:26:39
Ok thats good enough for me then.  I'll see how far I get before I need it.

14  Game Development / Newbie & Debugging Questions / Re: Compiling for Brackeens book on: 2004-09-19 08:29:53
I don't truthfully know, but his site about the book says this:

Download source code
These packages include source code and any resources (graphics, sounds, scripts, etc) needed to run the examples.

Requires Apache Ant 1.5 to compile. Ant is either directly integrated or available as a plugin for several free/open source editors and IDEs, including jEdit, NetBeans, and Eclipse.

So i'm thinking you need to get it, though there's no mention of integrating it for the ide i use.
15  Game Development / Newbie & Debugging Questions / Compiling for Brackeens book on: 2004-09-19 06:32:52
I just got the book today and it looks like i'm going to have to change ide to use the apache ant plugin. I currently use JCreator, but there's no mention of integrating Ant or getting a plugin for my IDE. Does anyone know how to integrate it, or would it be easier getting NetBeans or Eclipse to run it on?
Pages: [1]
Jesse (15 views)
2015-07-29 04:35:27

Riven (37 views)
2015-07-27 16:38:00

Riven (18 views)
2015-07-27 15:35:20

Riven (21 views)
2015-07-27 12:26:13

Riven (12 views)
2015-07-27 12:23:39

BurntPizza (30 views)
2015-07-25 00:14:37

BurntPizza (42 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (31 views)
2015-07-22 22:16:53

NoxInc (18 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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!