Results 1 to 3 of 3
  1. #1
    haxic is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default New Game Project

    I'm currently working on a game project but need some help with logics and ideas.

    So far I've made a gameboard with terrain, pathing and units. I can contol 1 unit and move it around on the map with fully working collision and map boundries. I've also added a camera that follows the unit, (the unit is still on the center of the screen while the rest is moving).

    So far it works perfect without bugs or anything.


    What I need help and ideas with is how to effectively build the game.

    Etc

    When I start the actual game there should come up a game-menu where I could choose new game, load game and so on.

    How(where and in what order) should I organize and units-stats and game-engine logics?

    Im currently adding to the gameboard:
    static Terrain terrain;
    static Pathing pathing;
    static Units units;

    Etc Units hold the gameboards units, by adding Unit objects to an ArrayList.

    public class Units {
    private ArrayList units;
    public Units() {
    units = new ArrayList();
    }
    public ArrayList getUnits() {
    return units;
    }
    public void addUnit(int x, int y, int type) {
    units.add(new Unit(x, y, type));
    }
    }

    This is the Unit class;

    public class Unit {

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    A comment of posting code: Please use the code tags to preserve formatting. See:BB Code List - Java Forums

  3. #3
    rdjava's Avatar
    rdjava is offline Member
    Join Date
    Jan 2011
    Posts
    38
    Rep Power
    0

    Default

    I am releasing a game engine, if your new to game programming it will be a great start, Complete Game Engine for beginner and intermediate game programmers
    By any means this is not spam I just want to help the gaming community

Similar Threads

  1. Adding a project to an existing project
    By Seijuro in forum NetBeans
    Replies: 4
    Last Post: 08-08-2010, 10:15 AM
  2. Replies: 2
    Last Post: 08-05-2010, 04:49 AM
  3. game code for any game
    By deathnote202 in forum Java Gaming
    Replies: 4
    Last Post: 06-10-2010, 08:06 AM
  4. open existing project project ..
    By itaipee in forum Eclipse
    Replies: 1
    Last Post: 12-28-2008, 08:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •