mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-29 20:29:00 +02:00
Stating to polish the time travel levels...
This commit is contained in:
parent
cb7742466b
commit
eb4f46e52f
12 changed files with 209 additions and 82 deletions
scenes
|
@ -46,14 +46,14 @@ func apply_forces():
|
|||
var offset = Vector2(-80, 0)
|
||||
|
||||
for c in children.keys():
|
||||
if type == "ref" or type == "head":
|
||||
offset = Vector2(0, 80)
|
||||
# if type == "ref" or type == "head":
|
||||
# offset = Vector2(0, 80)
|
||||
if repository.objects.has(c):
|
||||
var other = repository.objects[c]
|
||||
if other.visible:
|
||||
var d = other.position.distance_to(position+offset)
|
||||
var dir = (other.position - (position+offset)).normalized()
|
||||
var f = (d*0.12)
|
||||
var f = (d*0.06)
|
||||
position += dir*f
|
||||
other.position -= dir*f
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue