Skip to content

Instantly share code, notes, and snippets.

あさちゅん ChunChunMorning

Block or report user

Report or block ChunChunMorning

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
@ChunChunMorning
ChunChunMorning / Main.cpp
Created Sep 20, 2017
10時間ゲームジャム テーマ「格闘」
View Main.cpp
# include <Siv3D.hpp>
# include <HamFramework.hpp>
void Main()
{
Window::SetTitle(L"Dum Dum Fighting");
Graphics::SetBackground(Palette::Skyblue);
ScalableWindow::Setup();
const Font font(40);
@ChunChunMorning
ChunChunMorning / Main.cpp
Last active Sep 13, 2017
7時間ハッカソン テーマ「波」
View Main.cpp
# include <Siv3D.hpp>
# include <HamFramework.hpp>
void Main()
{
Window::SetTitle(L"Before Momotaro");
Graphics::SetBackground(Palette::Green);
Graphics::SetTargetFrameRateHz(60);
View Main.cpp
# include <Siv3D.hpp>
void Main()
{
const auto args = CommandLine::Get();
if (args.size() < 2)
{
return;
}
View Dijkstra.c
# include <stdio.h>
# include <limits.h>
# define N 6
int matrix[N][N] = {
{ 0, 10, 10, -1, -1, -1 },
{ 10, 0, 10, 8, -1, -1 },
{ 10, 10, 0, -1, 10, -1 },
{ -1, 8, -1, 0, -1, 8 },
{ -1, -1, 10, -1, 0, 10 },
View Dijkstra.c
# include <stdio.h>
# include <limits.h>
# define NODE_NUM 6
# define MAX_CONNECTION_NUM 10
struct node_t;
struct node_connect_t
{
View main.rb
require "socket"
server = TCPServer.open("127.0.0.1", 50000);
puts "Server is running at 50000."
loop {
begin
parent = server.accept();
puts("Parent come\n");
View Main.cpp
# include <Siv3D.hpp>
# include <HamFramework.hpp>
# include "asc/TCPString.hpp"
struct GameData
{
asc::TCPStringClient client;
};
class Connecting : public SceneBase<String, GameData>
View main.rb
require "socket"
server = TCPServer.open("127.0.0.1", 50000);
puts "Server is running at 50000."
loop {
begin
parent = server.accept();
View main.rb
# 中略
threads << Thread.new {
loop {
message = parent.gets();
if (message.nil?())
break;
end
View Main.cpp
class Game : public SceneBase<String, GameData>
{
private:
bool isParent;
bool isSendGoal;
Rect leftBar;
int leftBarSpeed;
Rect rightBar;
int rightBarSpeed;
You can’t perform that action at this time.