Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (137)
games submitted by our members
Games in WIP (594)
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 / Making executable file.... on: 2007-03-09 17:15:09
Is there any way or application that can make an executable file even without jar files???

Need links...

2  Game Development / Newbie & Debugging Questions / Re: Kevglass TileMaze please help... on: 2007-03-09 05:26:10
Thnx Kova and bleb, I'll try what you'd said...!!! i get no exception!!!
3  Game Development / Newbie & Debugging Questions / Re: Kevglass TileMaze please help... on: 2007-03-08 14:33:17
 This two doesn't work after i call it from my MainMenu class....

quote]container.addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {

Any suggestions or links for an alternative in making GUI?Huh
4  Game Development / Newbie & Debugging Questions / Re: Kevglass TileMaze please help... on: 2007-03-08 08:35:36
Now, i got one more problem... When i enter into the game class out from my mainmenu class, the game itself somehow lose the focus of keyboard.... The keyboard which controls my entity doesn't work....

Other entities like those zombies were working but only the main character that doesn't who needs keyboard inputs...

Please tell me what can be the possible cause.....

5  Game Development / Newbie & Debugging Questions / Re: Kevglass TileMaze please help... on: 2007-03-06 02:26:06
I think the problem is in my Game Class....  because I already have a JFrame in my MainFrame class. So, when i call Game Class from my MainFrame class the drawing became distorted and the controls for the entity also doesn't.... Maybe converting my Game class into a JPanel will work.. But the problem is Game class extends Canvas.... Is it possible to place a Canvas over a JPanel???

I don't understand this lines:::

JPanel panel = (JPanel) container.getContentPane();
      strategy = getBufferStrategy();

public Game()  {
      JFrame container = new JFrame("CSCI15");
      JPanel panel = (JPanel) container.getContentPane(); // I don't know what this exactly do...
      board = new Keyb();
      panel.setPreferredSize(new Dimension(800,600));
      setIgnoreRepaint(true); -- What's this for???
      container.addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {

      strategy = getBufferStrategy();

6  Game Development / Newbie & Debugging Questions / Kevglass TileMaze please help... on: 2007-03-05 02:16:05
I'm working on a maze game from kevglass tutorial.. Now, i came working to the Main menu.... My problem is when i click my Start button to access the game class it loads the game but the game was distorted and the keyboard doesn't work... Please my code for MainMenu and Game class.....

MainMenu class
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.lang.*;

public class MainMenu extends JFrame implements ActionListener {
    private JButton b1, b2, b3;
   private JLabel label1;

    public MainMenu() {
        super("Maze Game");
        Container contentPane = getContentPane();
        b1 = new JButton("Start Game");

        b2 = new JButton("Help");

        b3 = new JButton("Exit");

        ImageIcon icon = new ImageIcon("background.jpg");
        label1 = new JLabel(icon);
        Insets insets = contentPane.getInsets();
        label1.setBounds(0, 0, 640, 480);

        b1.setBounds(15 + insets.left, 5 +,   105, 22);
        b2.setBounds(15 + insets.left, 35 +,  105, 22);
        b3.setBounds(15 + insets.left, 65 +,  105, 22);

    public void actionPerformed(ActionEvent e)

        if (e.getActionCommand() == "start")
          Game game=new Game();

        if (e.getActionCommand() == "help")

        if (e.getActionCommand() == "exit")

    public static void main(String args[])
       MainMenu mainmenu=new MainMenu();

        mainmenu.addWindowListener(new WindowAdapter(){
               public void windowClosing(WindowEvent e)

Game Class

import java.awt.Canvas;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.event.*;
import java.awt.image.BufferStrategy;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Font;
import java.util.Random;
import java.applet.AudioClip;

public class Game extends Canvas {
   private BufferStrategy strategy;
   private ArrayList entities = new ArrayList();
   private Hero albert;
   private AlienEntity zomb1;
   private AlienEntity zomb2;
   private String message = "";
   public boolean waitingForKeyPress = true;
   private Keyb board;
   private Map map;
   private int fontSize = 30;   
   public Game()  {
      JFrame container = new JFrame("CSCI15");
      JPanel panel = (JPanel) container.getContentPane();
      board = new Keyb();
      panel.setPreferredSize(new Dimension(800,600));
      container.addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {

      strategy = getBufferStrategy();


   public void startGame() {
      board.left = false;
      board.right = false;
      board.up = false;
      board.down = false;
   public void initEntities() {
      map = new Map();
      albert = new Hero(this,"res/hero_down.gif", map, 5, 5);
   zomb1 = new AlienEntity(this,"res/zombie1.gif",map,15,14);
   zomb2 = new AlienEntity(this,"res/zombie1.gif",map,24,1);
//loopClip = soundList.getClip(chosenFile);

   public void gameLoop() {
      boolean gameRunning = true;   
      while (gameRunning) {
          Graphics2D g = (Graphics2D) strategy.getDrawGraphics();
             for (int p=0;p<entities.size();p++)
                for (int s=p+1;s<entities.size();s++)
                   Entity me = (Entity) entities.get(s);
                   Entity him = (Entity) entities.get(p);
                   if (me.collidesWith(him))

          try { Thread.sleep(100); } catch (Exception e) {}

   public void logicHero() {

      int dx = 0;
      int dy = 0;

      if (board.left) {
         dx -= 1;

      if (board.right) {
         dx += 1;
      if (board.up) {
         dy -= 1;
      if (board.down) {
         dy += 1;

      if ((dx != 0) || (dy != 0)) {

   public void logicAlien() {
      Random randomNumbers = new Random();
      int dx;
      int dy;
//      dx =  ( randomNumbers.nextInt( 3 ) - 1);
//      dy =  ( randomNumbers.nextInt( 3 ) - 1);
//      dx =  ( randomNumbers.nextInt( 300 / 100 ) - 1);
//      dy =  ( randomNumbers.nextInt( 300 / 100 ) - 1);
      dx =  ( randomNumbers.nextInt( 30/10)-1);
      dy =  ( randomNumbers.nextInt( 30/10 )-1);

   public void notifyDeath() {
      //code here   }

   public void notifyWon() {
      //code here   }   

Please i really nid help!!! Thnx!!!
7  Java Game APIs & Engines / J2ME / Re: Tamaguchi ( Digital Pet) on: 2007-01-30 22:57:52

Many Tanx...... ^_^
8  Game Development / Newbie & Debugging Questions / Maze Game on: 2007-01-22 16:10:18
Pls help!!
I have made two maps for my maze game separately but i didn't know how to
get through the second map after completing the first map...

What do you think can be the logic for that?

9  Game Development / Newbie & Debugging Questions / Embedding Flash to Java Application.... on: 2007-01-20 17:16:30
Do you guys have examples on how to use Flash to java application??

I want my flash movie to be as if the cinematic of my game...

Is there a way i can do this???

Need Help... Thnx
10  Java Game APIs & Engines / J2ME / Tamaguchi ( Digital Pet) on: 2007-01-18 15:28:37

Im kinda beginner in JAVA and have some questions regarding
programs on mobile phones through J2ME.

The program is kind of a simulator or a game.
It's about taking care of a pet from its day born...(Tamaguchi-like game)

And i want my pet to Alarm me everyday to say,
Gud am, gud pm, and gud night every nth time...

I also wanted my pet to learn talking through my daily
messages i received in my phone...

Also, i wanted my pet to learn singing through the mp3's
saved in my phone...

Is it possible to access my phone memory and be use it
on my game?

Is it also possible to make an alarm even if the game isn't

Is it also possible to draw on the desktop of your cellphone?

Will my project be so ambitious for a beginner?Huh?

Sorry if the detailing is kinda poor. I have difficulty
using ENGLISH...

I want advices from those who already made like this..
And from those experts in J2ME..

Please, need  an expert..

11  Game Development / Newbie & Debugging Questions / Re: How to create a simple maze ? on: 2007-01-12 17:15:19
You guys can use 0 and 1 to create walls... Examples you can represent 0 for a wall which passable or a 1 for a blocked wall....
You must create a grid of WIDTH X HEIGHT and then place those walls within the cells of those grids....
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.

GamerIDGoesHere (20 views)
2015-01-27 01:23:23

GamerIDGoesHere (18 views)
2015-01-27 01:22:15

CopyableCougar4 (25 views)
2015-01-27 00:34:41

CopyableCougar4 (16 views)
2015-01-26 04:47:56

Olo (14 views)
2015-01-25 21:26:00

Olo (16 views)
2015-01-25 18:44:22

Robo11 (30 views)
2015-01-25 06:14:26

basil_ (27 views)
2015-01-17 22:29:32

wxwsk8er (26 views)
2015-01-16 21:42:21

wxwsk8er (22 views)
2015-01-16 20:44:20
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

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