Skip to content

Instantly share code, notes, and snippets.

#pragma once
#include <Siv3D.hpp>
#include "dynamixel_sdk/DynamixelManager.hpp"
template<typename T>
Array<T> GetArray(const TOMLArrayView& arrayView)
{
Array<T> values;
@chobby
chobby / Main.cpp
Last active April 23, 2016 12:16
99 line? STG
# include <Siv3D.hpp>
struct Object{
Vec2 pos, vel;
double value;
int num, hp, type;
bool isDestroyed;
};
@chobby
chobby / Main.cpp
Created February 14, 2016 14:50
テトリス風ゲーム
# include <Siv3D.hpp>
# include <HamFramework.hpp>
enum GridState
{
I, O, S, Z, J, L, T, Null, Wall
};
struct BlockDefinition
{
@chobby
chobby / Main.cpp
Last active August 29, 2015 14:07
//May2014
# include <Siv3D.hpp>
void Main()
{
Window::Resize(854, 480);
Rect window(Window::Size());