Search found 3 matches

by EulersIdentity
Tue Oct 06, 2015 2:23 pm
Forum: General
Topic: [Beginner] Organizing projects in smaller files
Replies: 10
Views: 5290

Re: [Beginner] Organizing projects in smaller files

MadByte wrote: ...
It uses gamestates, a very basic entity handler and stuff like that. It should show some ways to avoid spaghetti code.
This is a great example. Does anyone have links to other examples or game sources that demonstrate good organization? This is an area that I really struggle with.
by EulersIdentity
Fri Aug 28, 2015 7:16 pm
Forum: General
Topic: Collision 'mesh' problem
Replies: 2
Views: 2139

Re: Collision 'mesh' problem

Thanks! That's a good solution. I had to think about how it would run for a second because at first glance I didn't believe that it would give me O(log N).
by EulersIdentity
Wed Aug 26, 2015 7:06 pm
Forum: General
Topic: Collision 'mesh' problem
Replies: 2
Views: 2139

Collision 'mesh' problem

I'm trying to set allowed and disallowed areas for characters to move to. What I'm doing is using a png to act as a sort of nav mesh. I then check if the pixel color at a location in my 'nav mesh' is green, if so the character is allowed to move there (turn-based rules). Here's what I mean: https://...