This commit is contained in:
Dusk 2022-07-06 19:17:17 +02:00
parent ee893b5947
commit 7eb6f2b9b4
21 changed files with 37 additions and 438 deletions

View File

@ -1,45 +1,57 @@
const SDL = @import("sdl2"); const SDL = @import("sdl2");
pub const yellow = SDL.SDL_Color{ pub const yellow = SDL.SDL_Color{
.r = 229, .r = 245,
.g = 165, .g = 215,
.b = 10, .b = 145,
.a = 255,
};
pub const brown = SDL.SDL_Color{
.r = 180,
.g = 130,
.b = 90,
.a = 255, .a = 255,
}; };
pub const cyan = SDL.SDL_Color{ pub const cyan = SDL.SDL_Color{
.r = 98, .r = 120,
.g = 160, .g = 190,
.b = 234, .b = 185,
.a = 255, .a = 255,
}; };
pub const orange = SDL.SDL_Color{ pub const orange = SDL.SDL_Color{
.r = 255, .r = 255,
.g = 120, .g = 170,
.b = 0, .b = 40,
.a = 255, .a = 255,
}; };
pub const blue = SDL.SDL_Color{ pub const blue = SDL.SDL_Color{
.r = 26, .r = 105,
.g = 95, .g = 160,
.b = 180, .b = 255,
.a = 255, .a = 255,
}; };
pub const green = SDL.SDL_Color{ pub const green = SDL.SDL_Color{
.r = 51, .r = 120,
.g = 209, .g = 175,
.b = 122, .b = 135,
.a = 255, .a = 255,
}; };
pub const red = SDL.SDL_Color{ pub const red = SDL.SDL_Color{
.r = 237, .r = 255,
.g = 51, .g = 105,
.b = 59, .b = 115,
.a = 255, .a = 255,
}; };
pub const purple = SDL.SDL_Color{ pub const purple = SDL.SDL_Color{
.r = 192, .r = 210,
.g = 97, .g = 180,
.b = 203, .b = 210,
.a = 255,
};
pub const pink = SDL.SDL_Color{
.r = 230,
.g = 115,
.b = 170,
.a = 255, .a = 255,
}; };
pub const dark_grey = SDL.SDL_Color{ pub const dark_grey = SDL.SDL_Color{

View File

@ -6,9 +6,13 @@ const Grid = @import("grid.zig");
const Piece = @import("piece.zig"); const Piece = @import("piece.zig");
pub fn renderBag(renderer: *SDL.SDL_Renderer, bag: Bag, cell_size: i32, pos_x: i32, pos_y: i32) void { pub fn renderBag(renderer: *SDL.SDL_Renderer, bag: Bag, cell_size: i32, pos_x: i32, pos_y: i32) void {
var trans: u8 = 0;
for (bag.contents[0..5]) |_, i| { for (bag.contents[0..5]) |_, i| {
if (bag.contents[i]) |piece_type| { if (bag.contents[i]) |piece_type| {
Piece.init(piece_type).render(renderer, cell_size, pos_x, pos_y + @intCast(i32, i) * cell_size * 4); var piece = Piece.init(piece_type);
piece.color.a -|= trans;
trans +|= 55;
piece.render(renderer, cell_size, pos_x, pos_y + @intCast(i32, i) * cell_size * 4);
} }
} }
} }

View File

@ -1,129 +0,0 @@
16058 36570445 1655270161000000000 625ea5c4b158a8779224500c1f9ddedc /home/strange/Documentos/Projectes/Programació/usg/zig/lib/build_runner.zig
1335 36569769 1655302692000077792 f7a60f398e1d552410f9b3e7ee858bb2 /home/strange/Documentos/Projectes/Programació/usg/build.zig
5621 36968525 1655270162000000000 66001e1a55f68e4681c1f32a69223647 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/std.zig
16058 36570445 1655270161000000000 625ea5c4b158a8779224500c1f9ddedc /home/strange/Documentos/Projectes/Programació/usg/zig/lib/build_runner.zig
5621 36968525 1655270162000000000 66001e1a55f68e4681c1f32a69223647 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/std.zig
29901 36968437 1655270162000000000 5c441d88acbf5e7fe2a26137df2b5376 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/builtin.zig
22658 36968211 1655270162000000000 d723b434ed5405277f53a378f6673454 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/start.zig
64748 36968503 1655270162000000000 903d93656adf53121b2ee1260ae9b2e4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target.zig
88870 36968320 1655270162000000000 a4e267754cdf9c71d18dca0dfe685156 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/x86.zig
65693 36968358 1655270162000000000 887583a6d3a492ee4a8aaa71c3f4c9c8 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/math.zig
36988 36968463 1655270162000000000 618c6412f696610fe70ffed272e536b7 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/meta.zig
79192 36968432 1655270162000000000 85fe64f01ec67e2d404d41ed6434a1ee /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/debug.zig
5432 36968458 1655270162000000000 624956409eee1e93746e77415e9cdca9 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic.zig
25568 36968501 1655270162000000000 f15ad6de023e2f7205ca6550cee7becd /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic/Atomic.zig
18630 36968523 1655270162000000000 c72160564e2e203a04f11f4b13553da0 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/meta/trait.zig
42085 36968308 1655270162000000000 b77ce915e7496d89b54ab38aee097b81 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread.zig
9352 36968413 1655270162000000000 8c526bbafa435d2af666b490a1e838ad /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread/Mutex.zig
6467 36968212 1655270162000000000 b98e509893b4c3e8c2c75e1c75434fe5 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io.zig
120768 36968521 1655270162000000000 3364cc81aeb809c2a35e3ed71557eac0 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fs.zig
62393 36968339 1655270162000000000 e7a0b747c6b4d9a3f2444e01bc913e3b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fs/file.zig
280877 36968431 1655270162000000000 5aee6408eb3f6bc06fa6b4a703a784c4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os.zig
156620 36968545 1655270162000000000 44227d065f1b9c55778b0b1716c1fe62 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux.zig
121502 36968568 1655270162000000000 4bad05f05e4a10364e515a13d2fa2b3f /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/io_uring.zig
3400 36968452 1655270162000000000 5d1d518c32f4fd700943417f56120125 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/writer.zig
41490 36968415 1655270162000000000 f3d5b2d6057676d8866cf9291ef27dee /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread/Futex.zig
45023 36968356 1655270162000000000 c30e605ecc099ad6f5498460429756fa /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/elf.zig
12226 36968559 1655270162000000000 3d92946025775bfa3202c9bea5ce12ec /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/tls.zig
102705 36968384 1655270162000000000 4896646ce9abce74b86bcbbc275a18c1 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt.zig
113573 36968636 1655270162000000000 2c3980264c753ba754322c7c8c4f2634 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/mem.zig
31107 36968497 1655270162000000000 efe5272d00145b6eca03d42fcf5fcd30 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/mem/Allocator.zig
87065 36968504 1655270162000000000 64f7d52fa9f0953194c996773f4ed130 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/hash_map.zig
44333 36968425 1655270162000000000 e849aa8f5b1991a4c903e7f1cf5d2b1c /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf.zig
55109 36968306 1655270162000000000 076580071cf17cb72c33bcfac107e806 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/array_list.zig
45424 36968383 1655270162000000000 7560f06faabdb139b53b1f2e8b2fae06 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/heap.zig
4685 36968633 1655270162000000000 bccc2a1210ecea59d9b108bd05b44f4d /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/heap/arena_allocator.zig
13435 36968492 1655270162000000000 841107470272eebec404e2b902f8b639 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/linked_list.zig
8944 36968553 1655270162000000000 2d66740614c92899c32322c4528aa6bb /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/x86_64.zig
5832 36968454 1655270162000000000 27d9545fd30b6e99a4c147ba6d8c07db /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/fixed_buffer_stream.zig
27187 36968450 1655270162000000000 18454c1abe49c3ed1428829ba043ca05 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/reader.zig
1117 36968442 1655270162000000000 3f2f071b498497f7d54bcfc458d51f5e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/seekable_stream.zig
15524 36968361 1655270162000000000 fd35bd5ce692e376140efff780ae8fd9 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/leb128.zig
1399 36968421 1655270162000000000 39287cc8a2a858bc3b39edecab481aff /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf/FORM.zig
3848 36968420 1655270162000000000 673136e55905f01155e9463de5e36e7e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf/TAG.zig
7395 36968424 1655270162000000000 fe0e04bcd58863e97993f2137b09a3ca /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf/AT.zig
50955 36968340 1655270162000000000 89afffa3bc72846bab2c1ed13b0672f4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fs/path.zig
7889 36968577 1655270162000000000 562fc4eee397a5037d16dffd5e048cd4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/errno/generic.zig
32411 36968509 1655270162000000000 a25cf125aa2af22a7263d8104b549cb9 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/unicode.zig
76200 36968550 1655270162000000000 35261e8277652ce34bf8d0d6761b4bab /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/syscalls.zig
44495 36968491 1655270162000000000 bfcc36624c8f3cb045fc58558f6aa79d /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/process.zig
14285 36968505 1655270162000000000 67ab4d31a8c84daebcdadb1ba2b3a84e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dynamic_library.zig
12529 36968527 1655270162000000000 2e8a443dd5c55df11dc0ea7ce5b52bf5 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/time.zig
932 36968507 1655270162000000000 b4c3b5276113dacf836baae9d9f94c34 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/event.zig
68808 36968298 1655270162000000000 1428e5a8bcb96a47d038d40214331d68 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/event/loop.zig
140858 36968436 1655270162000000000 393efcabe6436056e04ab0113b18501a /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/build.zig
7338 36968289 1655270162000000000 ee4fd6c02929ff52d99a8faa2539dce8 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig.zig
382 36968484 1655270162000000000 72d1274335940791012004d8be36418f /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig/system.zig
42310 36968473 1655270162000000000 67c5846eabf0d41a627a570ced777abe /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig/system/NativeTargetInfo.zig
29399 36968486 1655270162000000000 53707a24b1c58971ea63cc15e9b6ce07 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig/CrossTarget.zig
9090 36968460 1655270162000000000 1180d90b55f45cb947269ff038108378 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/log.zig
14305 36968433 1655270162000000000 8716e108c7b9d84bb406b0501748ffb1 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/ascii.zig
66319 36968331 1655270162000000000 38807f5fb27a6c237cb73dfeed92c02b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/arm.zig
5414 36968461 1655270162000000000 86e6f8806e70c6af94d5d60ee4a7bcc5 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/comptime_string_map.zig
65527 36968208 1655270162000000000 945f25643ae4cfda0e1cfd3b91137164 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/sort.zig
1335 36569769 1655302692000077792 f7a60f398e1d552410f9b3e7ee858bb2 /home/strange/Documentos/Projectes/Programació/usg/build.zig
1174 36968430 1655270162000000000 1a71f479a0d0d95f1b0d960381e246ee /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/hash.zig
10122 36968518 1655270162000000000 6372ee29c64a8e176138e879d43eb625 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/hash/wyhash.zig
20625 36968470 1655270162000000000 ee724a09d3ffe602d959fc33965b37e3 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig/system/x86.zig
4517 36968417 1655270162000000000 395762eb7b0b7c18e9b7e178191f3802 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/buf_set.zig
17906 36570255 1655299923660057346 996d90dd18c5b50849b472e0e9f6e6b3 /home/strange/Documentos/Projectes/Programació/usg/lib/SDL.zig/Sdk.zig
10988 36968627 1655270162000000000 29a89edefd4dfaf36e40b7466107bded /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/build/RunStep.zig
50177 36968210 1655270162000000000 dcdb8f6a80cb2ffdeab82a77db36cb6e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/child_process.zig
1165 36968448 1655270162000000000 50efc7c5e5e9520d97cc0b49c050f5d5 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/counting_writer.zig
15782 36968324 1655270162000000000 ab06ac27d4d611016df033b526f0e57a /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/riscv.zig
9792 36968322 1655270162000000000 f353172ed585b8bb875dbc84a48cbcdb /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/nvptx.zig
13315 36968327 1655270162000000000 a50b56e8c98285aaf633026174e1539e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/sparc.zig
61215 36968335 1655270162000000000 a429f12b6db901f03e2d6c065d20e109 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/aarch64.zig
58985 36968323 1655270162000000000 0e58ae3d7bd074b78d0b30b455b1de7a /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/avr.zig
2207 36968333 1655270162000000000 2feddb7106266f9cae15eadf50a8c386 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/bpf.zig
11877 36968325 1655270162000000000 fc39b869036e4c818791cfe97298c47d /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/hexagon.zig
15956 36968326 1655270162000000000 e9120c6b03e428de62fb36e722a44a64 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/mips.zig
2206 36968336 1655270162000000000 d6e20554da84c48e207022e2229de621 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/msp430.zig
30182 36968321 1655270162000000000 0870c39e2beb71274e93386f2c0d86a8 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/powerpc.zig
55221 36968329 1655270162000000000 be6f12ce9102c8e72d6a81cff673b1a1 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/amdgpu.zig
77180 36968328 1655270162000000000 7d614d7e5dfd6b9838f81992975768fb /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/spirv.zig
23954 36968332 1655270162000000000 d560e058fb0aa249592791b30b91f3de /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/systemz.zig
1240 36968334 1655270162000000000 9dff7d081463c1d9d077dd4e999d0a41 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/ve.zig
3752 36968337 1655270162000000000 f975b0361e27b9d179b40936dd4e5b3a /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/wasm.zig
3439 36968341 1655270162000000000 751e60532c495f19fb11c4e2e46cdb33 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fs/get_app_data_dir.zig
12023 36968628 1655270162000000000 620a5911e779e889c557aa2260d871c4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/build/OptionsStep.zig
129296 36968434 1655270162000000000 8de6b61e2f9fd4a31e785379c7186345 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/json.zig
107179 36968355 1655270162000000000 4bf5b07a9369ea40d177505b4dc4537e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/array_hash_map.zig
28318 36968701 1655270162000000000 dfc96f88c9b399a8552fac8beb8be64b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/multi_array_list.zig
1703 36968238 1655270162000000000 5c67f4f0f37bb8c5af0278a7168b3487 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/math/log2.zig
9411 36968704 1655270162000000000 c471e077bcdfe618b038a54f388dcaf4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float.zig
2005 36968713 1655270162000000000 70af83a70a040e9061c3164136dc38fb /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/parse_float.zig
10686 36968698 1655270162000000000 787afbebd2ab3396b0002680946dd448 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/SemanticVersion.zig
3707 36968468 1655270162000000000 95ef0ae909bf76923e74738868988db7 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig/fmt.zig
10096 36968305 1655270162000000000 709ce422a757747260d16803cd6e8e51 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/crypto.zig
10495 36968674 1655270162000000000 134529947fb0498aace4538e4c00f3f4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/crypto/sha1.zig
15564 36570402 1655299923670057346 724b7e7ca99ae6e3c0ec23f9d2aa2973 /home/strange/Documentos/Projectes/Programació/usg/lib/SDL.zig/stubs/libSDL2.def
9240 36968715 1655270162000000000 d3edcfab38db3c843200749df942e0cd /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/parse.zig
2834 36968714 1655270162000000000 e4b37a416c6aa296edc51b9d974d0607 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/common.zig
2844 36968710 1655270162000000000 74190e9b9ed3d7bd1de5da15837d282d /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/convert_hex.zig
5089 36968717 1655270162000000000 d16d25a4d355a31760c610a8f0c9601f /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/convert_fast.zig
48496 36968712 1655270162000000000 6d04bab795485bf4af20069081424ca3 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/convert_eisel_lemire.zig
4439 36968711 1655270162000000000 ade49fc54345b9133bd1d717d527de66 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/convert_slow.zig
129442 36968579 1655270162000000000 6c9b61c673887e5ce9e9dd2139e94d1c /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/windows.zig
10614 36968578 1655270162000000000 8e56d830547dd6a8fc3a5cc5c8cace49 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/posix_spawn.zig
3965 36968220 1655270162000000000 3902540b8e9baf45f1f2af33b195ab4b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/math/float.zig
5214 36968718 1655270162000000000 4f858d25323d6a0398a4f2227054e6df /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/FloatInfo.zig
29084 36968709 1655270162000000000 b87bd1966365b44f059080c0a6066c0b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/decimal.zig
29549 36968639 1655270162000000000 63d2c8225c44df66701ec14bb55279fa /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/crypto/sha2.zig
17768 36968464 1655270162000000000 b35ca4677c7cd38f661e7aa55670283a /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/base64.zig
6380 36968670 1655270162000000000 a27d71b6f5ec5ea0574905ead03f9e2b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/crypto/tlcsprng.zig
16192 36968506 1655270162000000000 744a2bb13e662f350a196780c9fbcad2 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/rand.zig
3397 36968716 1655270162000000000 8b0e8de741219c1c9ddf54c75b8fdeac /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt/parse_float/FloatStream.zig
629 36968229 1655270162000000000 bbba8a4503720c0fca8e62916be432c8 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/math/nan.zig
29198 36968663 1655270162000000000 7f778403c3b807d2f1aafe5ef8397cdd /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/crypto/blake2.zig
18580 36968691 1655270162000000000 1ea020816a1e32e787e39ac27aef2065 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/crypto/gimli.zig
71450 36968478 1655270162000000000 ec987a9eef9e396d1a488b729dd7b108 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig/tokenizer.zig
19735 36968508 1655270162000000000 6e7678248dfc65f416a8fd51dfa26c44 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fifo.zig
1546 36968457 1655270162000000000 38fb78325e3512a8614b1c1d75ff158b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/limited_reader.zig
19406 36968288 1655270162000000000 91f313ee3555d57d621bba6c0b89b441 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/c.zig
12404 36968388 1655270162000000000 5af0dd8b7f0c7a916f42d40bf1fc0341 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/c/linux.zig
36950 36968459 1655270162000000000 a8088e4d81b1299d75d34eb827d80742 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/pdb.zig
13962 36968382 1655270162000000000 805d2423f1aff5f2488007202164e3e1 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/coff.zig
12142 36968500 1655270162000000000 960f31a28097b764cc5fbb0f9205d56e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic/queue.zig
9271 36968416 1655270162000000000 cdd02b84bf532f0404db51ce6a5e17c0 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread/ResetEvent.zig
5836 36968499 1655270162000000000 7d2404322fa027582c27f4f202ec6a58 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic/stack.zig

View File

@ -1,77 +0,0 @@
1361 36569768 1657038271710135652 e361ab3d1987688681b5db7b52fd5cba /home/strange/Documentos/Projectes/Programació/usg/src/main.zig
1361 36569768 1657038271710135652 e361ab3d1987688681b5db7b52fd5cba /home/strange/Documentos/Projectes/Programació/usg/src/main.zig
135300 36570392 1655299923670057346 b4c2d851673df5aab566633b89bdaa84 /home/strange/Documentos/Projectes/Programació/usg/lib/SDL.zig/src/binding/sdl.zig
32 36570080 1657107000090054032 91a8da097c7c1645ba2a6217a5171c4e /home/strange/Documentos/Projectes/Programació/usg/zig-cache/options/kh59p23UXKId3bWMadeQ0Yp6cv2kATA4qPk2nBQ2q_3IsG9JTjKRYS1YxdIMHL6s
5621 36968525 1655270162000000000 66001e1a55f68e4681c1f32a69223647 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/std.zig
5621 36968525 1655270162000000000 66001e1a55f68e4681c1f32a69223647 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/std.zig
29901 36968437 1655270162000000000 5c441d88acbf5e7fe2a26137df2b5376 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/builtin.zig
22658 36968211 1655270162000000000 d723b434ed5405277f53a378f6673454 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/start.zig
64748 36968503 1655270162000000000 903d93656adf53121b2ee1260ae9b2e4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target.zig
88870 36968320 1655270162000000000 a4e267754cdf9c71d18dca0dfe685156 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/target/x86.zig
65693 36968358 1655270162000000000 887583a6d3a492ee4a8aaa71c3f4c9c8 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/math.zig
36988 36968463 1655270162000000000 618c6412f696610fe70ffed272e536b7 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/meta.zig
79192 36968432 1655270162000000000 85fe64f01ec67e2d404d41ed6434a1ee /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/debug.zig
6467 36968212 1655270162000000000 b98e509893b4c3e8c2c75e1c75434fe5 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io.zig
120768 36968521 1655270162000000000 3364cc81aeb809c2a35e3ed71557eac0 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fs.zig
62393 36968339 1655270162000000000 e7a0b747c6b4d9a3f2444e01bc913e3b /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fs/file.zig
280877 36968431 1655270162000000000 5aee6408eb3f6bc06fa6b4a703a784c4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os.zig
19406 36968288 1655270162000000000 91f313ee3555d57d621bba6c0b89b441 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/c.zig
12404 36968388 1655270162000000000 5af0dd8b7f0c7a916f42d40bf1fc0341 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/c/linux.zig
156620 36968545 1655270162000000000 44227d065f1b9c55778b0b1716c1fe62 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux.zig
121502 36968568 1655270162000000000 4bad05f05e4a10364e515a13d2fa2b3f /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/io_uring.zig
135300 36570392 1655299923670057346 b4c2d851673df5aab566633b89bdaa84 /home/strange/Documentos/Projectes/Programació/usg/lib/SDL.zig/src/binding/sdl.zig
1640 36570393 1655299923670057346 c3d50ea43c9e10688a521a9ac927ded4 /home/strange/Documentos/Projectes/Programació/usg/lib/SDL.zig/src/binding/sdl_image.zig
32 36570080 1657107000090054032 91a8da097c7c1645ba2a6217a5171c4e /home/strange/Documentos/Projectes/Programació/usg/zig-cache/options/kh59p23UXKId3bWMadeQ0Yp6cv2kATA4qPk2nBQ2q_3IsG9JTjKRYS1YxdIMHL6s
7338 36968289 1655270162000000000 ee4fd6c02929ff52d99a8faa2539dce8 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig.zig
21121 36968483 1655270162000000000 669c911cf26ce07c5f5516d896b30e33 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/zig/c_translation.zig
113573 36968636 1655270162000000000 2c3980264c753ba754322c7c8c4f2634 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/mem.zig
4399 36570427 1657050625270226896 5a5f1095331817ca2935aae8f1c887ef /home/strange/Documentos/Projectes/Programació/usg/src/game.zig
2077 36569864 1657057506010277717 a18ae95a6705d7982e23251e180871b3 /home/strange/Documentos/Projectes/Programació/usg/src/grid.zig
256 36569823 1657057405170276972 a69ae39529d33ff9e7623523a1e0dbe9 /home/strange/Documentos/Projectes/Programació/usg/src/cell.zig
1708 36569840 1657038395020136563 151ce67aaf4e36de54f56be701bc0b66 /home/strange/Documentos/Projectes/Programació/usg/src/bag.zig
6714 36569846 1657063070590318817 75177ff9bec84da98c4812ee52669e19 /home/strange/Documentos/Projectes/Programació/usg/src/piece.zig
16192 36968506 1655270162000000000 744a2bb13e662f350a196780c9fbcad2 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/rand.zig
3105 36968346 1655270162000000000 412e5ff0bcf84571f173caa8acab5393 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/rand/Xoshiro256.zig
45023 36968356 1655270162000000000 c30e605ecc099ad6f5498460429756fa /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/elf.zig
5432 36968458 1655270162000000000 624956409eee1e93746e77415e9cdca9 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic.zig
25568 36968501 1655270162000000000 f15ad6de023e2f7205ca6550cee7becd /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic/Atomic.zig
18630 36968523 1655270162000000000 c72160564e2e203a04f11f4b13553da0 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/meta/trait.zig
42085 36968308 1655270162000000000 b77ce915e7496d89b54ab38aee097b81 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread.zig
9352 36968413 1655270162000000000 8c526bbafa435d2af666b490a1e838ad /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread/Mutex.zig
3400 36968452 1655270162000000000 5d1d518c32f4fd700943417f56120125 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/writer.zig
41490 36968415 1655270162000000000 f3d5b2d6057676d8866cf9291ef27dee /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread/Futex.zig
5108 36569824 1657106993040053980 07f1cbc47513104f7aaefa9a2df0de9b /home/strange/Documentos/Projectes/Programació/usg/src/movement.zig
1287 36569807 1657025367450040341 019ede768d3bb377ce293523ab6255bf /home/strange/Documentos/Projectes/Programació/usg/src/renderer.zig
102705 36968384 1655270162000000000 4896646ce9abce74b86bcbbc275a18c1 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fmt.zig
31107 36968497 1655270162000000000 efe5272d00145b6eca03d42fcf5fcd30 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/mem/Allocator.zig
87065 36968504 1655270162000000000 64f7d52fa9f0953194c996773f4ed130 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/hash_map.zig
44333 36968425 1655270162000000000 e849aa8f5b1991a4c903e7f1cf5d2b1c /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf.zig
55109 36968306 1655270162000000000 076580071cf17cb72c33bcfac107e806 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/array_list.zig
45424 36968383 1655270162000000000 7560f06faabdb139b53b1f2e8b2fae06 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/heap.zig
4685 36968633 1655270162000000000 bccc2a1210ecea59d9b108bd05b44f4d /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/heap/arena_allocator.zig
13435 36968492 1655270162000000000 841107470272eebec404e2b902f8b639 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/linked_list.zig
8944 36968553 1655270162000000000 2d66740614c92899c32322c4528aa6bb /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/x86_64.zig
5832 36968454 1655270162000000000 27d9545fd30b6e99a4c147ba6d8c07db /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/fixed_buffer_stream.zig
27187 36968450 1655270162000000000 18454c1abe49c3ed1428829ba043ca05 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/reader.zig
1117 36968442 1655270162000000000 3f2f071b498497f7d54bcfc458d51f5e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/io/seekable_stream.zig
15524 36968361 1655270162000000000 fd35bd5ce692e376140efff780ae8fd9 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/leb128.zig
1399 36968421 1655270162000000000 39287cc8a2a858bc3b39edecab481aff /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf/FORM.zig
3848 36968420 1655270162000000000 673136e55905f01155e9463de5e36e7e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf/TAG.zig
7395 36968424 1655270162000000000 fe0e04bcd58863e97993f2137b09a3ca /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/dwarf/AT.zig
50955 36968340 1655270162000000000 89afffa3bc72846bab2c1ed13b0672f4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/fs/path.zig
7889 36968577 1655270162000000000 562fc4eee397a5037d16dffd5e048cd4 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/errno/generic.zig
12529 36968527 1655270162000000000 2e8a443dd5c55df11dc0ea7ce5b52bf5 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/time.zig
932 36968507 1655270162000000000 b4c3b5276113dacf836baae9d9f94c34 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/event.zig
68808 36968298 1655270162000000000 1428e5a8bcb96a47d038d40214331d68 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/event/loop.zig
32411 36968509 1655270162000000000 a25cf125aa2af22a7263d8104b549cb9 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/unicode.zig
44495 36968491 1655270162000000000 bfcc36624c8f3cb045fc58558f6aa79d /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/process.zig
850 36569831 1657057860690280336 b9ebfb0b293930640bc22ebdf6acab54 /home/strange/Documentos/Projectes/Programació/usg/src/color.zig
76200 36968550 1655270162000000000 35261e8277652ce34bf8d0d6761b4bab /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/linux/syscalls.zig
1174 36968430 1655270162000000000 1a71f479a0d0d95f1b0d960381e246ee /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/hash.zig
10122 36968518 1655270162000000000 6372ee29c64a8e176138e879d43eb625 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/hash/wyhash.zig
36950 36968459 1655270162000000000 a8088e4d81b1299d75d34eb827d80742 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/pdb.zig
13962 36968382 1655270162000000000 805d2423f1aff5f2488007202164e3e1 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/coff.zig
12142 36968500 1655270162000000000 960f31a28097b764cc5fbb0f9205d56e /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic/queue.zig
9271 36968416 1655270162000000000 cdd02b84bf532f0404db51ce6a5e17c0 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/Thread/ResetEvent.zig
5836 36968499 1655270162000000000 7d2404322fa027582c27f4f202ec6a58 /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/atomic/stack.zig
129442 36968579 1655270162000000000 6c9b61c673887e5ce9e9dd2139e94d1c /home/strange/Documentos/Projectes/Programació/usg/zig/lib/std/os/windows.zig

View File

View File

@ -1,105 +0,0 @@
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse("0.10.0-dev.2620+0e9458a3f") catch unreachable;
pub const zig_backend = std.builtin.CompilerBackend.stage1;
/// Temporary until self-hosted supports the `cpu.arch` value.
pub const stage2_arch: std.Target.Cpu.Arch = .x86_64;
pub const output_mode = std.builtin.OutputMode.Exe;
pub const link_mode = std.builtin.LinkMode.Dynamic;
pub const is_test = false;
pub const single_threaded = false;
pub const abi = std.Target.Abi.gnu;
pub const cpu: std.Target.Cpu = .{
.arch = .x86_64,
.model = &std.Target.x86.cpu.znver1,
.features = std.Target.x86.featureSet(&[_]std.Target.x86.Feature{
.@"64bit",
.adx,
.aes,
.avx,
.avx2,
.bmi,
.bmi2,
.branchfusion,
.clflushopt,
.clzero,
.cmov,
.cx16,
.cx8,
.f16c,
.fast_15bytenop,
.fast_bextr,
.fast_lzcnt,
.fast_movbe,
.fast_scalar_shift_masks,
.fma,
.fsgsbase,
.fxsr,
.lzcnt,
.mmx,
.movbe,
.mwaitx,
.nopl,
.pclmul,
.popcnt,
.prfchw,
.rdrnd,
.rdseed,
.sahf,
.sha,
.slow_shld,
.sse,
.sse2,
.sse3,
.sse4_1,
.sse4_2,
.sse4a,
.ssse3,
.vzeroupper,
.x87,
.xsave,
.xsavec,
.xsaveopt,
.xsaves,
}),
};
pub const os = std.Target.Os{
.tag = .linux,
.version_range = .{ .linux = .{
.range = .{
.min = .{
.major = 5,
.minor = 15,
.patch = 49,
},
.max = .{
.major = 5,
.minor = 15,
.patch = 49,
},
},
.glibc = .{
.major = 2,
.minor = 19,
.patch = 0,
},
}},
};
pub const target = std.Target{
.cpu = cpu,
.os = os,
.abi = abi,
};
pub const object_format = std.Target.ObjectFormat.elf;
pub const mode = std.builtin.Mode.Debug;
pub const link_libc = true;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = true;
pub const sanitize_thread = false;
pub const position_independent_code = true;
pub const position_independent_executable = false;
pub const strip_debug_info = false;
pub const code_model = std.builtin.CodeModel.default;

View File

@ -1,105 +0,0 @@
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse("0.10.0-dev.2620+0e9458a3f") catch unreachable;
pub const zig_backend = std.builtin.CompilerBackend.stage1;
/// Temporary until self-hosted supports the `cpu.arch` value.
pub const stage2_arch: std.Target.Cpu.Arch = .x86_64;
pub const output_mode = std.builtin.OutputMode.Exe;
pub const link_mode = std.builtin.LinkMode.Static;
pub const is_test = false;
pub const single_threaded = false;
pub const abi = std.Target.Abi.gnu;
pub const cpu: std.Target.Cpu = .{
.arch = .x86_64,
.model = &std.Target.x86.cpu.znver1,
.features = std.Target.x86.featureSet(&[_]std.Target.x86.Feature{
.@"64bit",
.adx,
.aes,
.avx,
.avx2,
.bmi,
.bmi2,
.branchfusion,
.clflushopt,
.clzero,
.cmov,
.cx16,
.cx8,
.f16c,
.fast_15bytenop,
.fast_bextr,
.fast_lzcnt,
.fast_movbe,
.fast_scalar_shift_masks,
.fma,
.fsgsbase,
.fxsr,
.lzcnt,
.mmx,
.movbe,
.mwaitx,
.nopl,
.pclmul,
.popcnt,
.prfchw,
.rdrnd,
.rdseed,
.sahf,
.sha,
.slow_shld,
.sse,
.sse2,
.sse3,
.sse4_1,
.sse4_2,
.sse4a,
.ssse3,
.vzeroupper,
.x87,
.xsave,
.xsavec,
.xsaveopt,
.xsaves,
}),
};
pub const os = std.Target.Os{
.tag = .linux,
.version_range = .{ .linux = .{
.range = .{
.min = .{
.major = 5,
.minor = 15,
.patch = 49,
},
.max = .{
.major = 5,
.minor = 15,
.patch = 49,
},
},
.glibc = .{
.major = 2,
.minor = 19,
.patch = 0,
},
}},
};
pub const target = std.Target{
.cpu = cpu,
.os = os,
.abi = abi,
};
pub const object_format = std.Target.ObjectFormat.elf;
pub const mode = std.builtin.Mode.Debug;
pub const link_libc = false;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = true;
pub const sanitize_thread = false;
pub const position_independent_code = false;
pub const position_independent_executable = false;
pub const strip_debug_info = false;
pub const code_model = std.builtin.CodeModel.default;

View File

@ -1 +0,0 @@
pub const vulkan: bool = false;