This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sdl3stbtruetypeexample | |
import SDL "vendor:sdl3" | |
import stbtt "vendor:stb/truetype" | |
import "core:strings" | |
Font :: struct { | |
bitmap: []u8, | |
packed_char: []stbtt.packedchar, | |
atlas: ^SDL.Texture, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#include <ncurses.h> | |
#define BOARDWIDTH 40 | |
#define BOARDHEIGHT 20 | |
#define SNAKEINITPOSX 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdio.h" | |
#include "stdlib.h" | |
#include "time.h" | |
int WinningCondition[8][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {1, 4, 7}, {2, 5, 8}, {3, 6, 9}, {1, 5, 9}, {7, 5, 3}}; | |
typedef enum | |
{ | |
Xmarker, | |
Omarker |