Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  basic java games question  (Read 2280 times)
0 Members and 1 Guest are viewing this topic.
Offline role

Junior Member




Java manmoth is coming!


« Posted 2003-01-01 22:55:52 »

hi all
i just started write java game in a few months
i want to know 'bout basic game stuff :

first, bout using awt or swing
i read many java game tutorial that using awt for making games
but i think swing is more nice and clean  Wink
so which one is more efficient (faster) awt or swing??
is using swing slower than awt or vice versa

then bout full screen exclusive,
i rather confuse using full screen (how to do it)   Sad
is using full screen really boost the speed or not?
i like windowed game, but if i continue write windowed game
is it easy to turn it into full screen game?
plz give me a fullscreen quick tutorial (the code in check resolution, turn it into full screen, and the difference paint method)
i don't understand bout render, and checking screen resolution and turn it into resolution i want (what if the resolution i want not support by player computer? or player's computer not support full screen mode)

then, bout applet or application
i try to use applet at first, but applet can't read and write to file system,
so i change to application, but recently i read a tutorial that said applet can read/write using jarsigner
so which one good for build games applet or application?
i have many map,graphic,sound to load and player's data to save
so i need file security and speed, i prefer applet
and regarding to my first question, using Applet or JApplet??

and the last question, bout editor
in building a game what do you all use? a GUI editor or not?
a notepad or jbuilder? i use notepad now, but i think the progress took very long time


okay, that's all

thank you very much  Cheesy

NB: i'm trying to make a massive RPG game, so i really think bout speed!

Golden T Game Engine - Java2D/OpenGL Game Engine
Golden T Website | Golden T Forum
Offline Pyros

Senior Newbie




Let's make Java games rock !


« Reply #1 - Posted 2003-01-01 23:32:26 »

If you want speed, use LWJGL but you need to write everything yourself (like handling all mouse and keyboard input, drawing images etc.). If you want some stuff made ready for you (like ready-to-run mouse and keyboard listeners, drawing methods, etc.) use AWT, but that's slower. If you want a lot done for you, use Swing but that requires a fast pc with LOTS of RAM (Swing is built on top of AWT and adds to its features). You might want to check out Java3D too.

About fullscreen.. If you don't want to use it, you just put 'false' to those method calls where you set the screen attributes like width and height. If the method provides fullscreen mode, you can set it on with true and leave it off with false.

Try to edit with Textpad ( http://www.textpad.com/ ) for starters. It is easy to start with but has LOTs of features for the advanced user. You definitely need syntax highlighting which Notepad wont give you. If you want to try an IDE, use Eclipse. But I recommend beginners use a text editor like Textpad or similar.
Offline role

Junior Member




Java manmoth is coming!


« Reply #2 - Posted 2003-01-04 03:31:43 »

thanx the editor is very nice! i like it!  Grin
but.. it's not free....!?

what's LWJGL??

i use AWT now instead of SWING like u said

but i still can't use full screen exclusive
plz show me more link to full screen exclusive tutorial
especially more example, i'm better learn by example

i still confuse how to use active render, where to put the code?
and if the player's computer not support full screen, where to put repaint method? how to use buffer or page flipping??

and where to put my drawing code?

how to change to my desire resolution?
(800x600x16 or 640x480x16)

please gimme the windowed code and fullscreen code
where's the difference

is applet can use full screen exclusive?

Golden T Game Engine - Java2D/OpenGL Game Engine
Golden T Website | Golden T Forum
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SpongeBob

Junior Member




Who lives in a pinnapple under the sea


« Reply #3 - Posted 2003-01-04 03:50:10 »

See the Shared Code section.   There is a posting that has the complete stripped down code for doing fullscreen in Java.
Offline Pyros

Senior Newbie




Let's make Java games rock !


« Reply #4 - Posted 2003-01-04 10:48:00 »

Quote
thanx the editor is very nice! i like it!  Grin
but.. it's not free....!?


Yeah, if you are honest, you'll pay the fee. But you can take your time testing the product as you are not missing anything as long as you don't pay, it's not some 30 day trial that expires. The only thing you see is once in a while, when you save a file, it will remind you that you haven't registered yet. That's all. A small annoyance. Pay for it, when you publish your fist game or something.  Grin

Quote
what's LWJGL??


LighWeight Java Gaming Library. It is a work in progress, version 0.4 if I remember correct. Contains low level libraries for graphics, audio and input devices. See http://java-game-lib.sourceforge.net/

But if you are a total newbie, it may get a bit hairy at some times as it is yet a work in progress and that affects the level of documentation. If you are just beginning game stuff, you can use AWT for your first projects just fine (or even Swing if you don't mind it needs a lot of memory to work okay) and then try out LWJGL when you get to the point that you really need more control or speed than AWT gives you. AWT is fine for the games one can make when learning.

Quote
i use AWT now instead of SWING like u said


I use AWT for all my actual game projects at the moment (I'm not that experienced at making games) but I keep my eye on the progress of LWJGL just in case I want to try it out later.
Offline role

Junior Member




Java manmoth is coming!


« Reply #5 - Posted 2003-01-05 04:20:26 »

i'm a java newbie, i'm delphi programmer before
it's too hard if i must make my own component  Angry
so i'll stay using awt i think  Grin
thanx anyway for LWJGL

hey, where's the shared code section??
i can't get to there
always stuck in this discussion forums section

i need many fullscreen exclusive tutorials, i need it bad  Wink

and what bout Applet and Application? which one is the best for developing RPG game??

by the way, what's VolatileImage? what's the difference from common Image?

thank youuu

Golden T Game Engine - Java2D/OpenGL Game Engine
Golden T Website | Golden T Forum
Offline Pyros

Senior Newbie




Let's make Java games rock !


« Reply #6 - Posted 2003-01-05 10:54:36 »

Quote

hey, where's the shared code section??
i can't get to there
always stuck in this discussion forums section


It is one of the forums, see the forum index carefully, one of them is titled "Shared Code".

Quote
need many fullscreen exclusive tutorials, i need it bad  Wink


You have been to this page?
http://java.sun.com/docs/books/tutorial/extra/index.html


Quote
and what bout Applet and Application? which one is the best for developing RPG game??


That depends on you alone. Do you want the game to be played from web browser? Or do you want it to be a completely separate application. If you make it an applet, you may have to be more carefull about what version you use as not all browsers have the plugin installed. If you make it an application, you are more free to do what you will. If you make it an applet, it is simple for people to start playing. If it is an application, you must include instructions on how to install it, including mentioning that they must have JRE installed before. Have you read about Java Web Start? It is a way to install applications from web so it is easy to the customer. Go read about it at http://java.sun.com/

Quote
by the way, what's VolatileImage? what's the difference from common Image?


VolatileImage is in the java.awt.image package. It was added to Java 1.4 so you can take advantage of hardware acceleration. It uses the fastest way on the current platform (on Win this means the graphics are stored directly in videoram, on Unix the graphics get direct access to X Server).
Offline javatypo

Junior Member





« Reply #7 - Posted 2003-01-05 17:17:23 »

What?

U have to make your own event handling crap to use lwgjl or whatever???

That makes no sense?
Huh
Offline Pyros

Senior Newbie




Let's make Java games rock !


« Reply #8 - Posted 2003-01-05 17:29:00 »

Quote
U have to make your own event handling crap to use lwgjl or whatever???


Hmmm... a bad choice of words on my behalf. Why don't you go see yourself. It'll take you five minutes to figure out how to handle mouse input with LWJGL and you'll see the difference. With LWJGL you have to create and position the mouse yourself. Then you have to listen to it's movement.

You don't have the EventListener implementations from AWT to help you (i.e. mouseEntered, mouseExited...).

Quote
That makes no sense?


Ah, to be so young...  Grin  You should've been around when games were written in assembly for Vic-20!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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 (11 views)
2014-08-22 19:31:30

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

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

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

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

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

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

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

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

Norakomi (37 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!