Skip to content

Commit

Permalink
Merge pull request #6 from alloy-city/dev
Browse files Browse the repository at this point in the history
Godot hello world.
  • Loading branch information
bernardodesousa authored Mar 30, 2019
2 parents e508ff7 + 513c5b9 commit 0b845d5
Show file tree
Hide file tree
Showing 12 changed files with 200 additions and 0 deletions.
Binary file added .vscode/ipch/81cf91e58019ec48/mmap_address.bin
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="8dd9ff1eebf38898a54579d8c01b0a88"
dest_md5="da70afec3c66d4e872db67f808e12edb"

Binary file not shown.
7 changes: 7 additions & 0 deletions src/HelloWorld/Hello.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[gd_scene format=2]

[node name="Label" type="Label"]
margin_right = 84.0
margin_bottom = 14.0
text = "Hello, World!"

7 changes: 7 additions & 0 deletions src/HelloWorld/RunningTime.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends Label

var accum = 0

func _process(delta):
accum += delta
text = str(accum) # 'text' is a built-in label property.
7 changes: 7 additions & 0 deletions src/HelloWorld/UI_example.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends Panel

func _ready():
get_node("Button").connect("pressed", self, "_on_Button_pressed")

func _on_Button_pressed():
get_node("Label").text = "AViS"
53 changes: 53 additions & 0 deletions src/HelloWorld/UI_example.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[gd_scene load_steps=4 format=2]

[ext_resource path="res://UI_example.gd" type="Script" id=1]
[ext_resource path="res://Hello.tscn" type="PackedScene" id=2]
[ext_resource path="res://RunningTime.gd" type="Script" id=3]

[node name="Panel" type="Panel"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -129.0
margin_top = -71.5
margin_right = 129.0
margin_bottom = 71.5
script = ExtResource( 1 )

[node name="Label" type="Label" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -68.0
margin_top = -35.1884
margin_right = 68.0
margin_bottom = -14.1884
text = "-----"
align = 1

[node name="Button" type="Button" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -20.5
margin_top = 21.6892
margin_right = 20.5
margin_bottom = 41.6892
text = "FOO"

[node name="Title" parent="." instance=ExtResource( 2 )]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -42.0
margin_top = -26.8788
margin_right = 42.0
margin_bottom = -12.8788

[node name="RunningTime" type="Label" parent="."]
margin_right = 40.0
margin_bottom = 14.0
script = ExtResource( 3 )

8 changes: 8 additions & 0 deletions src/HelloWorld/default_env.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[gd_resource type="Environment" load_steps=2 format=2]

[sub_resource type="ProceduralSky" id=1]

[resource]
background_mode = 2
background_sky = SubResource( 1 )

57 changes: 57 additions & 0 deletions src/HelloWorld/export_presets.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[preset.0]

name="AViS_v0.1"
platform="Linux/X11"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="/home/barba/AViS_v0.1.x86_64"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""

[preset.0.options]

texture_format/bptc=false
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
custom_template/release=""
custom_template/debug=""

[preset.1]

name="AViS_v0.1"
platform="Windows Desktop"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="/home/barba/AViS_builds/0.1/Windows/AViS_v0.1.exe"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""

[preset.1.options]

texture_format/bptc=false
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
custom_template/release=""
custom_template/debug=""
application/icon=""
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
Binary file added src/HelloWorld/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/HelloWorld/icon.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
24 changes: 24 additions & 0 deletions src/HelloWorld/project.godot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters

config_version=4

_global_script_classes=[ ]
_global_script_class_icons={

}

[application]

config/name="HelloWorld"
run/main_scene="res://UI_example.tscn"
config/icon="res://icon.png"

[rendering]

environment/default_environment="res://default_env.tres"

0 comments on commit 0b845d5

Please sign in to comment.