theunreplicated / coloradocollegegame

Automatically exported from code.google.com/p/coloradocollegegame
0 stars 0 forks source link

Up and Down (3rd dimension) not yet supported #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Our current implementation of the "nudgeElement" function in World.java
(which moves a player in a cardinal direction) can only move in two
dimensions. At some point, we should think about how we would add
functionality for the 3rd dimension. (e.g., if I as a user press some key,
like 'u', my character's position on the z-axis increases.)

To do this, we'll need two new variables in the Constants class to
represent vertical up and vertical down. We'll then need to change how
"nudgeElement" works. It would probably also be a good idea to make the
function a bit less convoluted (maybe to use a switch statement instead of
crazy math).

Original issue reported on code.google.com by Omer.Ba...@gmail.com on 1 Feb 2007 at 5:15

GoogleCodeExporter commented 8 years ago
Movement along the Z axis is now supported! Changes are in the ClientIO and
ClientInput  classes (the PAGE_UP and PAGE_DOWN keys move along the z-axis). 

Representation3D reflects 3D movement, but Representation2D does not.

Original comment by joelwr...@gmail.com on 6 Mar 2007 at 6:30