d
This commit is contained in:
Julia 2024-05-16 01:08:15 -05:00
parent 1c4197e864
commit 1a84049b1e
20 changed files with 47 additions and 9 deletions

View file

@ -7,5 +7,6 @@
"cmath": "c",
"limits": "c",
"new": "c"
}
},
"cmake.configureOnOpen": false
}

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
["f315479de287d3cccdfa665c1e8c58bd", "7d30e573f96a566ed9510833b95d5520", "0eaec40fe47b9cb31ff5a70f7bfee15a", "72e1b62b85eac654ed094a8ecf009416", "5ce28b2bf9d7c5750ea290f80fbd1264", "0d65896ce70d098bdf4cb3587ca74508", "f6611a0f07f78cc4fd52df267e0d3d25", "9f0597e7cacc7c918163affc5f3d9841", "cd22e396133a64303ecae95280f8ba1a", "7d7451ae7d88f4d1f84055180f9e84a7", "29f6d19bcc5a1897b220a192ef6fc3cc", "1d88301163b019760c3dc8396ce2aa4b", "ec4912a725a2bc606bd76ba34159435c"]
["7d30e573f96a566ed9510833b95d5520", "5ce28b2bf9d7c5750ea290f80fbd1264", "f315479de287d3cccdfa665c1e8c58bd", "0d65896ce70d098bdf4cb3587ca74508", "72e1b62b85eac654ed094a8ecf009416", "cd22e396133a64303ecae95280f8ba1a", "7d7451ae7d88f4d1f84055180f9e84a7"]

View file

@ -1 +1 @@
["4aa55dfc1d038e75d0efbf277e6033a4"]
["dd2f269c19f28201dce9133ab27198af"]

BIN
debug.exe

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

14
source/fumo.txt Normal file
View file

@ -0,0 +1,14 @@
_,_ _,_
}\>' ``'-./\.-''` '</{
}\> ,-''``''-. </{
}\> ,' `. </{
}\/ /\ /\ \/{
} ( /__',( __\ )\{
,;' ) \|^ | `|^ |/ ( \{
}/ /_[],`' `',[]_\ \{
}/ ( )\`-.`..-'/( ) \{
`''--\(_.-'/\'-._)/--''`
\ /L]\ /
;',_/ \_,';
'.'',__,''.'
\_.' '._/

View file

@ -85,7 +85,7 @@ void FumotrisUpdate(struct Instance *inst, struct Fumotris *fumo)
i16 horizontal = get_horizontal(&inst->ctrl);
if (horizontal != 0 and fumo->last_moved < inst->time) {
fumo->last_moved = inst->time + 5e7;
fumo->last_moved = inst->time + 1e8;
TetraMove(&fumo->piece, &fumo->board, horizontal, 0);
}
@ -96,7 +96,7 @@ void FumotrisUpdate(struct Instance *inst, struct Fumotris *fumo)
TetraRotate(&fumo->piece, &fumo->board, -1);
if (inst->ctrl.axes[SOFT_DROP].is_held and fumo->last_dropped < inst->time) {
fumo->last_dropped = inst->time + 5e7;
fumo->last_dropped = inst->time + 1e8;
TetraMove(&fumo->piece, &fumo->board, 0, 1);
}
@ -144,4 +144,27 @@ int main()
FumoInstanceRun(&inst);
return 0;
}
}
| | NEXT LINES
| [][][]. . . . . . . |
| [][][]. . . . . . . | SCORE
| [][][][]. . . . . . |
| [][][]. . . . . . [] |
| []. . [][]. . . . [] |
| [][][][][][]. . . [] |
| . . [][]. . . . . [] |
| [][][][]. [][]. [][] |
| [][][][][][][]. [][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][]. [][] |
| . [][][][][][]. . [] |
| [][][]. [][][][]. [] |
| [][][][][][][][]. [] |
| [][][][][][][][]. [] |
| . [][][][][][][][][] |
| . [][][][][][][][][] |
|________________________|

View file

@ -132,8 +132,8 @@ void TetraTerminalClear(struct Tetra *board, struct Terminal *term)
for (usize i = 0; i < board->wid * board->hgt; i++) {
struct Char4 *block = term->buf + i * 2;
block[0] = (struct Char4) { .ch = '(', .color.fg = 8 };
block[1] = (struct Char4) { .ch = ')', .color.fg = 8 };
block[0] = (struct Char4) { .ch = '.', .color.fg = 8 };
block[1] = (struct Char4) { .ch = ' ', .color.fg = 8 };
}
}