hey guys , Im new to java programming and to game mechanics so I was wondering… With which program I can create map that can be imported into my game? like CounterStrike Maps. Im using jme3.
Really depends on what you mean by “map.” To have game-specific data, you’ll need your own program to build your levels with some sort of interface allowing you to put in events, drop in entities, etc. to make the actual 3D map data, you can use most model editors like Blender, Maya, etc. and then export them to some format that jme can read (OBJ, FBX, etc.).
for an example i want to make a VERY SIMPLE GAME. a man to walks around the map. so I found this map editor http://www.mapeditor.org/. and I started making Isometrical maps ( it can be done ) and export them as .png . so this is another advice that I need. how can i implent an .png picture to be a map?
note that it can also export them as .tmx which I dont know what its stands for…
… simplifying my thread.
I was looking for a program like this http://tilemap.co.uk/mappy.php but free version or something? also I was looking for an advice on how to insert maps into my game? Class?
Hello heX-
Search this forum for : “2D Map editor”
It is a map editor from juddman and it is pretty good.
There are so many different ways of implementing a map.
The map editor you refer to have a tile-based system which
means that each tile is basically a separate image.
pseudo code:
for(int i=0; i < images; i++)
image[i]=readImage("tile"+i+".gif");
int GRID=16;
int TILESIZE=32;
for(int i=0; i < GRID*GRID; i++){
getGraphics().drawImage(image[map[i]], X+( (i%GRID)*TILESIZE ), Y+((i/GRID)*TILESIZE), this);
}
Hope this helps.
Best regards from
M.E.
Thanks for the code , but I’m now only researching for my game. heard of Conquer Online ? im targeting that kinda game. TY anyways!
I used to play Conquer Online all the time. Like I was a total addict when I was 14, prob spent 6 hours a day playing at least for like 6 months. Building a game like that from scratch in Java is going to be one hell of a project. If you use some kind of abstraction or engine you’ll lose low level customization and control.
…
Well , first im going to create a simple game with only 1 guy who will be able to walk, add quests and more heroes. RPG!
Maybe look at JFPSM
im looking at it right now.
1offtopic question : does tuer includes pornography ? ( +18 warning sing , if my parents see me playing games with porn they’ll freak out
^^ )
If you really plan to use it a little bit, I will have to implement the export into OBJ WaveFront format so that you can load your levels in JMonkeyEngine 3. My tool is very rudimentary but it allows to create simple maps very quickly. I will write a tutorial about it in some weeks (or months?).
Not yet.
tnx gouessej both for the advice and the game ^^
You’re welcome. I’m not yet able to support Counterstrike maps but maps with a single floor and orthogonal walls work fine, it is a bit limited