Jump to content

  • Log In with Google      Sign In   
  • Create Account


How would you handle this?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 noatom   Members   -  Reputation: 759

Like
0Likes
Like

Posted 19 February 2014 - 05:13 AM

I have an ideea for a game but I can't figure exactly how to make make the hard part.

 

The hard part is, The game is 2D,and it would have a terrain texture. That terrain texture will be cut, so it will appear like there are hills.But the problem is,I have to cut that texture and display it forever,because I want to make a sidescroller. (so the hills will be procedurally generated in realtime)

 

Cutting the texture wouldn't be such a problem,what worries me are the physics.If I were to somehow write a function to find the points at the edge of every hill and make a shape for collision detection,that might take just too much time,given the fact that the terrain has to be cut TOO,before doing that.

 

forgot to say,the game would be for android,so I don't have PC resources.

 

 

And how should I cut the texture? Should I just check if the height of each pixel is bigger than the height of the generated point's?


Edited by noatom, 19 February 2014 - 05:24 AM.

Alexander Turda - The place where I talk about games, coding, movies, and whatever passes through my mind.


Sponsor:

#2 Eck   Members   -  Reputation: 1652

Like
0Likes
Like

Posted 19 February 2014 - 08:55 AM

I'd do a couple of google searches like:

 

procedurally generated side scroller

procedurally generated side scroller tutorial

 

and get to reading.

 

And instead of generating the texture and finding where you should "split" the texture. It might be faster to reverse that. Generate a collision map, and figure out how to fit the texture to your collision map.

 

- Eck






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS