Browse Source

Init repo under Godot

Attempting to setup Logger v1.3
Apollo 2 years ago
commit
dab4fa615a
10 changed files with 108 additions and 0 deletions
  1. 12 0
      .gitignore
  2. 26 0
      Global.gd
  3. 14 0
      Global.tscn
  4. 1 0
      addons/Logger
  5. BIN
      bin/x11/release/libgitapi.so
  6. 5 0
      default_env.tres
  7. 16 0
      git_api.gdnlib
  8. 9 0
      git_api.gdns
  9. BIN
      icon.png
  10. 25 0
      project.godot

+ 12 - 0
.gitignore

@@ -0,0 +1,12 @@
+
+# Ignore Godot .import directory
+.import
+
+# Ignore Godot .import files
+*.import
+
+# Ignore Log files
+*.log
+
+# Ignore Log directory
+logs/

+ 26 - 0
Global.gd

@@ -0,0 +1,26 @@
+extends Node2D
+
+# The direction at which this engine node should fire on
+# MAIN = The main engine shooting typically from the back of the ship (Propels the craft forward)
+# REVERSE = Reverse thrusters firing typically from the front of the ship (Propels the craft backward)
+# LEFT = This makes it appear as though the ship is being pushed to rotate left
+# RIGHT = This makes it appear as though the ship is being pushed to rotate right
+enum engine_dir {MAIN = 1, REVERSE = 2, LEFT = 3, RIGHT = 4}
+
+# Access the logging
+onready var logy = $Logger
+
+# Yellow or RED alerts for various systems
+enum alerts {NONE = 0, YELLOW = 1, RED = 2}
+
+# Directionals used based on 6 segment shields
+enum directionals {NONE = -1, FRONT = 0, BACK = 3, FRONT_LEFT = 2, FRONT_RIGHT = 1, BACK_LEFT = 4, BACK_RIGHT = 5}
+
+# Turret Mount types
+enum mount_type {NONE = 0, GUN = 1, LASER = 2, ANTI_MISSILE = 3}
+
+# Ship types
+enum ship_type {TRANSPORT = 1, CARGO = 2, WARSHIP = 3}
+
+# Planet type
+enum planet_type {NORMAL_EARTH=1, DRY_EARTH=2, WET_EARTH=3}

+ 14 - 0
Global.tscn

@@ -0,0 +1,14 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://Global.gd" type="Script" id=1]
+[ext_resource path="res://addons/Logger/log_base.gd" type="Script" id=2]
+
+[node name="Global" type="Node2D"]
+script = ExtResource( 1 )
+
+[node name="Logger" type="Node" parent="."]
+script = ExtResource( 2 )
+__meta__ = {
+"_editor_description_": "Logger V1.2 ApolloX"
+}
+file_dir = "res://logs/"

+ 1 - 0
addons/Logger

@@ -0,0 +1 @@
+Subproject commit 7de6926f25318410321ce507bca92b2768a408ab

BIN
bin/x11/release/libgitapi.so


+ 5 - 0
default_env.tres

@@ -0,0 +1,5 @@
+[gd_resource type="Environment" load_steps=2 format=2]
+[sub_resource type="ProceduralSky" id=1]
+[resource]
+background_mode = 2
+background_sky = SubResource( 1 )

+ 16 - 0
git_api.gdnlib

@@ -0,0 +1,16 @@
+[general]
+
+singleton=true
+load_once=true
+symbol_prefix="godot_"
+reloadable=false
+
+[entry]
+
+Windows.64="res://bin/win64/release/libgitapi.dll"
+X11.64="res://bin/x11/release/libgitapi.so"
+
+[dependencies]
+
+Windows.64=[  ]
+X11.64=[  ]

+ 9 - 0
git_api.gdns

@@ -0,0 +1,9 @@
+[gd_resource type="NativeScript" load_steps=2 format=2]
+
+[ext_resource path="res://git_api.gdnlib" type="GDNativeLibrary" id=1]
+
+[resource]
+resource_name = "GitAPI"
+class_name = "GitAPI"
+library = ExtResource( 1 )
+script_class_name = "GitAPI"

BIN
icon.png


+ 25 - 0
project.godot

@@ -0,0 +1,25 @@
+; 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
+
+[application]
+
+config/name="Invader Wars"
+config/icon="res://icon.png"
+
+[physics]
+
+common/enable_pause_aware_picking=true
+
+[rendering]
+
+quality/driver/driver_name="GLES2"
+vram_compression/import_etc=true
+vram_compression/import_etc2=false
+environment/default_environment="res://default_env.tres"