added small note, before Actor reconfigure
This commit is contained in:
parent
2897245701
commit
9775f76e1c
1 changed files with 3 additions and 0 deletions
|
|
@ -183,6 +183,9 @@ class game is Game {
|
|||
} //tick_camera
|
||||
|
||||
tick_starfield(delta) {
|
||||
//todo: 20191130 - found an interesting bug, where if you (while going super fast) travel out too far, and return to [0,0], the stars will be slightly misaligned. must have something to do with a floating point error while moving the stars around. Went to 25,000 out and saw a slight misalign
|
||||
// to fix, can make scrolling more accurate somehow, maybe track a stars movement and see where it gets it's error. probably when having them switch sides
|
||||
// another option is to restrict how far out the player can travel from [0,0], either with a hard limit, or some gameplay thing that makes them stay close to base
|
||||
Transform.set_pos(_star_tracker, Transform.get_pos_x(app.camera) + _cam_offset_x, Transform.get_pos_y(app.camera) + _cam_offset_y, -1)
|
||||
// loop through stars[]
|
||||
for(star in _stars) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue