This file contains 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 <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); |
This file contains 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 <Siv3D.hpp> | |
#include <deque> | |
class Bullet | |
{ | |
public: | |
Bullet(Vec2 pos, Vec2 vec, Color color) | |
: pos(pos), vec(vec), color(color) {} | |
void move() |
This file contains 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 <Siv3D.hpp> | |
# include <HamFramework.hpp> | |
const Polygon& GetPolygon(int index) | |
{ | |
const double BallSize = 1.0; | |
static const Polygon polygons[] = | |
{ |