Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (540)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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
Mick.
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.

Thanks
Mick
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);

mick

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;
     else
          i++;
 }
 if(found)
    return i;
 else
    return -1;
}

Thanks for the info on it all though.
Mick.
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

Mick.
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.

Mick.
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.

Mick
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.
Mick
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:

import java.io.*;

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.

*edit
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?

Thanks
Mick
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.

Thanks
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]
 

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

The first screenshot will be displayed as a thumbnail.

Mr.CodeIt (22 views)
2014-12-23 03:34:11

rwatson462 (53 views)
2014-12-15 09:26:44

Mr.CodeIt (45 views)
2014-12-14 19:50:38

BurntPizza (84 views)
2014-12-09 22:41:13

BurntPizza (110 views)
2014-12-08 04:46:31

JscottyBieshaar (78 views)
2014-12-05 12:39:02

SHC (89 views)
2014-12-03 16:27:13

CopyableCougar4 (94 views)
2014-11-29 21:32:03

toopeicgaming1999 (155 views)
2014-11-26 15:22:04

toopeicgaming1999 (151 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!