From 686fbd761e06ad5d969fcab17edf9fbf15449b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=BCbner?= Date: Thu, 22 Jun 2017 15:31:10 +0200 Subject: [PATCH] initial commit. --- .gitattributes | 6 ++++++ .gitignore | 1 + Game.tscn | 9 +++++++++ Player.tscn | 27 +++++++++++++++++++++++++++ engine.cfg | 14 ++++++++++++++ icon.png | 3 +++ icon.png.flags | 1 + player_controller.gd | 13 +++++++++++++ 8 files changed, 74 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Game.tscn create mode 100644 Player.tscn create mode 100644 engine.cfg create mode 100644 icon.png create mode 100644 icon.png.flags create mode 100644 player_controller.gd diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b386966 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +*.bmp filter=lfs diff=lfs merge=lfs -text +*.wav filter=lfs diff=lfs merge=lfs -text +*.mp3 filter=lfs diff=lfs merge=lfs -text +*.ogg filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad6f013 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +export.cfg diff --git a/Game.tscn b/Game.tscn new file mode 100644 index 0000000..7ce2ead --- /dev/null +++ b/Game.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=2 format=1] + +[ext_resource path="res://Player.tscn" type="PackedScene" id=1] + +[node name="Game" type="Node"] + +[node name="Player" parent="." instance=ExtResource( 1 )] + + diff --git a/Player.tscn b/Player.tscn new file mode 100644 index 0000000..9fdbed5 --- /dev/null +++ b/Player.tscn @@ -0,0 +1,27 @@ +[gd_scene load_steps=3 format=1] + +[ext_resource path="res://player_controller.gd" type="Script" id=1] +[ext_resource path="res://icon.png" type="Texture" id=2] + +[node name="Player" type="Control"] + +focus/ignore_mouse = false +focus/stop_mouse = true +size_flags/horizontal = 2 +size_flags/vertical = 2 +margin/left = 0.0 +margin/top = 0.0 +margin/right = 40.0 +margin/bottom = 40.0 +script/script = ExtResource( 1 ) + +[node name="Sprite" type="Sprite" parent="."] + +texture = ExtResource( 2 ) + +[node name="Listener" type="Listener" parent="."] + +_import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) +current = false + + diff --git a/engine.cfg b/engine.cfg new file mode 100644 index 0000000..5098c18 --- /dev/null +++ b/engine.cfg @@ -0,0 +1,14 @@ +; 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 + + +[application] + + +name="Scribe" +icon="res://icon.png" diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..cd30899 --- /dev/null +++ b/icon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02a8b4bd010a5f38309d61e524a289b5151b9b2c55bfb69d8a9def74d67202ba +size 2736 diff --git a/icon.png.flags b/icon.png.flags new file mode 100644 index 0000000..5130fd1 --- /dev/null +++ b/icon.png.flags @@ -0,0 +1 @@ +gen_mipmaps=false diff --git a/player_controller.gd b/player_controller.gd new file mode 100644 index 0000000..af0c061 --- /dev/null +++ b/player_controller.gd @@ -0,0 +1,13 @@ +extends Control + +# class member variables go here, for example: +# var a = 2 +# var b = "textvar" + +func _ready(): + # Called every time the node is added to the scene. + # Initialization here + pass + +func _update(): + pass