Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed May 27, 2020
1 parent 0e57d98 commit 89a557b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions project.godot
Expand Up @@ -45,6 +45,7 @@ config/icon="res://assets/icon.png"
[autoload]

Constants="*res://scripts/utils/Constants.gd"
Simulation="*res://scripts/Simulation.gd"

[input]

Expand Down
4 changes: 3 additions & 1 deletion scenes/Asteroid.tscn
Expand Up @@ -27,7 +27,9 @@ points = PoolVector3Array( -0.771953, 1.00089, 0.702392, -0.713991, 1.01925, 0.7

[node name="Asteroid" type="RigidBody"]
collision_layer = 5
mass = 6000.0
axis_lock_linear_x = true
axis_lock_linear_y = true
axis_lock_linear_z = true
script = ExtResource( 2 )

[node name="MeshInstance" type="MeshInstance" parent="."]
Expand Down
4 changes: 2 additions & 2 deletions scenes/SellResourceItem.tscn → scenes/ShopItem.tscn
@@ -1,8 +1,8 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://scenes/SellResourceItem.gd" type="Script" id=1]
[ext_resource path="res://scripts/ShopItem.gd" type="Script" id=1]

[node name="SellResourceItem" type="HBoxContainer"]
[node name="ShopItem" type="HBoxContainer"]
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
Expand Down
4 changes: 2 additions & 2 deletions scenes/StationMenu.gd
Expand Up @@ -5,7 +5,7 @@ signal undock
var current_player = null
var current_station = null

var SellResourceItem = preload("res://scenes/SellResourceItem.tscn")
var ShopItem = preload("res://scenes/ShopItem.tscn")

func set_player(player):
current_player = player
Expand All @@ -22,7 +22,7 @@ func reset_sell_tab():
# Add new children
var cargo = current_player.cargo
for resource_type in cargo:
var item = SellResourceItem.instance()
var item = ShopItem.instance()
item.set_resource(resource_type, cargo[resource_type], 10)
$TabContainer/Sell/Scroll/List.add_child(item)

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions scripts/Simulation.gd
@@ -0,0 +1,4 @@
extends Node

func _process(delta):
pass

0 comments on commit 89a557b

Please sign in to comment.