sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzsrc/states/game_context.cpp raw
#include <algorithm>
#include "text/token.hpp"
#include "states/game_context.hpp"
namespace
Nimbin
{
void
GameContext::drop_WordToFloor(Text::TokenPtr word, const Vec3& vel)
{
if (!word) return;
word->set_Look(Config::Color::keep, Text::Token::depth_floor);
word->body.mode = PhysicsMode::Dynamic;
word->body.vel = vel;
words.push_back(std::move(word));
}
} // namespace Nimbin