Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Game Logic

$
0
0
Hey! I'm another one of those people who wants to make a game for "Insert random reason here" and I've run into some logic problems.

1) I've implemented a collision detection system that works. But I read somewhere here that Collision detection should not be used for game mechanics. To elaborate. I'm making a 2D game with a tile map system. Part of the map will consist of lets say water. One game mechanic is that the player can turn on a special ability that allows him/her to run ontop of water. This will drain a resource. But my question is how would you go around to implementing such a thing? Is that a collision detection mechanic or are we making our water some kind of entity?

2) I'm trying to figure out how to add stuff like stones/trees/water to my world. Should they just be simple tiles or should I add them as some kind of entity? I know its a very open question but every bloody tutorial you read suggest different methods of implementing everything.

3) Can anyone link me towards some tutorials on making a login system against a database?

4) How would one go around on implementing a small stat system. Lets say my player class should have a variable called "str" which is the strength. I also want it so that when I press A he is to attack and if there is a scarecrow infront of him then str should be incremented. In other words he gets stronger?

I'm aware some of these questions are bad. But I'm trying to get so much information its hard to know where to start. I'll do my best to answer any questions about my questions.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>