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
//puttrend.php | |
<?php | |
require_once('config.php'); | |
$twdata = ''; | |
try { | |
$db = new PDO(PDO_DSN, DB_USERNAME, DB_PASSWORD); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Collision 3</title> | |
</head> | |
<body> | |
<canvas id="maincv"></canvas> | |
<script> | |
const PLAYER_SPEED = 3; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Collision 2</title> | |
</head> | |
<body> | |
<canvas id="maincv"></canvas> | |
<script> | |
const PLAYER_SPEED = 3; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Collision 1</title> | |
</head> | |
<body> | |
<canvas id="maincv"></canvas> | |
<script> | |
const PLAYER_SPEED = 5; |
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
//error | |
var test=[]; | |
for (var y=0; y<5; y++) { | |
for (var x=0; x<5; x++) { | |
test[y][x] = false; | |
} | |
} | |
//OK | |
var test=[]; |
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
var startX = Math.floor(Math.random()*(GEN_W+1))*2+1; | |
var startY = Math.floor(Math.random()*(GEN_H+1))*2+1; | |
var goalX = Math.floor(Math.random()*(GEN_W+1))*2+1; | |
var goalY = Math.floor(Math.random()*(GEN_H+1))*2+1; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>MAZE</title> | |
</head> | |
<body> | |
<canvas id="cv" width="800" height="600"></canvas> | |
<script> |
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
//描画 | |
var SIZE_L = 32; | |
var SIZE_S = 8; | |
var SIZE_ADJUST = (SIZE_L+SIZE_S)/2; | |
var cv = document.getElementById("cv"); | |
var ctx = cv.getContext("2d"); | |
var px,py,pw,ph; | |
ctx.fillStyle = "green"; | |
ctx.beginPath(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>MAZE</title> | |
</head> | |
<body> | |
<canvas id="cv" width="800" height="480"></canvas> | |
<script> |