Description:
Adjust input and simulation speed.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -49,22 +49,22 | |||
|
49 | 49 | { |
|
50 | 50 | SendMessage(new MoveCameraMessage{ Movement = new Vector2(0, 2)}); |
|
51 | 51 | } |
|
52 |
|
|
|
52 | if (keyboardCur.IsKeyDown(Keys.Up)) | |
|
53 | 53 | { |
|
54 | 54 | SendMessage(new MoveCameraMessage{ Movement = new Vector2(0, -2)}); |
|
55 | 55 | |
|
56 | 56 | } |
|
57 |
|
|
|
57 | if (keyboardCur.IsKeyDown(Keys.Left)) | |
|
58 | 58 | { |
|
59 | 59 | SendMessage(new MoveCameraMessage{ Movement = new Vector2(-2, 0)}); |
|
60 | 60 | |
|
61 | 61 | } |
|
62 |
|
|
|
62 | if (keyboardCur.IsKeyDown(Keys.Right)) | |
|
63 | 63 | { |
|
64 | 64 | SendMessage(new MoveCameraMessage {Movement = new Vector2(2, 0)}); |
|
65 | 65 | |
|
66 | 66 | } |
|
67 |
|
|
|
67 | if (keyboardCur.IsKeyDown(Keys.Subtract) && keyboardPrev.IsKeyUp(Keys.Subtract)) | |
|
68 | 68 | { |
|
69 | 69 | SendMessage(new ZoomCameraMessage {ZoomIn = false}); |
|
70 | 70 | } |
@@ -130,7 +130,7 | |||
|
130 | 130 | //gdm.SynchronizeWithVerticalRetrace = false; |
|
131 | 131 | IsFixedTimeStep = false; |
|
132 | 132 | |
|
133 |
this.simulation = new Simulation(this.squaresAcross, this.squaresDown, new float[] {16.66667f*60, 16.66667f*30 |
|
|
133 | this.simulation = new Simulation(this.squaresAcross, this.squaresDown, new float[] {16.66667f*240, 16.66667f*120, 16.66667f*60, 16.66667f*30f, 16.66667f*1 }); | |
|
134 | 134 | |
|
135 | 135 | foreach (List<Cell> row in this.simulation.map.cells) |
|
136 | 136 | { |
You need to be logged in to leave comments.
Login now