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 std | |
| import vec | |
| import color | |
| import gl | |
| // --- System Parameters (Global Constants) --- | |
| let SIM_WIDTH = 200.0 | |
| let SIM_HEIGHT = 100.0 | |
| let PARTICLE_COUNT = 300 | |
| let INTERACTION_RADIUS = 5.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 std | |
| import vec | |
| import color | |
| import gl | |
| // --- Global Particle Data (Structure of Arrays - SoA) --- | |
| var masses:[float] = [] | |
| var positions_x:[float] = [] | |
| var positions_y:[float] = [] | |
| var velocities_x:[float] = [] |
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 std | |
| import vec | |
| import color | |
| import gl | |
| let SCREEN_WIDTH = 800.0 | |
| let SCREEN_HEIGHT = 450.0 | |
| let RAIN_BASE_COLOR_RGB = float3 { 230.0/255.0, 41.0/255.0, 55.0/255.0 } | |
| let CAPTION1 = "PRESS [R] TO RESTART" | |
| let CAPTION2 = "PRESS [ENTER] TO PLAY AGAIN!" |
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 std | |
| import vec | |
| import color | |
| import gl | |
| // Window settings | |
| let SCREEN_WIDTH = 700.0 | |
| let SCREEN_HEIGHT = 700.0 | |
| let WINDOW_TITLE = "Rain" |
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 std | |
| import vec | |
| import color | |
| import gl | |
| let WIDTH = 800 | |
| let HEIGHT = 600 | |
| let MAX_TAIL_LENGTH = 50 | |
| // Particle class to represent parts of the comet's tail |
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 std | |
| import vec | |
| import color | |
| import gl | |
| // Window dimensions | |
| let sw = 700 | |
| let sh = 700 | |
| // Center coordinates |
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
| [Lang] | |
| ID=2 | |
| Caption=Українська by (Hammerok) | |
| Help=GaleUS.chm | |
| ProportionalFont=MS Sans Serif | |
| FixedFont=Courier New | |
| FontSize=14 | |
| MainMenuFont= | |
| MainMenuFontSize= |
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
| # --- Imports --- | |
| import nico | |
| import nico/controller | |
| import nico/keycodes | |
| import random | |
| import sequtils | |
| import strutils # Для $score | |
| # --- Constants --- | |
| const SCREEN_WIDTH: Pint = 64 |
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
| # Этап 1: Сборка приложения | |
| FROM golang:latest AS builder | |
| # Создаем директорию для исходников | |
| RUN mkdir /src | |
| WORKDIR /src | |
| # Клонируем репозиторий в текущую директорию (/src) | |
| RUN git clone --depth 1 https://github.com/aculix/bitplay.git . |
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
| nim c -d:release \ | |
| --cpu:arm64 \ | |
| --os:linux \ | |
| --cc:gcc \ | |
| --gcc.exe:/storage/ROMs/usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-gcc \ | |
| --gcc.linkerexe:/storage/ROMs/usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-gcc \ | |
| --passC:--sysroot=/storage/ROMs/usr/local/sysroot \ | |
| --passL:--sysroot=/storage/ROMs/usr/local/sysroot \ | |
| --passC:-march=armv8-a \ | |
| --passL:-static \ |