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> | |
void Main() | |
{ | |
Window::SetTitle(L"Dum Dum Fighting"); | |
Graphics::SetBackground(Palette::Skyblue); | |
ScalableWindow::Setup(); | |
const Font font(40); |
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> | |
void Main() | |
{ | |
Window::SetTitle(L"Before Momotaro"); | |
Graphics::SetBackground(Palette::Green); | |
Graphics::SetTargetFrameRateHz(60); | |
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> | |
void Main() | |
{ | |
const auto args = CommandLine::Get(); | |
if (args.size() < 2) | |
{ | |
return; | |
} |
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 <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 }, |
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 <stdio.h> | |
# include <limits.h> | |
# define NODE_NUM 6 | |
# define MAX_CONNECTION_NUM 10 | |
struct node_t; | |
struct node_connect_t | |
{ |
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
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"); |
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> | |
# include "asc/TCPString.hpp" | |
struct GameData | |
{ | |
asc::TCPStringClient client; | |
}; | |
class Connecting : public SceneBase<String, GameData> |
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
require "socket" | |
server = TCPServer.open("127.0.0.1", 50000); | |
puts "Server is running at 50000." | |
loop { | |
begin | |
parent = server.accept(); |
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
# 中略 | |
threads << Thread.new { | |
loop { | |
message = parent.gets(); | |
if (message.nil?()) | |
break; | |
end |
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
class Game : public SceneBase<String, GameData> | |
{ | |
private: | |
bool isParent; | |
bool isSendGoal; | |
Rect leftBar; | |
int leftBarSpeed; | |
Rect rightBar; | |
int rightBarSpeed; |
NewerOlder