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
| from __future__ import annotations | |
| from dataclasses import dataclass, field | |
| import random | |
| import pygame | |
| from pygame import Vector2 as vec2 | |
| class Game: | |
| def __init__(self): | |
| self.win_size = vec2(500) | |
| self.screen_scale = 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
| from dataclasses import dataclass as component | |
| import esper | |
| import pygame | |
| from pygame import Vector2 as vec2 | |
| pygame.init() | |
| class Game: | |
| def __init__(self): |
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 enum | |
| import random | |
| import pygame | |
| import esper | |
| from pygame import Vector2 as vec2 | |
| pygame.init() |
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 pygame | |
| from pygame import Vector2 as vec2 | |
| pygame.init() | |
| class Game: | |
| def __init__(self): | |
| self.window_size = vec2(512) | |
| self.window = pygame.display.set_mode(self.window_size) |
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 math | |
| import pygame | |
| from pygame import Vector2 as vec2 | |
| pygame.init() | |
| class Game: | |
| def __init__(self): | |
| self.window_size = vec2(512) | |
| self.window = pygame.display.set_mode(self.window_size) |
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 "raylib.h" | |
| #include <chrono> | |
| typedef std::chrono::high_resolution_clock Clock; | |
| class Game | |
| { | |
| public: | |
| Vector2 screenSize = {850, 500}; |
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 pygame | |
| from pygame import Vector2 as vec2 | |
| pygame.init() | |
| class Game: | |
| def __init__(self): | |
| self.window_size = vec2(512) | |
| self.window = pygame.display.set_mode(self.window_size) | |
| pygame.display.set_caption('playground') |
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 "raylib.h" | |
| #include "raymath.h" | |
| #include <vector> | |
| #include <iostream> | |
| using namespace std; | |
| class Node | |
| { |
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 math | |
| import pygame | |
| from pygame import Vector2 as vec2 | |
| pygame.init() | |
| class Game: | |
| def __init__(self): | |
| self.window_size = vec2(512) |
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 random | |
| from scipy.spatial import Delaunay | |
| from time import time | |
| import pygame | |
| from pygame import Vector2 as vec2 | |
| pygame.init() |