0
\$\begingroup\$

I have a question about game world rendering. What is the best way to render background graphics such as grass and trees in 2D for your game?

Normally I would use array of tiles where every grass tile and tree are but I have big game world and for that this seems like too memory hungry solution

So what I need is nearly infinite game world rendering. the game I'm making is completely tileless and the game objects move using vectors

Also I need to render rivers

Some example pictures of what kind of game world I mean: maps

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Does this answer your question? How can I store my 2D map in JAVA? (you didn't say what technology you are using, but the technique of using chunks should be available in anything which has a filesystem) \$\endgroup\$
    – Philipp
    Aug 30 '20 at 11:54
  • \$\begingroup\$ well that is about tile map which I plan to avoid using but the chunks is interesting approach \$\endgroup\$
    – Coder547
    Aug 30 '20 at 11:58
  • \$\begingroup\$ When you don't want to use a grid, then this answer could also be interesting to you. \$\endgroup\$
    – Philipp
    Aug 30 '20 at 11:59
  • \$\begingroup\$ thx I was thinking of giving all the map objects (trees, rivers,hills) their own x,y coords if this is the best solution \$\endgroup\$
    – Coder547
    Aug 30 '20 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.