This file contains hidden or 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
| import socket | |
| import sys | |
| import time | |
| import select | |
| import numpy | |
| import struct | |
| HZ = 1.0 / 10 | |
| COMMAND_JOIN = 0 |
This file contains hidden or 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
| import socket | |
| import sys | |
| import time | |
| import numpy | |
| import struct | |
| import select | |
| COMMAND_JOIN = 0 | |
| COMMAND_SET_VELOCITY = 1 | |
| COMMAND_UPDATE_LOCATION = 2 |
This file contains hidden or 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 <SDL2/SDL.h> | |
| #include <glad/glad.h> | |
| GLuint compile_shader(GLenum shader_type, const char *filename) | |
| { | |
| SDL_RWops *rw = SDL_RWFromFile(filename, "rb"); | |
| if (!rw) | |
| { | |
| SDL_Log("unable to open file"); | |
| exit(1); |
This file contains hidden or 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> | |
| int main(int argc, char **argv) | |
| { | |
| int part0 = 0; | |
| int part1 = 0; | |
| int part2 = 0; | |
| int part3 = 0; | |
| asm( | |
| "CPUID\r\n" |
This file contains hidden or 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 "aiv_dict.h" | |
| static int hash_pomettini(const char *data, size_t len) | |
| { | |
| int value = 0; | |
| size_t i; | |
| for (i = 0; i < len; i++) | |
| { | |
| value += data[i]; | |
| } |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Aiv.Fast2D; | |
| using OpenTK; | |
| namespace FirstModernGame | |
| { |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Aiv.Draw; | |
| namespace Filesystem1B | |
| { | |
| class Program |
This file contains hidden or 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
| using System; | |
| using Aiv.Draw; | |
| namespace Memory1B | |
| { | |
| struct Game | |
| { | |
| public int Turns; | |
| public Window Window; | |
| public Card[] Cards; |
This file contains hidden or 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
| SECTION "Setup", ROM0[$100] | |
| JP start | |
| SECTION "Main", ROM0[$150] | |
| start: | |
| LD SP, $FFFE | |
| CALL clear_vram | |
| CALL clear_oam |
This file contains hidden or 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
| BACKGROUND_COLOR = $5100 ; assign the background color | |
| BACKGROUND_SCROLL_X = $5101 | |
| BACKGROUND_SCROLL_Y = $5102 | |
| ; write to chr rom | |
| CHR_COL = $5103 | |
| CHR_ROW = $5104 | |
| CHR_PIXEL = $5105 | |
| INPUT = $5106 |