byte night mods

This commit is contained in:
sandb 2010-02-04 23:27:10 +01:00
parent 0492a99232
commit 8db795b9b3
6 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
define("OUTPUT_SERVER_DIRECTORY", "/home/sandbender/www/pamela/uploads"); define("OUTPUT_SERVER_DIRECTORY", "/www/pamela/uploads");
define("MACFILE_TTL", "3600"); define("MACFILE_TTL", "3600");

BIN
img/norbert-8bit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -6,7 +6,7 @@
<script src="js/pamela-nodes.js" type="text/javascript" /> <script src="js/pamela-nodes.js" type="text/javascript" />
<script src="js/pamela-matrices.js" type="text/javascript" /> <script src="js/pamela-matrices.js" type="text/javascript" />
<script src="js/pamela.js" type="text/javascript" /> <script src="js/pamela.js" type="text/javascript" />
<style type="text/css">* {margin:0; padding:0} body { background-color: #333; }</style> <style type="text/css">* {margin:0; padding:0} body { background-color: #fff; }</style>
</head> </head>
<body> <body>
<canvas id="pamela"></canvas> <canvas id="pamela"></canvas>

View File

@ -147,17 +147,17 @@ Node.prototype.draw = Node.prototype.normal.draw;
jQuery.extend(NorbertNode.prototype, Node.prototype); jQuery.extend(NorbertNode.prototype, Node.prototype);
function NorbertNode() { function NorbertNode() {
this.norbert = new Image(); this.norbert = new Image();
this.norbert.src = "img/ccc.png"; this.norbert.src = "img/norbert-8bit.png";
this.position = new Vector(0, 0, 0); this.position = new Vector(0, 0, 0);
} }
NorbertNode.prototype.draw = function() { NorbertNode.prototype.draw = function() {
var s = Math.abs(this.projection.z / (width / 2)); var s = Math.abs(this.projection.z / (width / 2));
s *= 2; s *= 2;
//var x = Math.floor(this.projection.x - (186 / s)); var x = Math.floor(this.projection.x - (186 / s));
//var y = Math.floor(this.projection.y - (50 / s)); var y = Math.floor(this.projection.y - (50 / s));
var x = Math.floor(this.projection.x - (192 / s)); //var x = Math.floor(this.projection.x - (192 / s));
var y = Math.floor(this.projection.y - (180 / s)); //var y = Math.floor(this.projection.y - (180 / s));
context.drawImage(this.norbert, x, y); context.drawImage(this.norbert, x, y);
}; };

View File

@ -166,7 +166,7 @@ Pamela.prototype.draw = function() {
}); });
context.save(); context.save();
context.fillStyle = "#333"; context.fillStyle = "#fff";
context.fillRect( 0, 0, width, height ); context.fillRect( 0, 0, width, height );
context.translate(width / 2, height / 2); context.translate(width / 2, height / 2);
for (var i = 0; i < this.nodes.length; i++) { for (var i = 0; i < this.nodes.length; i++) {

View File

@ -39,7 +39,7 @@ exit 1
} }
IF='wlan0' IF='wlan0'
OUT='http://81.163.130.39/pamela/upload.php' OUT='http://hackerspace.be/pam/upload.php'
SLEEP='120' SLEEP='120'
TEMP=$(getopt -o 'hi:o:s:-n' "pamela arp scanner" -- "$@") TEMP=$(getopt -o 'hi:o:s:-n' "pamela arp scanner" -- "$@")