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

Author Topic: Draw many Sprites  (Read 1250 times)

0 Members and 1 Guest are viewing this topic.

cobrapitz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Draw many Sprites
« on: September 16, 2014, 08:52:31 pm »
Hello  ;D

I am wondering how worms or games like cannon hill , draw and update their blocks..
i dont really know how u can draw so many objects as many as in worms.. (and have nice fps)

or how does this work?

i thought of a method with a 2d texture and take e.g. the white color as ground and the "air" as black.. but so i dont know how u can generate it random as in worms, because i dont know how to texture them then..  ???

I hope can you help me  :-\

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Draw many Sprites
« Reply #1 on: September 16, 2014, 11:42:27 pm »
This is a very common question - not so common on the forum, but common in general. Did you even try to google for it yourself? Try to do some research on your own?

http://google.com/#q=worms+like+destructible+terrain
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

cobrapitz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Draw many Sprites
« Reply #2 on: September 17, 2014, 07:46:53 am »
Thank you for your fast response..
actually i didnt  :o  and i dont know why sorry for that

 

anything