Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-06 21:10:13
will the beginners book cover inheritance? because here in my country, inheritance is learnt at university level. I dont know whats considered beginner, I have some java oop basics I would like to learn about key listeners mouse listeners and inehritance etc
2  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-06 20:45:37
Thank you you helped . Can anyone recommend any good books which will teach the inheritance and those things but I would not like to see variables,loops, if's etc in the book

Thankyou
3  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-06 11:12:55
where do you create the sauceyapple object in the apple class or fruit class?
also what is the difference than creating an instance(object of the class) than inehritance.
ex
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
public class fruit {
       public static void main(String[] args]{
       
        Apple sauceyApple = new Apple();
        sauceyApple.eat();
        sauceyApple.throw();
         etc etc etc


       }

}


public class Apple{

    public void eat(){
    //instructions here
   }
    public void throw(){
     //instructions here
   }

}
4  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-05 17:27:47
I was going to try to search for a book which could explain everything for me for example why do you always have to sue KeyEvent in the parameters of keyPressed and keyReleased and keyTyped.

And walk me through game development step by step and at last maybe I could develop a 2d paltformer without copying or searching for any code.

I looked at some code on stackoverflow and other websites to do this program.

What is the difference between these 3 : inheritance vs polymorphism vs implementation
5  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-05 16:42:02
Just created a program with some help from the net  which draws a rectangle , and lets you move it with the arrow keys. How Can I improve the code design and improve the overall program to work better.




Here is the code:


import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.*;

import javax.swing.JFrame;
import javax.swing.JTextField;

public class Main extends JFrame implements KeyListener{
   
   
   
   
   int rectX = 50;
   int rectY = 250;
   
   //constructor
   public Main(){
      this.setTitle("Draw Rectangle Project");
        this.setSize(800,480);
       this.setVisible(true);
       this.setResizable(false);
      this.setDefaultCloseOperation(EXIT_ON_CLOSE);
      addKeyListener(this);
            
   }
   

   @Override
   public void keyPressed(KeyEvent e) {
      if(e.getKeyCode() == KeyEvent.VK_LEFT) {
         rectX = rectX -20;
          repaint();
      }
      if(e.getKeyCode() == KeyEvent.VK_RIGHT) {
         rectX = rectX + 20;
         repaint();
      }
      
      if(e.getKeyCode() == KeyEvent.VK_UP) {
         rectY = rectY - 20;
         repaint();
      }
      
      if(e.getKeyCode() == KeyEvent.VK_DOWN) {
         rectY = rectY + 20;
         repaint();
      }
   }

   @Override
   public void keyReleased(KeyEvent e) {
      // TODO Auto-generated method stub
      
   }

   @Override
   public void keyTyped(KeyEvent e) {
      // TODO Auto-generated method stub
      
   }
   
   public void paint(Graphics g){
      
      g.setColor(Color.RED);
      g.drawRect(rectX, rectY, 20, 20);
      g.setColor(Color.black);
      g.setFont(new Font("TimesRoman", Font.PLAIN, 20));
      g.drawString("Use arrow keys to move the rectangle",230,40);
            
   }
   
   public static void main(String[] args){
      Main object = new Main();
      
   }

   
   
   
}

6  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-04 23:02:54
Thankyou  Grin
7  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-04 20:44:36
I can code well in java without any tutorial or copying any code, Give me a sort of small project which I need to complete before stepping in to games.
8  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-04 16:16:58
Dont get me wrong I know switch statements,loops,constructor,variables,conditionals,arrays,parameters,arguments,Object oriented, methods, constructor and today I learned inheritance. What is something that is crucial like a topic or function so i can learn it, i had a school project for java which I had been learning for a year. I got 14/15.
9  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-04 13:45:26
I know how to create objects and use them and even constructor methods and methods but I cant get what is happening in inheritance, is it all jsut for you can use variables and methods from the clss your implementing, ex public class game extends player implements car   . What does it mean?
10  Java Game APIs & Engines / Java 2D / Java topics needed to learn game dev on: 2014-04-04 13:35:32
Hi, 
    What is the java knowledge required to learn java game development using a game api like libgdx or slick2d along with box2d physics. I would like to start 2D, I already have some java knowledge and was going to get this book:http://www.amazon.co.uk/Learning-Libgdx-Development-Andreas-Oehlke/dp/1782166041
11  Game Development / Newbie & Debugging Questions / Re: Books to read. on: 2014-03-31 19:27:10
I know that game dev is not equal to programming but I would like to develop games not software and I am a little bit familiar with porgramming.

Thankyou for your replies and I will definately look in the game list you gave me
12  Game Development / Newbie & Debugging Questions / Books to read. on: 2014-03-31 17:32:36
Hi,
   What knowledge of java is needed to start developing a java 2d platformer with libgdx? I know the basics, variables,loops arrays, methods,parameters,arguments,switch etc I have a foundation in java. I would like to firstly develop a game for desktop and then port it to android and after that I code again the game in objective C and get it to app store.I have chose Java because It will work on all pc's and even on android the only not supported is windows phone,iphone and xbox360.

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

Pippogeek (38 views)
2014-09-24 16:13:29

Pippogeek (29 views)
2014-09-24 16:12:22

Pippogeek (18 views)
2014-09-24 16:12:06

Grunnt (42 views)
2014-09-23 14:38:19

radar3301 (24 views)
2014-09-21 23:33:17

BurntPizza (61 views)
2014-09-21 02:42:18

BurntPizza (31 views)
2014-09-21 01:30:30

moogie (36 views)
2014-09-21 00:26:15

UprightPath (49 views)
2014-09-20 20:14:06

BurntPizza (53 views)
2014-09-19 03:14:18
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!