Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Mar 30, 2020
0 parents commit 18e4f35
Show file tree
Hide file tree
Showing 28 changed files with 1,450 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.mono
.import
.idea
77 changes: 77 additions & 0 deletions Godotcraft.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Tools</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2020A1C7-14CE-470D-A7F7-C823B9DA682D}</ProjectGuid>
<OutputType>Library</OutputType>
<OutputPath>.mono\temp\bin\$(Configuration)</OutputPath>
<RootNamespace>Godotcraft</RootNamespace>
<AssemblyName>Godotcraft</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<GodotProjectGeneratorVersion>1.0.7374.16792</GodotProjectGeneratorVersion>
<BaseIntermediateOutputPath>.mono\temp\obj</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)</IntermediateOutputPath>
<ApiConfiguration Condition=" '$(Configuration)' != 'Release' ">Debug</ApiConfiguration>
<ApiConfiguration Condition=" '$(Configuration)' == 'Release' ">Release</ApiConfiguration>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<DefineConstants>$(GodotDefineConstants);GODOT;DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<DefineConstants>$(GodotDefineConstants);GODOT;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Tools|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<DefineConstants>$(GodotDefineConstants);GODOT;DEBUG;TOOLS;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="GodotSharp">
<HintPath>$(ProjectDir)\.mono\assemblies\$(ApiConfiguration)\GodotSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="GodotSharpEditor" Condition=" '$(Configuration)' == 'Tools' ">
<HintPath>$(ProjectDir)\.mono\assemblies\$(ApiConfiguration)\GodotSharpEditor.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="scripts\network\protocol\DataTypes.cs" />
<Compile Include="scripts\network\protocol\handshake\HandshakePacket.cs" />
<Compile Include="scripts\network\protocol\Packet.cs" />
<Compile Include="scripts\network\protocol\PacketDirection.cs" />
<Compile Include="scripts\network\protocol\PacketRegistry.cs" />
<Compile Include="scripts\network\protocol\PacketState.cs" />
<Compile Include="scripts\network\protocol\status\client\PingPacket.cs" />
<Compile Include="scripts\network\protocol\status\client\StatusRequestPacket.cs" />
<Compile Include="scripts\network\protocol\status\server\PongPacket.cs" />
<Compile Include="scripts\network\protocol\status\server\StatusResponsePacket.cs" />
<Compile Include="scripts\network\protocol\Util.cs" />
<Compile Include="scripts\screens\MainMenu.cs" />
<Compile Include="scripts\screens\OptionsScreen.cs" />
<Compile Include="scripts\screens\ServerListScreen.cs" />
</ItemGroup>
<ItemGroup>
<Content Include=".gitignore" />
<Content Include="README.md" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
19 changes: 19 additions & 0 deletions Godotcraft.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Godotcraft", "Godotcraft.csproj", "{2020A1C7-14CE-470D-A7F7-C823B9DA682D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Tools|Any CPU = Tools|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2020A1C7-14CE-470D-A7F7-C823B9DA682D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2020A1C7-14CE-470D-A7F7-C823B9DA682D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2020A1C7-14CE-470D-A7F7-C823B9DA682D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2020A1C7-14CE-470D-A7F7-C823B9DA682D}.Release|Any CPU.Build.0 = Release|Any CPU
{2020A1C7-14CE-470D-A7F7-C823B9DA682D}.Tools|Any CPU.ActiveCfg = Tools|Any CPU
{2020A1C7-14CE-470D-A7F7-C823B9DA682D}.Tools|Any CPU.Build.0 = Tools|Any CPU
EndGlobalSection
EndGlobal
25 changes: 25 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Reflection;

// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.

[assembly: AssemblyTitle("Godotcraft")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("1.0.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Godotcraft

Minecraft, but using the godot engine

# Status

30.03.2020: Inital setup, a few menus, half assed version of a server list ping
8 changes: 8 additions & 0 deletions ServerListScreen.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[gd_scene format=2]

[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
7 changes: 7 additions & 0 deletions default_env.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[gd_resource type="Environment" load_steps=2 format=2]

[sub_resource type="ProceduralSky" id=1]

[resource]
background_mode = 2
background_sky = SubResource( 1 )
42 changes: 42 additions & 0 deletions export_presets.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[preset.0]

name="Windows Desktop"
platform="Windows Desktop"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
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
binary_format/embed_pck=false
custom_template/release=""
custom_template/debug=""
codesign/enable=false
codesign/identity_type=0
codesign/identity=""
codesign/password=""
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PoolStringArray( )
application/icon=""
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
Binary file added 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 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
29 changes: 29 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
; 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="Godotcraft"
run/main_scene="res://screens/MainMenu.tscn"
config/icon="res://icon.png"

[mono]

debugger_agent/port=50000
debugger_agent/wait_timeout=10000

[rendering]

environment/default_environment="res://default_env.tres"
50 changes: 50 additions & 0 deletions screens/MainMenu.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://scripts/screens/MainMenu.cs" type="Script" id=1]

[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="CenterContainer" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 478.0
margin_top = 257.0
margin_right = 545.0
margin_bottom = 343.0
alignment = 1

[node name="Title" type="Label" parent="CenterContainer/VBoxContainer"]
margin_right = 67.0
margin_bottom = 14.0
text = "Godotcraft"
align = 1
valign = 1

[node name="Play" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 18.0
margin_right = 67.0
margin_bottom = 38.0
text = "Play"

[node name="Options" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 42.0
margin_right = 67.0
margin_bottom = 62.0
text = "Options"

[node name="Quit" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 66.0
margin_right = 67.0
margin_bottom = 86.0
text = "Quit"
40 changes: 40 additions & 0 deletions screens/OptionsScreen.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://scripts/screens/OptionsScreen.cs" type="Script" id=1]

[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="CenterContainer" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="HBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 486.0
margin_top = 281.0
margin_right = 537.0
margin_bottom = 319.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Label" type="Label" parent="CenterContainer/HBoxContainer"]
margin_right = 51.0
margin_bottom = 14.0
text = "Options"
align = 1
valign = 1

[node name="Back" type="Button" parent="CenterContainer/HBoxContainer"]
margin_top = 18.0
margin_right = 51.0
margin_bottom = 38.0
text = "Back"
Loading

0 comments on commit 18e4f35

Please sign in to comment.