diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-06-27 15:52:39 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-06-27 15:52:39 -0300 |
commit | 2b64f73b0459190d20b2f6de39275ee7979317c4 (patch) | |
tree | c601222ba20cacc80fba7ff43b5de425db13519c /demos/2d | |
parent | a67486a39ee629acac068a6d014015944cf83bb3 (diff) |
more code completion improvements
-calltip dissapears with more types of keypresses or when pressing ')'
-properly looks into autoloaded scripts or nodes with another script for
script functions/variables/etc.
Diffstat (limited to 'demos/2d')
-rw-r--r-- | demos/2d/space_shooter/game_state.gd | 2 | ||||
-rw-r--r-- | demos/2d/space_shooter/rail.gd | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/demos/2d/space_shooter/game_state.gd b/demos/2d/space_shooter/game_state.gd index 26ef086f14..f66d0fa8fa 100644 --- a/demos/2d/space_shooter/game_state.gd +++ b/demos/2d/space_shooter/game_state.gd @@ -8,12 +8,12 @@ var max_points = 0 func _ready(): var f = File.new() #load high score + if (f.open("user://highscore",File.READ)==OK): max_points=f.get_var() - func game_over(): if (points>max_points): max_points=points diff --git a/demos/2d/space_shooter/rail.gd b/demos/2d/space_shooter/rail.gd index 803a09fe84..22ebd02670 100644 --- a/demos/2d/space_shooter/rail.gd +++ b/demos/2d/space_shooter/rail.gd @@ -14,7 +14,6 @@ var offset=0 func _process(delta): - offset+=delta*SPEED set_pos(Vector2(offset,0)) |