/CONFIG:%FILE% загрузка настроек из файла
/W:%NUM% ширина экрана
/H:%NUM% высота экрана
/FS игра в полный экран
/WIN игра в окне
/REFRESH:%NUM% частота или фпс в игре
/INVERTMOUSEFP инверт мышки от первого лица [Mouse Y-axis inverted for first person]
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
<div class="about"> <!-- d-flex flex-row align-items-center --> | |
<div class="about__name"> <!-- lead text-center --> | |
Lorem Ipsum | |
</div> | |
<div class="about__content"> <!-- text-center --> | |
Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt. | |
</div> | |
</div> |
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
@import '~bootstrap/scss/functions'; // need by variables | |
@import '~bootstrap/scss/variables'; | |
$card-border-width: 0; | |
$card-border-radius: 0; | |
$theme-colors: ( | |
'blue': #15b3ee, | |
'orange': #eb5834 | |
); |
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
.my-items-list { | |
@include make-row(); | |
&__item { | |
@include make-col-ready(); | |
@include media-breakpoint-up(xs) { | |
@include make-col(12); | |
} | |
@include media-breakpoint-up(sm) { |
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
ul.tree, ul.tree ul { | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
} | |
ul.tree ul { | |
margin-left: 10px; | |
} | |
ul.tree li { | |
margin: 0; |
Why?
This:
.action {
@extend .ml-3;
}
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
using System; | |
public static class CantorPairUtility { | |
public static int CantorPair(int x, int y) { | |
return (((x + y) * (x + y + 1)) / 2) + y; | |
} | |
public static void ReverseCantorPair(int cantor, out int x, out int y) { | |
var t = (int) Math.Floor((-1 + Math.Sqrt(1 + 8 * cantor)) / 2); |
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
cmake_minimum_required(VERSION 3.1) | |
project(nbody) | |
# Add module path in case this is project root | |
if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) | |
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../../modules/" ${CMAKE_MODULE_PATH}) | |
endif() | |
find_package(Magnum REQUIRED |
With Magnum and EnTT. An adaptation of ecs_pong which is example material for Flecs, another ECS framework, developed as a learning exercise of both Magnum, EnTT and ECS in general. Runs at a solid 60 fps, can you believe it?
There are NOTE
markings left in the code to highlight various differences and things I struggled with and would have liked to have done.
OlderNewer