Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Tilemaps?  (Read 2398 times)

0 Members and 1 Guest are viewing this topic.

BeautiCode

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Tilemaps?
« 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.

Hapax

  • Hero Member
  • *****
  • Posts: 3360
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Tilemaps?
« Reply #1 on: July 16, 2014, 02:31:48 am »
The tutorials are wonderful things!
There's even a tile map example...
If you need an image to use for the tileset.png in the example, feel free to use this that I made ;)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

BeautiCode

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Tilemaps?
« Reply #2 on: July 16, 2014, 02:48:03 am »
The tutorials are wonderful things!
There's even a tile map example...
If you need an image to use for the tileset.png in the example, feel free to use this that I made ;)

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.

G.

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: Tilemaps?
« Reply #3 on: July 16, 2014, 03:16:15 am »
Link the sfml-main module, as stated in the official SFML & VS tutorial.

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.
« Last Edit: July 16, 2014, 03:18:05 am by G. »

BeautiCode

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Tilemaps?
« Reply #4 on: July 17, 2014, 09:34:39 pm »
Alright thanks guys.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Tilemaps?
« Reply #5 on: July 17, 2014, 09:38:40 pm »
Have you seen this and this?

BeautiCode

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Tilemaps?
« Reply #6 on: July 17, 2014, 09:42:55 pm »
Have you seen this and this?
Yes, they posted the first one above.
And I think I saw the github one before.

FRex

  • Hero Member
  • *****
  • Posts: 1847
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Tilemaps?
« Reply #7 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.
Back to C++ gamedev with SFML in May 2023

Hapax

  • Hero Member
  • *****
  • Posts: 3360
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Tilemaps?
« Reply #8 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.
« Last Edit: July 18, 2014, 03:56:02 pm by Hapax »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything