Third Prototpye

This commit is contained in:
Exobyt 2024-08-20 13:52:09 +02:00
parent e7d50232b2
commit 08ae4632d4
2 changed files with 8 additions and 8 deletions

View file

@ -12,7 +12,7 @@ config_version=5
config/name="Texpand" config/name="Texpand"
config/description="Submission for the GMTK Game jam 2024. Tetris with special Blocks that expands" config/description="Submission for the GMTK Game jam 2024. Tetris with special Blocks that expands"
config/version="0.1.1" config/version="0.1.2"
config/tags=PackedStringArray("game_jam") config/tags=PackedStringArray("game_jam")
run/main_scene="res://scenes/Main/main.tscn" run/main_scene="res://scenes/Main/main.tscn"
config/features=PackedStringArray("4.3", "GL Compatibility") config/features=PackedStringArray("4.3", "GL Compatibility")
@ -30,7 +30,6 @@ window/size/viewport_width=1080
window/size/viewport_height=1280 window/size/viewport_height=1280
window/stretch/mode="viewport" window/stretch/mode="viewport"
window/stretch/aspect="expand" window/stretch/aspect="expand"
window/stretch/scale=0.5
window/handheld/orientation=1 window/handheld/orientation=1
[editor] [editor]

View file

@ -185,7 +185,8 @@ func getNewPatterns():
newPatterns[0].type = GLOBAL.BLOCKTYPES.HEAVY newPatterns[0].type = GLOBAL.BLOCKTYPES.HEAVY
newPatterns.shuffle() newPatterns.shuffle()
newPatterns[0].expand = true newPatterns[0].expand = true
#for i in newPatterns:
#i.expand = true
newPatterns.shuffle() newPatterns.shuffle()
patternsArray.append_array(newPatterns) patternsArray.append_array(newPatterns)
@ -249,8 +250,7 @@ func test():
if i.turningPoint: if i.turningPoint:
currentPattern.set_scale(Vector2(2,2)) currentPattern.set_scale(Vector2(2,2))
currentPattern.moveToPosition(i.global_position-spawnpoint.position) currentPattern.moveToPosition(i.global_position-spawnpoint.position)
#currentPattern.position.x - 64
#if i.is_in_group("Block"):
for j in await currentPattern.getCollidingBorder(): for j in await currentPattern.getCollidingBorder():
if j.is_in_group("Floor"): if j.is_in_group("Floor"):
@ -275,6 +275,10 @@ func test():
for i in await currentPattern.getCollidingBlocks(): for i in await currentPattern.getCollidingBlocks():
i.queue_free() i.queue_free()
testRows()
PlacePattern()
func testRows():
for i in $RowTests.get_children(): for i in $RowTests.get_children():
if i.isCompleted(): if i.isCompleted():
for j in i.getRow(): for j in i.getRow():
@ -289,6 +293,3 @@ func test():
for j in getBlockGroupsList(): for j in getBlockGroupsList():
if j != GLOBAL.currentUID: if j != GLOBAL.currentUID:
moveUidGroup(GLOBAL.Direction.BOTTOM, j) moveUidGroup(GLOBAL.Direction.BOTTOM, j)
PlacePattern()