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 canvas = document.getElementById("canvas"); | |
canvas.width = document.body.clientWidth; | |
canvas.height = document.body.clientHeight; | |
canvas.style.width = canvas.width + "px"; | |
canvas.style.height = canvas.height + "px"; | |
var ctx = canvas.getContext("2d"); | |
// Debug code below | |
var rect = new Rectangle(15, 15, 50, 50); |
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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>HTML 5 Canvas</html> | |
<style type="text/css"> | |
* {margin:;padding:0;} | |
html, body { | |
background-color: #000; | |
overflow: hidden; |
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
Rectangle = function(x, y, w, h) { | |
if (x == null || y == null || w == null || h == null) { | |
alert("You must pass in all the veriables for a rectange: (x, y, width, height)"); | |
var errorMsg = "The following are not provided:"; | |
if (x == null) { | |
errorMsg += " 'x' "; | |
} | |
if (y == null) { | |
errorMsg += " 'y' "; |
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
Rectangle = function(x, y, w, h) | |
{ | |
if (x == null || y == null || w == null || h == null) | |
{ | |
alert("You must pass in all the veriables for a rectange: (x, y, width, height)"); | |
var errorMsg = "The following are not provided:"; | |
if (x == null) | |
errorMsg += " 'x' "; | |
if (y == null) |
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
Rectangle = function(x, y, w, h) | |
{ | |
if (x == null || y == null || w == null || h == null) | |
{ | |
alert("You must pass in all the veriables for a rectange: (x, y, width, height)"); | |
var errorMsg = "The following are not provided:"; | |
if (x == null) | |
errorMsg += " 'x' "; | |
if (y == null) |
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 canvas = document.getElementById("canvas"); | |
canvas.width = document.body.clientWidth; | |
canvas.height = document.body.clientHeight; | |
canvas.style.width = canvas.width + "px"; | |
canvas.style.height = canvas.height + "px"; | |
var ctx = canvas.getContext("2d"); |
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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>HTML 5 Canvas</html> | |
<style type="text/css"> | |
* {margin:;padding:0;} | |
html, body { | |
background-color: #000; | |
overflow: hidden; |
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
//============================================================================= | |
// jsRPGFaceFlip.js | |
//============================================================================= | |
/*: | |
* @plugindesc Flip faces on the X axis in message boxes | |
* @author Brent Farris | |
* | |
* @help | |
* This will flip any face within a message box along the X axis. |
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> | |
<title>PHP Template MVC</title><script src="http://localhost:80/public/Index/js/index.js"></script><style type=""text/css"><!--#demoCSS { | |
border: 1px solid black; | |
} | |
.logo { | |
max-width: 250px; |
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
using UnityEngine; | |
using BeardedManStudios.Network | |
public class SyncAnimDemo : NetworkedMonoBehavior | |
{ | |
[NetSync] | |
private bool jump = false; | |
public Animator animatorRef = null; | |