mirror of
https://github.com/Relintai/mono_sample.git
synced 2024-11-08 10:12:14 +01:00
Test project.
This commit is contained in:
parent
9d22dcfb3e
commit
b72bacac70
13
game/Main.tscn
Normal file
13
game/Main.tscn
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://TestSprite.cs" type="Script" id=1]
|
||||||
|
[ext_resource path="res://icon.png" type="Texture" id=2]
|
||||||
|
|
||||||
|
[node name="Main" type="Node"]
|
||||||
|
|
||||||
|
[node name="Node2D" type="Node2D" parent="."]
|
||||||
|
position = Vector2( 515, 262 )
|
||||||
|
|
||||||
|
[node name="TestSprite" type="Sprite" parent="Node2D"]
|
||||||
|
texture = ExtResource( 2 )
|
||||||
|
script = ExtResource( 1 )
|
6
game/Mono Test.csproj
Normal file
6
game/Mono Test.csproj
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<Project Sdk="Godot.NET.Sdk/3.3.0">
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net472</TargetFramework>
|
||||||
|
<RootNamespace>MonoTest</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
19
game/Mono Test.sln
Normal file
19
game/Mono Test.sln
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 2012
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono Test", "Mono Test.csproj", "{E216B347-14C8-478B-A438-25504B10640F}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
ExportDebug|Any CPU = ExportDebug|Any CPU
|
||||||
|
ExportRelease|Any CPU = ExportRelease|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{E216B347-14C8-478B-A438-25504B10640F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{E216B347-14C8-478B-A438-25504B10640F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{E216B347-14C8-478B-A438-25504B10640F}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
||||||
|
{E216B347-14C8-478B-A438-25504B10640F}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
||||||
|
{E216B347-14C8-478B-A438-25504B10640F}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
||||||
|
{E216B347-14C8-478B-A438-25504B10640F}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
22
game/TestSprite.cs
Normal file
22
game/TestSprite.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using Godot;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
public class TestSprite : Sprite
|
||||||
|
{
|
||||||
|
// Declare member variables here. Examples:
|
||||||
|
// private int a = 2;
|
||||||
|
// private string b = "text";
|
||||||
|
|
||||||
|
// Called when the node enters the scene tree for the first time.
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
public override void _Process(float delta)
|
||||||
|
{
|
||||||
|
//Position += new Vector2(PMath.sin(delta) * 100, PMath.cos(delta) * 100);
|
||||||
|
Position += new Vector2(1, 1);
|
||||||
|
}
|
||||||
|
}
|
7
game/default_env.tres
Normal file
7
game/default_env.tres
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[gd_resource type="Environment3D" load_steps=2 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=1]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 1 )
|
BIN
game/icon.png
Normal file
BIN
game/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
35
game/icon.png.import
Normal file
35
game/icon.png.import
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[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
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
29
game/project.pandemonium
Normal file
29
game/project.pandemonium
Normal file
@ -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
|
||||||
|
|
||||||
|
[application]
|
||||||
|
|
||||||
|
config/name="Mono Test"
|
||||||
|
run/main_scene="res://Main.tscn"
|
||||||
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
|
[mono]
|
||||||
|
|
||||||
|
project/assembly_name="Mono Test"
|
||||||
|
|
||||||
|
[physics]
|
||||||
|
|
||||||
|
common/enable_pause_aware_picking=true
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
vram_compression/import_etc=true
|
||||||
|
vram_compression/import_etc2=false
|
||||||
|
environment/default_environment="res://default_env.tres"
|
Loading…
Reference in New Issue
Block a user