SFML community forums
Help => Graphics => Topic started by: BeautiCode on July 16, 2014, 02:23:27 am
-
Can someone help me setup a tilemap? I'm new to this, I have some 64x64 images I want to fill up a 800x600 window with. I don't know how these work at all, I'd like some examples.
-
The tutorials are wonderful things! (http://www.sfml-dev.org/tutorials/2.1/)
There's even a tile map example (http://www.sfml-dev.org/tutorials/2.1/graphics-vertex-array.php#example-tile-map)...
If you need an image to use for the tileset.png in the example, feel free to use this that I made ;)
(http://i.imgur.com/0fBcMzG.png)
-
The tutorials are wonderful things! (http://www.sfml-dev.org/tutorials/2.1/)
There's even a tile map example (http://www.sfml-dev.org/tutorials/2.1/graphics-vertex-array.php#example-tile-map)...
If you need an image to use for the tileset.png in the example, feel free to use this that I made ;)
(http://i.imgur.com/0fBcMzG.png)
Thanks...Btw since I'm here...How do I remove the little console in the background while my program is running? It's compiling as GUI.
-
Link the sfml-main module, as stated in the official SFML & VS tutorial (http://www.sfml-dev.org/tutorials/2.1/start-vc.php).
You can also search the internet to understand the concept of tilemap. It can be as simple as an array of sprites and thus doesn't need any tutorial.
-
Alright thanks guys.
-
Have you seen this (https://github.com/SFML/SFML/wiki/Source:-TileMap) and this (http://www.sfml-dev.org/tutorials/2.1/graphics-vertex-array.php#example-tile-map)?
-
Have you seen this (https://github.com/SFML/SFML/wiki/Source:-TileMap) and this (http://www.sfml-dev.org/tutorials/2.1/graphics-vertex-array.php#example-tile-map)?
Yes, they posted the first one above.
And I think I saw the github one before.
-
There are actually three different tilemap sources on wiki, one is using static arrays, the other is 'dynamic' and rebuilds them and the last one is using a shader.
-
How do I remove the little console in the background while my program is running?
An answer. (http://en.sfml-dev.org/forums/index.php?topic=15835.msg113053#msg113053)