fixed camera movement when zoomed
This commit is contained in:
parent
ee7f0e3d69
commit
7c30b16357
@ -9,8 +9,8 @@ private:
|
|||||||
Coord pos;
|
Coord pos;
|
||||||
Info info;
|
Info info;
|
||||||
bool dead;
|
bool dead;
|
||||||
char memory[DUDE_MEMORY_SIZE];
|
char memory[DUDE_MEMORY_SIZE];
|
||||||
BehaviorFunction behavior;
|
BehaviorFunction behavior;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ public:
|
|||||||
virtual void renderGL(Scene *scene);
|
virtual void renderGL(Scene *scene);
|
||||||
virtual void resizeGL(int w, int h);
|
virtual void resizeGL(int w, int h);
|
||||||
|
|
||||||
void cameraMove(int x, int y) { m_camera.x -= x*m_camera.z; m_camera.y += y*m_camera.z; }
|
void cameraMove(int x, int y) { m_camera.x -= x; m_camera.y += y; }
|
||||||
void cameraZoom(int nbScrolls);
|
void cameraZoom(int nbScrolls);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user