Now, instead of a variable for where the character should be put onto the screen that changes directly with wasd, we have two different positions. One is the position in the 3D game world, x and z for now, and the other is the position for where the character should be put pygame x and y co-ordinates. For example, as W is pressed, the 3D world position will change, in this case the z value will increase. However, as this is happening the screen position x increases and y decreases, making the character move up and to the right. Remember that the game is isometric and also y co-ordinates in pygame increase as you go down. I will commit this to the git repo as soon as I figure that out.
Comments
Post a Comment