Skip to content

Instantly share code, notes, and snippets.

Avatar
🍰
A piece of cake

Ryo Suzuki Reputeless

🍰
A piece of cake
View GitHub Profile
View box2dtest.cpp
# include <Siv3D.hpp>
# include <HamFramework.hpp>
const Polygon& GetPolygon(int index)
{
const double BallSize = 1.0;
static const Polygon polygons[] =
{
View main.cpp
#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 / SivShooting.cpp
Created Apr 5, 2014
98 行シューティング (C++/Siv3D)
View SivShooting.cpp
# 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);