SFML community forums

Help => Graphics => Topic started by: BeautiCode on July 16, 2014, 02:23:27 am

Title: Tilemaps?
Post 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.
Title: Re: Tilemaps?
Post by: Hapax on July 16, 2014, 02:31:48 am
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)
Title: Re: Tilemaps?
Post by: BeautiCode on July 16, 2014, 02:48:03 am
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.
Title: Re: Tilemaps?
Post by: G. on July 16, 2014, 03:16:15 am
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.
Title: Re: Tilemaps?
Post by: BeautiCode on July 17, 2014, 09:34:39 pm
Alright thanks guys.
Title: Re: Tilemaps?
Post by: Jesper Juhl on July 17, 2014, 09:38:40 pm
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)?
Title: Re: Tilemaps?
Post by: BeautiCode on July 17, 2014, 09:42:55 pm
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.
Title: Re: Tilemaps?
Post by: FRex on July 18, 2014, 01:32:15 am
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.
Title: Re: Tilemaps?
Post by: Hapax on July 18, 2014, 03:18:06 pm
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)