Results 1 to 4 of 4
  1. #1
    bc112354 is offline Member
    Join Date
    Mar 2014
    Rep Power

    Question Grid System and Tilt?

    I am making a RTS game in Pure Java, and no libraries.

    So pretty much I want a constructor like so
    Java Code:
    new Grid(40, 40)
    That will create a 40x40 grid of a certain size per cell.
    Then I would like to fill the empty cells, and also be able to place things on top of them.

    Also, I would like a tilt similar to Clash of Clans.

    How do I do this?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Rep Power

    Default Re: Grid System and Tilt?

    So you pretty much know absolutely no Java at all then? Because otherwise you would know how to at least start this.

    I also think you're confusing Java with Flash or something, its not primarily designed to do graphics stuff (although JavaFX can help) so its not like there are built-in ways to do what you want to do. Either use libraries to provide you with higher level forms of graphics drawing such as isometric drawing support as you seek, or you'll have to stick to the low level stuff in the JDK and build everything yourself.

    Or perhaps you are confusing Java with Javascript?
    Last edited by gimbal2; 03-28-2014 at 09:04 AM.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    The Netherlands
    Rep Power

    Default Re: Grid System and Tilt?

    If this is about creating a game, check out this: Spring RTS Engine.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  4. #4
    jashburn is offline Senior Member
    Join Date
    Feb 2014
    Rep Power

    Default Re: Grid System and Tilt?

    Interesting... why no libraries? For the View (UI) part, I think you can use Java 2D transforms to get the tilted effect. See also AffineTransform (Java Platform SE 7 ). You'd probably want to have a Model to go with this to allow you to set up the Model (e.g., grid size) to effect the rendering in the View, i.e., MVC.

Similar Threads

  1. Help making a Menu system for Student List System
    By jason3460 in forum New To Java
    Replies: 0
    Last Post: 12-09-2012, 01:39 PM
  2. Grid help
    By lolmister in forum Java 2D
    Replies: 1
    Last Post: 05-24-2012, 05:35 AM
  3. Open Grid Scheduler/Grid Engine
    By java software in forum Java Software
    Replies: 0
    Last Post: 03-27-2012, 07:00 PM
  4. system.out.printf versus system.out.format
    By bigsonny in forum New To Java
    Replies: 10
    Last Post: 06-21-2011, 10:40 PM
  5. Replies: 8
    Last Post: 06-21-2011, 02:21 PM

Tags for this Thread

Posting Permissions

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