Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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  
  New 2D java Game Editor  (Read 3333 times)
0 Members and 1 Guest are viewing this topic.
Offline alfredogarciaw

Innocent Bystander





« Posted 2005-12-02 18:50:07 »

Hello:
Some months ago I was looking for an Open Source 2D Game Editor(with a user interface) for JAVA, and didn't find one, in fact I was looking for one with an LGPL license. So that could protect the Game it's self (closed source)but share some common code giving it to the Framework.

I have spent the last 6 months programming a Game Editor for JAVA.
, would  really appreciate your opinions.

According to the slogan "Release Early, Release Often" the project is there so that you  can tell if the project is useful, would really appreciate your opinions.

JXArcade is a 2D Game Editor for JAVA. It allows you to produce Arcade java games using a graphic Interface to define sprites , animated sprites, paths and scene. 
It also provides a consistent framework for game   
development 


The Joystick Input Engine and the Sound Engine  was not implemented intentionally to give
space to every game programmer that feels can contribute to this framework. (Any contribution that makes the framework better will be accepted)
Remember that the license is LGPL, so you can extend the framework and use it even
commercially with out the need to open your source.

http://sourceforge.net/projects/jxarcade
Offline whome

Junior Member




Carte Noir Java


« Reply #1 - Posted 2005-12-11 11:51:12 »

Looked at the code and found interesting code in obtainImage method. You draw image several times on top of itself to force it to be managed. Is it mandatory in JDK1.4.2.x and JDK1.5.x virtual machines before images are accelerated?

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  
    
ImageManagement.java
public Image obtainImage(String spriteImageFilename) throws
            Exception {

        Object o = tablaCacheImagenes.get(spriteImageFilename);
        if (o != null) {
            Image theImage = (Image) o;
            return theImage;
        }

        BufferedImage theBufferedImage = this.obtainBufferedImage(
                spriteImageFilename);

        Image img = theBufferedImage.getScaledInstance(theBufferedImage.
                getWidth(), theBufferedImage.getHeight(), Image.SCALE_DEFAULT);
        GraphicsEnvironment ge =
                GraphicsEnvironment.getLocalGraphicsEnvironment();
        Image imNada = ge.getDefaultScreenDevice().getDefaultConfiguration().
                       createCompatibleImage(10, 10);
        //the next lines are there because the JVM make an image
      // to be "managed image" if it is used several times

        imNada.getGraphics().drawImage(img, 0, 0, null);
        imNada.getGraphics().drawImage(img, 0, 0, null);
        imNada.getGraphics().drawImage(img, 0, 0, null);
        imNada.getGraphics().drawImage(img, 0, 0, null);

        tablaCacheImagenes.put(spriteImageFilename, img);
        return img;
    }
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #2 - Posted 2005-12-11 12:10:09 »

There is a flag for that:

System.setProperty("sun.java2d.accthreshold", "0");

弾幕 ☆ @mahonnaiseblog
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #3 - Posted 2005-12-12 01:02:34 »

Is it mandatory in JDK1.4.2.x and JDK1.5.x virtual machines before images are accelerated?

No.  Managed images are an implementation detail.  There is no requirement that they be supported.

Offline whome

Junior Member




Carte Noir Java


« Reply #4 - Posted 2005-12-12 08:43:19 »

One suggestion:
I would recommend using a native AWT FileDialog chooser instead of pure-Swing FileDialog. We Windozers just cant stand Swing FileDialog due to a lack of many features.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #5 - Posted 2005-12-14 04:11:54 »

I would recommend using a native AWT FileDialog chooser instead of pure-Swing FileDialog. We Windozers just cant stand Swing FileDialog due to a lack of many features.

Have you voted for the relevant bugs?  I'm hoping these issues get fixed in Mustang.

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.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

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

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

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

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

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

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

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

BurntPizza (48 views)
2014-08-09 21:09:32
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!