From b1a4e83b9192bd04fc232ac16dd3f32418d1c164 Mon Sep 17 00:00:00 2001 From: karl Date: Wed, 17 Nov 2021 16:30:13 +0100 Subject: [PATCH] Add basic setup with moving shape --- .gitignore | 11 +++++++++ Block.tscn | 9 +++++++ GameBoard.gd | 39 ++++++++++++++++++++++++++++++ GameBoard.tscn | 19 +++++++++++++++ Main.tscn | 8 +++++++ ShapeSquare.tscn | 17 +++++++++++++ background.png | Bin 0 -> 3373 bytes background.png.import | 35 +++++++++++++++++++++++++++ brick.png | Bin 0 -> 6397 bytes brick.png.import | 35 +++++++++++++++++++++++++++ default_env.tres | 7 ++++++ icon.png | Bin 0 -> 3305 bytes icon.png.import | 35 +++++++++++++++++++++++++++ project.godot | 54 ++++++++++++++++++++++++++++++++++++++++++ 14 files changed, 269 insertions(+) create mode 100644 .gitignore create mode 100644 Block.tscn create mode 100644 GameBoard.gd create mode 100644 GameBoard.tscn create mode 100644 Main.tscn create mode 100644 ShapeSquare.tscn create mode 100644 background.png create mode 100644 background.png.import create mode 100644 brick.png create mode 100644 brick.png.import create mode 100644 default_env.tres create mode 100644 icon.png create mode 100644 icon.png.import create mode 100644 project.godot diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4f48ad7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Godot-specific ignores +.import/ +export.cfg +export_presets.cfg + +# Imported translations (automatically generated from CSV files) +*.translation + +# Mono-specific ignores +.mono/ +data_*/ diff --git a/Block.tscn b/Block.tscn new file mode 100644 index 0000000..31ba5b1 --- /dev/null +++ b/Block.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://brick.png" type="Texture" id=1] + +[node name="Block" type="Node2D"] + +[node name="Sprite" type="Sprite" parent="."] +scale = Vector2( 0.125, 0.125 ) +texture = ExtResource( 1 ) diff --git a/GameBoard.gd b/GameBoard.gd new file mode 100644 index 0000000..20593db --- /dev/null +++ b/GameBoard.gd @@ -0,0 +1,39 @@ +extends Node2D + + +onready var active_shape: Node2D = $ShapeSquare + +const RASTER_SIZE = 64 + + +func _ready(): + $GravityTimer.connect("timeout", self, "update_board") + + +func update_board(): + if active_shape.position.y == RASTER_SIZE * 9: + # TODO: Turn into static blocks + return + + active_shape.position.y += RASTER_SIZE + + +func move_left(): + # TODO: Check for collision + active_shape.position.x -= RASTER_SIZE + + +func move_right(): + # TODO: Check for collision + active_shape.position.x += RASTER_SIZE + + +func _input(event): + if event.is_action_pressed("move_left"): + move_left() + elif event.is_action_pressed("move_right"): + move_right() + elif event.is_action_pressed("rotate"): + pass + elif event.is_action_pressed("drop"): + pass diff --git a/GameBoard.tscn b/GameBoard.tscn new file mode 100644 index 0000000..8f2ae00 --- /dev/null +++ b/GameBoard.tscn @@ -0,0 +1,19 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://background.png" type="Texture" id=1] +[ext_resource path="res://GameBoard.gd" type="Script" id=2] +[ext_resource path="res://ShapeSquare.tscn" type="PackedScene" id=3] + +[node name="GameBoard" type="Node2D"] +script = ExtResource( 2 ) + +[node name="Sprite" type="Sprite" parent="."] +scale = Vector2( 1.25, 1.25 ) +texture = ExtResource( 1 ) + +[node name="GravityTimer" type="Timer" parent="."] +process_mode = 0 +wait_time = 0.5 +autostart = true + +[node name="ShapeSquare" parent="." instance=ExtResource( 3 )] diff --git a/Main.tscn b/Main.tscn new file mode 100644 index 0000000..640b627 --- /dev/null +++ b/Main.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://GameBoard.tscn" type="PackedScene" id=1] + +[node name="Main" type="Node2D"] + +[node name="GameBoard" parent="." instance=ExtResource( 1 )] +position = Vector2( 547, 813 ) diff --git a/ShapeSquare.tscn b/ShapeSquare.tscn new file mode 100644 index 0000000..35ebad9 --- /dev/null +++ b/ShapeSquare.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://Block.tscn" type="PackedScene" id=1] + +[node name="ShapeSquare" type="Node2D"] + +[node name="Block" parent="." instance=ExtResource( 1 )] +position = Vector2( 32, 32 ) + +[node name="Block2" parent="." instance=ExtResource( 1 )] +position = Vector2( 32, -32 ) + +[node name="Block3" parent="." instance=ExtResource( 1 )] +position = Vector2( -32, -32 ) + +[node name="Block4" parent="." instance=ExtResource( 1 )] +position = Vector2( -32, 32 ) diff --git a/background.png b/background.png new file mode 100644 index 0000000000000000000000000000000000000000..256b38f4343e959c46e123267f7df31ce24c2849 GIT binary patch literal 3373 zcmeAS@N?(olHy`uVBq!ia0y~yU;;8(7&t(b#Hq6B3=E8|na<7up3cq+1x5L3nK`Kp z3>p(_C)#=(c91z5AMAQ@RfnjHj8TX>_adc7OF}iAS_8DVyhJukX?{fQ6C5PW^G(Ei@t>N|UxTf7=G!%j;qc)3lo-|a|B zR%lMOt9sSNUdb<~&lo*Z(QI4x__dtfzI&~eVV{fZ`}9n64G*Xboi{qXrPI7)xmj-W zXS>1)PgAD;m{W0O3Ad1aQS8Sby~Wp38`Ig&y41|G@X$$t@yW^DS%^U;J=FQ@3M z*oIl=7hdC14co0=pQx~Qy-xAmX99~NjtHrA1OzzAvEJagylQfiqTla{YX2Os>reDn z443PX;nr|!e)H?#{|DvU!_t!OcyqZlToXV3Q-bYQS!34C!hQX+%d41v%x~1*`%XWs z;idnj)1|s4EMIb%#jlt8-elG*Z)j9^HcJivbXmkm^1O>_%)p?h48n{ROYO^m zg6t)pzOL*~xdr*zSry}1_<=%_C9V-A&iT2ysd*&~&PAz-C8;S2<(VZJ3hti10pX2& z;tUMjVxBIJAr-gYUNvN7VBk1xaNzu(+s>@woh^26Rag($D>F7QG9&=g0s{jZ1364` z^dMP9p?082lsKMp?LhaF9dwXjpin!|`{YF&TpNYjCCExPaNDV%-D7~$0EH=VGzn25 z4GirhkiZ}`z{SXDDMVQ{2rSPiECwjlKH#N@L<0*_p-vW)!kUOe?IXSv8t^1UueMA< ZK4bkXj`s8Xo8%aPz|+;wWt~$(69BZ&-I@RZ literal 0 HcmV?d00001 diff --git a/background.png.import b/background.png.import new file mode 100644 index 0000000..1e8ce85 --- /dev/null +++ b/background.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/background.png-98289422cd7d93003950872a7b97021f.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://background.png" +dest_files=[ "res://.import/background.png-98289422cd7d93003950872a7b97021f.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 diff --git a/brick.png b/brick.png new file mode 100644 index 0000000000000000000000000000000000000000..c279ca61ab30adc9a98990ed45403eecab2548eb GIT binary patch literal 6397 zcmcgwdpy+Z)?YK@mWXyrBD9-OgiMUPDT&#+c2P>kF3ffpLZ}(r?y^NPLN0?YA{9j% za+_VLJu$Q+avLg_q@ji|a(SQWocG=D=Y010ob#SPUZ3%qHP3JTo@cFR-M(x6>g;GM zE4@Y<0A$H_J9YzL5s3vU3G_7?)iw)&Iqhq0?M$||Ru2gc_VEqy2GB}5nPOr0n55D` z*<29bVPBhuib8U74eRrh3?vB`8V>=xm)^KElxeM&hcxC#=^D^y_8++_NykUEY;c`|8e%W z#r{Z^tIv_1UD7+~?TXKYt0lT3;`};~)g`YjjKABKJoL)8_-yAMB8Guvl zIPTDi(~YFZX<8e3?-#Tx7%276C)RBgpX|l1_4f#_IGJM!OFnFhz^SNU*SkIU2o{V@ zJ>@M}>=_-G%-#^nGThsuf$So2WS8v@&<9WWc?E9ME3~pC#Lg`YKzF_99}`tz6@eBd z!^sXdl7mZ^%ZWks>TA|$Nh#dsK)7{qV4!zUI9P{z{}}G=r5@=U{*$^b*}-{#+%iR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KRK}t+0ukQSCOyP$^HEC+zzX51M#=e-?*xHWMDRcLdIV41daHy{HimwDo z6!_O=*(}MK!YeyJpmgu(cF1tpEv}m;0s8{4z4HlHyMxDncn8zs!g+OXEk`CeEj}9N zq#Ag1$#jyV_5AjYQg*!mS->;`S^;iU)ih9D+eks)H2z`1RHny;F<^CEwk+}d^k^Ph zl);*XQ|ayL;rZWh=fA(G2#AJz1&r&as9I8S@9m3Owftrb5n*)pTluK^9LHOFIo{G2 zG}l$9R*{<+L2hCsOJ~Lt6Q-rRub*8X{*4{)e}>%=_&DxOFeq1LRia4Yyj*Tyynw>F zxkKf(MiaG0*L|V-^Zhtvg-(-|F0&1rU8bqab*n5TT8~C860O$|6Rt%P1=1(EjIQZ% z;Y^PU2VC*~^2!sG?mbBPS0~0yd-+086)+rHjhfk6>CB$t`o%;=kdYF9NwiKkwbIpN z;_FlOuHQHHSZ&@fUuSI-S*t`DjsiIB z{=1M@JKVC$a8z{2;xCPfRb{~T>uo#5rL4L+z9n`rSUt3Tt nAZ`TZm+q1gPVN84&*%Ra7her>#-hHS00000NkvXXu0mjf|6N@O literal 0 HcmV?d00001 diff --git a/icon.png.import b/icon.png.import new file mode 100644 index 0000000..a4c02e6 --- /dev/null +++ b/icon.png.import @@ -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 diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..c5b9213 --- /dev/null +++ b/project.godot @@ -0,0 +1,54 @@ +; 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="Tetris" +run/main_scene="res://Main.tscn" +config/icon="res://icon.png" + +[display] + +window/size/width=1080 +window/size/height=1920 +window/size/test_width=576 +window/size/test_height=1024 +window/stretch/mode="2d" + +[input] + +move_left={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +move_right={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +rotate={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +drop={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} + +[physics] + +common/enable_pause_aware_picking=true + +[rendering] + +environment/default_environment="res://default_env.tres"