d
d
This commit is contained in:
parent
1c4197e864
commit
1a84049b1e
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -7,5 +7,6 @@
|
||||||
"cmath": "c",
|
"cmath": "c",
|
||||||
"limits": "c",
|
"limits": "c",
|
||||||
"new": "c"
|
"new": "c"
|
||||||
}
|
},
|
||||||
|
"cmake.configureOnOpen": false
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
["f315479de287d3cccdfa665c1e8c58bd", "7d30e573f96a566ed9510833b95d5520", "0eaec40fe47b9cb31ff5a70f7bfee15a", "72e1b62b85eac654ed094a8ecf009416", "5ce28b2bf9d7c5750ea290f80fbd1264", "0d65896ce70d098bdf4cb3587ca74508", "f6611a0f07f78cc4fd52df267e0d3d25", "9f0597e7cacc7c918163affc5f3d9841", "cd22e396133a64303ecae95280f8ba1a", "7d7451ae7d88f4d1f84055180f9e84a7", "29f6d19bcc5a1897b220a192ef6fc3cc", "1d88301163b019760c3dc8396ce2aa4b", "ec4912a725a2bc606bd76ba34159435c"]
|
["7d30e573f96a566ed9510833b95d5520", "5ce28b2bf9d7c5750ea290f80fbd1264", "f315479de287d3cccdfa665c1e8c58bd", "0d65896ce70d098bdf4cb3587ca74508", "72e1b62b85eac654ed094a8ecf009416", "cd22e396133a64303ecae95280f8ba1a", "7d7451ae7d88f4d1f84055180f9e84a7"]
|
|
@ -1 +1 @@
|
||||||
["4aa55dfc1d038e75d0efbf277e6033a4"]
|
["dd2f269c19f28201dce9133ab27198af"]
|
BIN
objects/ctrl.o
BIN
objects/ctrl.o
Binary file not shown.
Binary file not shown.
BIN
objects/event.o
BIN
objects/event.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
objects/input.o
BIN
objects/input.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
objects/tetra.o
BIN
objects/tetra.o
Binary file not shown.
BIN
objects/vector.o
BIN
objects/vector.o
Binary file not shown.
BIN
objects/win.o
BIN
objects/win.o
Binary file not shown.
14
source/fumo.txt
Normal file
14
source/fumo.txt
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
_,_ _,_
|
||||||
|
}\>' ``'-./\.-''` '</{
|
||||||
|
}\> ,-''``''-. </{
|
||||||
|
}\> ,' `. </{
|
||||||
|
}\/ /\ /\ \/{
|
||||||
|
} ( /__',( __\ )\{
|
||||||
|
,;' ) \|^ | `|^ |/ ( \{
|
||||||
|
}/ /_[],`' `',[]_\ \{
|
||||||
|
}/ ( )\`-.`..-'/( ) \{
|
||||||
|
`''--\(_.-'/\'-._)/--''`
|
||||||
|
\ /L]\ /
|
||||||
|
;',_/ \_,';
|
||||||
|
'.'',__,''.'
|
||||||
|
\_.' '._/
|
|
@ -85,7 +85,7 @@ void FumotrisUpdate(struct Instance *inst, struct Fumotris *fumo)
|
||||||
i16 horizontal = get_horizontal(&inst->ctrl);
|
i16 horizontal = get_horizontal(&inst->ctrl);
|
||||||
|
|
||||||
if (horizontal != 0 and fumo->last_moved < inst->time) {
|
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);
|
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);
|
TetraRotate(&fumo->piece, &fumo->board, -1);
|
||||||
|
|
||||||
if (inst->ctrl.axes[SOFT_DROP].is_held and fumo->last_dropped < inst->time) {
|
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);
|
TetraMove(&fumo->piece, &fumo->board, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,4 +144,27 @@ int main()
|
||||||
FumoInstanceRun(&inst);
|
FumoInstanceRun(&inst);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
| | NEXT LINES
|
||||||
|
| [][][]. . . . . . . |
|
||||||
|
| [][][]. . . . . . . | SCORE
|
||||||
|
| [][][][]. . . . . . |
|
||||||
|
| [][][]. . . . . . [] |
|
||||||
|
| []. . [][]. . . . [] |
|
||||||
|
| [][][][][][]. . . [] |
|
||||||
|
| . . [][]. . . . . [] |
|
||||||
|
| [][][][]. [][]. [][] |
|
||||||
|
| [][][][][][][]. [][] |
|
||||||
|
| [][][][][][][][][][] |
|
||||||
|
| [][][][][][][][][][] |
|
||||||
|
| [][][][][][][][][][] |
|
||||||
|
| [][][][][][][][][][] |
|
||||||
|
| [][][][][][][]. [][] |
|
||||||
|
| . [][][][][][]. . [] |
|
||||||
|
| [][][]. [][][][]. [] |
|
||||||
|
| [][][][][][][][]. [] |
|
||||||
|
| [][][][][][][][]. [] |
|
||||||
|
| . [][][][][][][][][] |
|
||||||
|
| . [][][][][][][][][] |
|
||||||
|
|________________________|
|
|
@ -132,8 +132,8 @@ void TetraTerminalClear(struct Tetra *board, struct Terminal *term)
|
||||||
for (usize i = 0; i < board->wid * board->hgt; i++) {
|
for (usize i = 0; i < board->wid * board->hgt; i++) {
|
||||||
struct Char4 *block = term->buf + i * 2;
|
struct Char4 *block = term->buf + i * 2;
|
||||||
|
|
||||||
block[0] = (struct Char4) { .ch = '(', .color.fg = 8 };
|
block[0] = (struct Char4) { .ch = '.', .color.fg = 8 };
|
||||||
block[1] = (struct Char4) { .ch = ')', .color.fg = 8 };
|
block[1] = (struct Char4) { .ch = ' ', .color.fg = 8 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue