1
General discussions / SFML Box2D another example
« on: February 23, 2012, 05:52:39 pm »Quote from: "eXpl0it3r"
Yeah I know what the error means, the problem is just finding were the given code goes wild or what's the problem with using vectors over an array.
I took a look at your little game from github. I still have a bit a diffrent definition on clean code but hey you go something done, I didn't. ^^
Anyway there is some problem in the movement. If an arrow key is pressed you do not reposition the player. Also if you would reposition and a arrow key is pressed it would only move left or right since you override the y-velocity...
haha my movement is very hacked! it was quick. it took me a little bit to do the rest, like getting him drawn correctly, but
I do see what you're sayin and ill have that fixed. As well as adding a simple item and enemy class.
probably no real AI, just a simple projectile. aimed at the player.
I do plan on continuing to expand my code in efficiency and practicality with little projects like these, so I appreciate the feedback!