Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (111)
games submitted by our members
Games in WIP (553)
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 / Networking & Multiplayer / Online highscores? on: 2009-05-16 20:35:32
Suppose I have a single player game, how do I use java.net to make the game have an online highscore list connected to a website?
2  Discussions / General Discussions / Quick slick question on different ways to render an image on: 2008-07-29 23:46:00
I have started to make a game using the awesome Slick library, and everything's going fine, but I figured out there is more than one way to render an image.  I usually use
1  
2  
3  
4  
public void draw(Graphics g)
{
     g.drawImage(image,0,0);
}

but I found out that i can just do this:
1  
2  
3  
4  
public void draw()
{
     image.draw(0,0);
}

Are there any differences in speed or anything? Any other/better ways to render an image?
3  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-22 19:37:41
Ah, it finally works, thank you
4  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-21 02:11:39
Sent.  Did you get it?
5  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-20 21:30:42
Are the dlls in the directory you're running from?

Are the JARs in the directory you're running from?

Kev

Okay, I have a folder with:

jinput-dx8.dll
jinput-raw.dll
lwjgl.dll
OpenAL32.dll
Ball.class
Paddle.class
Sub.class
jinput.jar
lwjgl.jar
natives-win32.jar
slick.jar
ball.PNG
cooltext.png
instructions.PNG
paddle.PNG
ak47.wav
explode.wav
m4a1.wav
Moonlight.wav

this is the folder that i put in the exeutable jar








6  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-20 17:23:19
I'm not sure how to post my jar, and i dont have a website or anything, but heres what my manifest file says:

Manifest-Version: 1.0
Main-Class: Sub
Class-Path: jinput.jar natives-win32.jar slick.jar lwjgl.jar

and here's what my main class is:


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
public static void main(String[] args) 
   {
      try
      {
         Sub game = new Sub("JPong");
            AppGameContainer app = new AppGameContainer(game, 640, 480, false);
           
           
         
         
         app.setVSync(true);
         
         app.setShowFPS(false);
         app.start();    
         
      }
      catch (SlickException e)
      {
         e.printStackTrace();
      }
     
   }


all of my jars and classes are in one folder. need anything else?
7  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-20 14:32:27
No, the case is lower case on the file and on the manifest. thats not the problem
8  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-19 21:55:15
Neat! it runs my game, but now what do i do to make my executable jar, now that i added the jars to the classpath?
9  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-18 19:36:47
bump
10  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-17 18:48:27
I know it should be an easy error, but the thing is, this jar, along with the other jars (slick, jinput), are already in the classpath, as I put them in the classpath using the manifest file.  The jars are working fine except for the LWJGL jar.  Very odd, and frustrating.  Is it something to do with the lwjgl version, the JVM version, or a difference in the versions of java? Is there a specific folder the jars have to be in, because i just threw the jars in the same folder as the class files. Thanks
11  Discussions / General Discussions / Re: LWJGLException when trying to run my slick game on: 2008-03-16 02:21:41
In my MANIFEST, i put

Class-Path: jinput.jar lwjgl.jar natives-win32.jar slick.jar

What else does it want from me? is there a specific way to do it?

thanks
12  Discussions / General Discussions / LWJGLException when trying to run my slick game on: 2008-03-15 02:31:33
Hi, im using Slick, and I made a pong game.  The IDE is JCreator.  It works fine when run from the IDE.  However, whenever i use the Jar Maker from the GTGE website, http://www.goldenstudios.or.id/products/utilities/jarmaker/index.php, to make a jar, and I get an error, in the command line, saying

Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
               at Sub.main(Sub.java:347)

line number 347 points to AppGameContainer app = new AppGameContainer(new Sub());

What do I do?
13  Game Development / Newbie & Debugging Questions / Best/most popular/your favorite 2d java game engine? on: 2008-02-17 23:26:36
What are some good suggestions of the ones used by most people? \

thanks!
14  Game Development / Networking & Multiplayer / Re: Help a networking noob on: 2008-01-01 01:50:40
It looks cool, but it doesn't look like JGN has a lot of documentation.  How is java.net for games? I saw a tutorial here: http://gpwiki.org/index.php/Java:Tutorials:Simple_TCP_Networking and it seems really simple to me.  Is it suitable for games, like fast enough and stuff?  And what other options are there?
15  Game Development / Networking & Multiplayer / Help a networking noob on: 2007-12-30 19:48:27
Okay, I want to make a 2 player 2d side scroller, kind of like metal slug, with 2 people playing over a network.  I just want to know the simplest way to do this, with good tuts and documentation so I can get something good down without all of the hassle of a complex networking engine.  I don't care about speed either.

thanks 
16  Game Development / Newbie & Debugging Questions / setting up GTGE? on: 2007-11-25 01:20:05
ok, i got a jar file, and i went to jcreator and went to requires libraries, clicked new, and added the jar.  now when i write the code:

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  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
   /**
    * @(#)FirstGame.java
    *
    * FirstGame application
    *
    * @author
    * @version 1.00 2007/11/24
    */

   import com.golden.gamedev.Game;
   import com.golden.gamedev.GameLoader;
   
   import java.awt.Graphics2D;
   import java.awt.Dimension;
   
   public class four {
       
       public void initResources()
       {
         
       }
       public void update(long elapsedTime)
       {
         
       }
       public void render(Graphics2D g)
       {
         
       }
       
       public static void main(String[] args) {
         
          // TODO, add your application code
         System.out.println("Hello World!");
          GameLoader game=new GameLoader();
          game.setup(new four(), new Dimension(640,480), false);
          game.start();
       }
   }
   


it cant find symbol method setup

what do i do?
17  Discussions / General Discussions / Re: subtle blips while playing java games? on: 2007-11-02 01:20:16
well im not so sure about what JVM, i use, so i guess i use the default Sun JVM. 

about GC, i did a little research, and i learned that java uses mark sweep GC.  i also learned that the other language that i like, python, uses a different kind, reference counting.  do all GCing languages have the same (possible) blip problem as java? or is it only languages that use the same GC method as Java?
18  Discussions / General Discussions / Re: subtle blips while playing java games? on: 2007-11-01 21:16:19
Could be lots of issues. My guess would be gratuitous garbage collection.

is there a way to fix that? like a way to turn off GC?
19  Discussions / General Discussions / subtle blips while playing java games? on: 2007-11-01 03:05:40
when playing java games i notice that there are blips in gameplay, sometimes subtle, sometimes not so subtle, that make the gameplay not comepletely smooth.  what is causing this?
20  Game Development / Game Mechanics / would phys2d work with 3d models in a 2d side scroller? on: 2007-10-28 23:17:17
hola.  would a game that uses 3d models in a 2d world(kind of like conquer online, but a side scroller) work with phys2d? i would not use the z axis at all, it would be ortho(think soldat: the models arent really even 3d, just 2d made in a 3d modeller, paper thin).  the reason i am thinking about using 3d models is because the thought of animating different images makes me sick.   Embarrassed sorry if i said this in a confusing way, just tell me if u want want a rewrite  Grin
21  Game Development / Newbie & Debugging Questions / what exactly IS a game engine? on: 2007-10-06 14:13:37
i thought i knew, but im not so sure now.  when someone says that like a game(lets say wolfenstein) was made from the quake 3 engine, what exactly happened? does that mean that they took the q3 source and modified it? or is it a set of methods that i would use in programming to make?
22  Discussions / General Discussions / Re: notepad to write code in? on: 2007-09-27 02:30:44
allright, so i understand that using an ide is a lot easier. so i think ill just use an ide. 

new question.  I'm using linux now, and im pretty sure jcreator wont work with it.  i hear eclipse is a very nice ide, but its resource intensive and might run slowly on a semi old laptop.  if it turns out that its too slow, whats a good lightweight, simpler ide that can run on linux?
23  Discussions / General Discussions / notepad to write code in? on: 2007-09-26 03:48:17
why do some people write code in notepad instead of an IDE? what are the advantages to it? im just curious.  How would using say lwjgl in notepad be different from using it in an ide like jcreator or eclipse?
24  Discussions / General Discussions / Re: comparing java/lwjgl and c#/xna... on: 2007-08-25 20:02:37
probably because lwjgl compares more to xna than jogl, since jogl is gfx only. (you'd need jogl, joal and jinput to compare with xna).
that and also because i am guessing that lwjgl is more commonly used than jogl.  am i right?
25  Discussions / General Discussions / comparing java/lwjgl and c#/xna... on: 2007-08-24 22:19:46
i took a peek at lwjgl, and i took a peek at xna, and i have some questions comparing them....
1. which gives better performance, like better frame rates
2. which one is easier, like in general?
3. what are pros of lwjgl?
4. what are pros of xna?
5. what has a better user base?

thanks  Grin
26  Game Development / Newbie & Debugging Questions / setting up slick on: 2007-07-19 03:33:08
very confused as to how to install slick.  so i download the jar file, what else do i do with this file? it doesnt say on the site what to do with it to install slick. can someone explain to me how to install slick please? thanks! 
27  Discussions / General Discussions / hello friends! on: 2007-03-04 17:48:30
hi im new to this forum and new to java game programming, but not new to java.  im reading killer game programming with java, and its a great book. 

my question is, what is arianne(well i know its an engine), and how do engines like these work?

my main goal is to make a mmorpg(with some premade coding), but thats in the FAR FAR FAR distance, i know im going to take baby steps to get there, so u dun need to lecture me about that  Cheesy
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.

CopyableCougar4 (24 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (33 views)
2014-08-08 02:01:56

Norakomi (42 views)
2014-08-06 19:49:38
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!