Skip to content

Instantly share code, notes, and snippets.

voidProc voidproc

Block or report user

Report or block voidproc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cutinfx.cpp
#include <Siv3D.hpp>
struct ScrollLines
{
Array<RectF> lines;
int frame = 0;
const int duration;
const int fade;
View entitylist2.cpp
#include <Siv3D.hpp>
#include <memory>
#include <list>
#include <unordered_map>
// ----------------------------------------
// Entity インスタンス間の共有データ
// ----------------------------------------
@voidproc
voidproc / intersect.cpp
Last active Sep 23, 2016
Collision detection for Shapes
View intersect.cpp
#include <Siv3D.hpp>
template <class T>
const bool intersect(const T& shape1, const Shape& shape2)
{
const Shape::Type type = shape2.type();
switch (type)
{
@voidproc
voidproc / entity.cpp
Created Sep 19, 2016
Simple game object container
View entity.cpp
#include <iostream>
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include <list>
#include <unordered_map>
using namespace std;
@voidproc
voidproc / Main.cpp
Created Sep 11, 2016
Circle::drawFrame + RenderTexture
View Main.cpp
#include <Siv3D.hpp>
void Main()
{
const Size windowSize(640, 480);
const Color bg = Palette::Black;
RenderTexture renderTexture(windowSize.x / 2, windowSize.y, bg);
@voidproc
voidproc / s3dkun_blink.cpp
Last active Aug 31, 2016
Simple blinking effect using Siv3D PixelShader
View s3dkun_blink.cpp
@voidproc
voidproc / luabridge_example.cpp
Last active Aug 29, 2016
Lua 5.2.4 + LuaBridge minimal example
View luabridge_example.cpp
// Siv3D : http://play-siv3d.hateblo.jp/
#include <Siv3D.hpp>
// Lua : https://www.lua.org/
#include <lua.hpp>
#pragma comment(lib, "lua52.lib")
// LuaBridge : https://github.com/vinniefalco/LuaBridge
#include <LuaBridge.h>
using namespace luabridge;
View nodraw_during_resize.cpp
#include <Siv3D.hpp>
#include <HamFramework.hpp>
void Main()
{
ScalableWindow::Setup(640, 480);
Graphics::SetBackground(Palette::White);
Stopwatch resizeWatch(true);
@voidproc
voidproc / decodeimage.cpp
Last active Aug 24, 2016
Draw embedded Base64 image
View decodeimage.cpp
#include <Siv3D.hpp>
//#define ENCODE_IMAGES
String encodeFile(const FilePath& filepath)
{
return Base64::Encode(BinaryReader(filepath).readWhole());
}
void Main()
@voidproc
voidproc / siv3d_scene.cpp
Last active Aug 21, 2016
Scene changing with ham::SceneManager
View siv3d_scene.cpp
#include <Siv3D.hpp>
#include <HamFramework.hpp>
// こちらで詳しい解説がされています:
// http://qiita.com/hamukun8686/items/4620d630b538c78a6e02
enum class SceneType
{
Empty,
Title,
You can’t perform that action at this time.