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
| class Grid { | |
| construct new(w, h, z) { | |
| _width = w | |
| _height = h | |
| _grid = List.new() | |
| for(i in 0...(w * h)) { | |
| _grid.add(z) | |
| } | |
| } |
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 "xs" for Input, Render, Data | |
| class Vec2 { | |
| construct new(x, y) { | |
| _x = x | |
| _y = y | |
| } | |
| x=(value) { _x = value } | |
| x { _x } |
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 "xs" for Render, Data, Input | |
| import "xs_math" for Bits, Vec2, Math | |
| import "grid" for Grid | |
| import "random" for Random | |
| class Type { | |
| static none { 0 << 0 } | |
| static player { 1 << 0 } | |
| static enemy { 1 << 1 } | |
| static bomb { 1 << 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
| // This is an independent project of an individual developer. Dear PVS-Studio, please check it. | |
| // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com | |
| #include <Pch.h> | |
| #include <Physics/Physics2D.h> | |
| #include <Core/Entity.h> | |
| #include <Core/World.h> | |
| #include <Core/Transform.h> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <Graphics/DebugRenderer.h> |
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 <iostream> | |
| #include <string> | |
| #include <fstream> | |
| #include "include/visit_struct/visit_struct.hpp" | |
| #include "include/json.hpp" | |
| using namespace std; | |
| using namespace nlohmann; | |
| struct vec3 { |
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
| #pragma once | |
| #include <map> | |
| #include <memory> | |
| #include <string> | |
| #include <unordered_map> | |
| #include <Core/Resource.h> | |
| namespace Osm | |
| { |
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 <Graphics/Mesh.h> | |
| #include <Graphics/Model.h> | |
| #include <Graphics/Uniforms.h> | |
| #include <Graphics/OpenGL.h> | |
| using namespace Osm; | |
| static uint32_t CalculateDataTypeSize(fx::gltf::Accessor const& accessor) noexcept; |
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
| void SetStyleLight() | |
| { | |
| // General | |
| auto* style = &ImGui::GetStyle(); | |
| style->FrameRounding = 2.0f; | |
| style->WindowPadding = ImVec2(4.0f, 3.0f); | |
| style->FramePadding = ImVec2(4.0f, 4.0f); | |
| style->ItemSpacing = ImVec2(4.0f, 3.0f); | |
| style->IndentSpacing = 12; | |
| style->ScrollbarSize = 12; |