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

Author Topic: resource ?  (Read 1863 times)

0 Members and 1 Guest are viewing this topic.

riadh

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
resource ?
« on: December 27, 2012, 10:39:36 am »
hello , where can i find nice background for my game like this one ?
http://www.skrinn.com/pics/t/20-1.png?1356600950

and should i put it on the Window for all the level  (i mean to make it size 800, 3000)? or try to add it to the camera so it will keep the same 800*600 picutre ??

Thanks

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10828
    • View Profile
    • development blog
    • Email
Re: resource ?
« Reply #1 on: December 27, 2012, 10:52:43 am »
hello , where can i find nice background for my game like this one?
There are hundreds of sites that provide resources, you just need to search for them (make sure the license allows you to use it), but I don't know if you'll find something like that...
If you want exactly what you've go in your mind, then get an artist to do it. ;)

and should i put it on the Window for all the level  (i mean to make it size 800, 3000)? or try to add it to the camera so it will keep the same 800*600 picutre ??
It all depends on your game. If you have just one fixed background per level, it probably would be better to have one separated image for each level, but if the player can move around on the background it's probably better to have one texture and move the sf::View (aka camera) on top of it.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

riadh

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: resource ?
« Reply #2 on: December 27, 2012, 11:05:45 am »

There are hundreds of sites that provide resources, you just need to search for them (make sure the license allows you to use it), but I don't know if you'll find something like that...
If you want exactly what you've go in your mind, then get an artist to do it. ;)

just what key word should i use ? background for 2D games ?


It all depends on your game. If you have just one fixed background per level, it probably would be better to have one separated image for each level, but if the player can move around on the background it's probably better to have one texture and move the sf::View (aka camera) on top of it.
see my video and tell, it's easier to put one background behind the map , but would it make it slow if it's a big file ? (3000 * 600 ) 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10828
    • View Profile
    • development blog
    • Email
Re: resource ?
« Reply #3 on: December 27, 2012, 11:11:46 am »
just what key word should i use ? background for 2D games ?
Yes, or textures, etc.
At best you find some resource websites and go from there.

see my video and tell, it's easier to put one background behind the map , but would it make it slow if it's a big file ? (3000 * 600 ) 
It doesn't depend on the difficulty do implement things, but on the use case and for your platformer, it's probably better to use one big texture. From the video it seems you're manually repositioning everything. You shouldn't need to do that, but instead should use sf::View.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything