Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  Make 2D Map without tiles?  (Read 1323 times)
0 Members and 1 Guest are viewing this topic.
Offline israelg99
« Posted 2014-03-28 17:47:39 »

Hello how can i make a 2D map but without tiles?

Something like this -

Ignore everything, just look at the ground structure. its not tiles i suppose. actually i don't even know how its called.
How can i make something like this?

The character can go only left and right.

Offline Opiop
« Reply #1 - Posted 2014-03-28 17:49:16 »

Its just a mesh. Basically a bunch of triangles that connect together (generally in a triangle strip). Look into heightmaps or mesh generation. There's no one way to answer your question, so don't expect a clear cut answer.
Offline Spacebeans
« Reply #2 - Posted 2014-03-28 18:02:53 »

There is two ways:
 * Using code
 * Using maps

By using code you have allot easier to make "scripting". By that I mean that calling methods or actions making the map funner for the player, and more interactive.
By using the map it is easy for other people to export maps and load them into the game.

While both are nice, it is better to use both. For example; making a map with a few trees, ground, and the player gets drawn over it. Then adding elements into your XML map file, that are invisible to the player, make it easy to trigger events from the player interacting with its bounding box.

There is a good tutorial on XML parsers here:
PS. Parallax Scrolling is awesome for side-scrollers:
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline israelg99
« Reply #3 - Posted 2014-03-28 18:04:55 »

So the program Tiled will be good to create something like it?

Offline Spacebeans
« Reply #4 - Posted 2014-03-28 18:09:19 »

So the program Tiled will be good to create something like it?

Partly. You could render it half in tiled, then the stuff you want off grid, above the tiled map.
Like this:

public void render(){
     tiledmap.draw(sceneX, sceneY);
     imageIWantOffGrid.draw(imageX, imageY);

     player.draw(playerX, playerY);
     imageThatsOverThePlayer.draw(imageX2, imageY2);
Offline The Lion King
« Reply #5 - Posted 2014-03-28 18:11:09 »

Cut it into tiles anyway, but make seamless tiles so you cant see the "squares." I would make a couple seamless tiles of each type you need (sand, grass, water, etc.), You could add things like trees directly on the textures or draw them separately. To make it look especially good you could make transition tiles or put small tiles that overlap the transition with the transition texture on it.

Point is, mess around and see what works. Be creative with it Smiley and look into how to make seamless tiles.


looking at past posts i may have misunderstood the question. Or the question is just way to broad. Probably both. You should narrow down your question to ask about the certain effect you are trying to achieve.

"You have to want it more than you want to breath, then you will be successful"
Pages: [1]
  ignore  |  Print  

EgonOlsen (73 views)
2018-06-10 19:43:48

EgonOlsen (54 views)
2018-06-10 19:43:44

EgonOlsen (73 views)
2018-06-10 19:43:20

DesertCoockie (253 views)
2018-05-13 18:23:11

nelsongames (154 views)
2018-04-24 18:15:36

nelsongames (154 views)
2018-04-24 18:14:32

ivj94 (895 views)
2018-03-24 14:47:39

ivj94 (156 views)
2018-03-24 14:46:31

ivj94 (808 views)
2018-03-24 14:43:53

Solater (172 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!