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
@Reputeless
Reputeless / SivShooting.cpp
Created April 5, 2014 10:29
98 行シューティング (C++/Siv3D)
# include <Siv3D.hpp>
Image CreateSkyImage()
{
Noise noise;
Image image(640, 960);
for (int y = 0; y < image.height; ++y)
for (int x = 0; x < image.width; ++x)
image[y][x] = HSV(220, 0.5 + 0.4 * noise.octaveNoise(x / 160.0, Abs(y / 120.0 - 4.0), 8), 0.8);
#include <Siv3D.hpp>
#include <deque>
class Bullet
{
public:
Bullet(Vec2 pos, Vec2 vec, Color color)
: pos(pos), vec(vec), color(color) {}
void move()
@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[] =
{