Skip to content

Instantly share code, notes, and snippets.

View Reputeless's full-sized avatar
🍰
A piece of cake

Ryo Suzuki Reputeless

🍰
A piece of cake
View GitHub Profile
# include <Siv3D.hpp> // Siv3D v0.6.14
// チュートリアル 41.3
BlendState MakeBlendState()
{
BlendState blendState = BlendState::Default2D;
blendState.srcAlpha = Blend::SrcAlpha;
blendState.dstAlpha = Blend::DestAlpha;
blendState.opAlpha = BlendOp::Max;
return blendState;
@Reputeless
Reputeless / box2dtest.cpp
Created January 3, 2018 21:25 — forked from tokoroten/box2dtest.cpp
siv3d box2d
# include <Siv3D.hpp>
# include <HamFramework.hpp>
const Polygon& GetPolygon(int index)
{
const double BallSize = 1.0;
static const Polygon polygons[] =
{
#include <Siv3D.hpp>
#include <deque>
class Bullet
{
public:
Bullet(Vec2 pos, Vec2 vec, Color color)
: pos(pos), vec(vec), color(color) {}
void move()