Commit 876fb7b3 authored by Viktor Lidholt's avatar Viktor Lidholt

Laser speed now accounts for scrolling speed in demo game

parent d1a56611
...@@ -173,7 +173,9 @@ class Laser extends GameObject { ...@@ -173,7 +173,9 @@ class Laser extends GameObject {
impact = 1.0 + level * 0.5; impact = 1.0 + level * 0.5;
// Offset for movement // Offset for movement
_offset = new Offset(math.cos(radians(r)) * 10.0, math.sin(radians(r)) * 10.0); _offset = new Offset(
math.cos(radians(r)) * 8.0,
math.sin(radians(r)) * 8.0 - f.playerState.scrollSpeed);
// Drawing properties // Drawing properties
rotation = r + 90.0; rotation = r + 90.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment