• Terrible old shit you've made many years ago.
    64 replies, posted
-snip- Game Maker raytrace thing from when I first understood sin() and cos(). I ended up reusing this during WAYWO's raytracing fad: [IMG]https://dl.dropbox.com/u/21571661/raytrace.png[/IMG] Notice how it doesn't show the FPS...
[QUOTE=COBRAa;38261463]All the 'trojans' that are on there; oh man... [editline]31st October 2012[/editline] Also, here is some old stuff I done which wasn't done right: [video=youtube;qsgDji6IQNs]http://www.youtube.com/watch?v=qsgDji6IQNs[/video] [/QUOTE] oh wow PAWN. I remember learning that, it was pretty fun. public OnPlayerConnect(playerid) { BanEx(playerid, "GET OUT"); return 1; }
[img]https://dl.dropbox.com/u/21571661/spaceofaids2.png[/img] The first Ace of Spades server browser. Boy, is there a story behind this one.
[QUOTE=Hypershadsy;38262478][url]https://dl.dropbox.com/u/21571661/raytrace.exe[/url] Game Maker raytrace thing from when I first understood sin() and cos(). I ended up reusing this during WAYWO's raytracing fad: [img]https://dl.dropbox.com/u/21571661/raytrace.png[/img] Notice how it doesn't show the FPS...[/QUOTE] Raytracing in Game Maker! Now that's something I want to try sometime (in 3D). [editline]31st October 2012[/editline] [url]http://gmc.yoyogames.com/index.php?showtopic=500120[/url] lol
I recreated White_rabbit using Visual Basic. [url]https://dl.dropbox.com/u/47557993/White%20rabbit.exe[/url] When the countdown ends it executes whatever is in WHT_RBT.BAT. The button and window placement is hard-coded and there's a few features I never finished, notably making the timer function work like a real timer.
[CODE] import java.util.Random; import javax.swing.JOptionPane; public class Run { static boolean battle = true; public static void resetStats() { Player.health = 200; Player.mana = 50; } public static int critableHit(int base) { Random chance = new Random(); int crit = chance.nextInt(100) + 1; if (crit / 10 * 10 == crit) { int enddamage = base * 3; JOptionPane.showMessageDialog(null, "CRITICAL HIT!!!"); return enddamage; } return base; } public static void main(String[] args) { do { int unusablevar = 1; Random variant = new Random(); boolean run = true; int burning = 0; int frozen = 0; boolean charging; int enattack; int endefense; int enhealthmax; int enhealth; boolean charging; if (variant.nextInt(6) == 3) { int enattack = 40; int endefense = 4; int enhealthmax = 400; int enhealth = 400; charging = false; } else { enattack = 25; endefense = 1; enhealthmax = 100; enhealth = 100; charging = false; } resetStats(); JOptionPane.showMessageDialog(null, "Welcome to the fight!", "FIGHT!", -1); while (run) { if (Player.health > Player.healthmax) { Player.health = Player.healthmax; } else if (Player.health <= 0) { endBattle(true); } Player.mana += 3; if (Player.mana > Player.manamax) { Player.mana = Player.manamax; } if (enhealth > enhealthmax) { enhealth = enhealthmax; } JOptionPane.showMessageDialog(null, "Enemy's health: " + enhealth + "\n" + "Your health and mana: " + Player.health + " " + Player.mana + "/" + Player.manamax); int pchoice = Integer.parseInt(JOptionPane.showInputDialog("Press [1] to attack, [2] to defend, [3] to run away, [4] to see magic attacks")); boolean defending = false; switch (pchoice) { case 1: enhealth = enhealth - critableHit(Player.attack + variant.nextInt(10) - 5) + endefense; JOptionPane.showMessageDialog(null, "Your sword slices through the beast!"); break; case 2: Player.defense *= 3; defending = true; JOptionPane.showMessageDialog(null, "You raise your shield in defense."); break; case 3: run = false; endBattle(false); break; case 4: int manachoice = Integer.parseInt(JOptionPane.showInputDialog("Press [1] to use Fire (costs 30 mana) \n [2] to use Ice (costs 25 mana) \n [3] to heal yourself (costs 35 mana) \n [4] to Meditate and restore mana \n You have " + Player.mana + "/50 mana.")); switch (manachoice) { case 1: if (Player.mana >= 30) { enhealth -= critableHit(20); burning += 4; Player.mana -= 30; JOptionPane.showMessageDialog(null, "You set the enemy ablaze!"); } break; case 2: if (Player.mana >= 25) { frozen += 2; Player.mana -= 25; JOptionPane.showMessageDialog(null, "The enemy is frozen solid!"); } break; case 3: if (Player.mana >= 35) { Player.health += 40; JOptionPane.showMessageDialog(null, "Wounds across your body disappear."); if (Player.health > Player.healthmax) { Player.health = Player.healthmax; } Player.mana -= 35; } break; case 4: Player.mana += 5; JOptionPane.showMessageDialog(null, "You try to calm yourself the best you can in the \n heat of battle, netting you a modest 5 mana."); break; default: JOptionPane.showMessageDialog(null, "Your confusion disrupts the flow of universal energy towards you or something like that. \n The point is, you're not getting any mana next turn."); Player.mana -= 3; } break; default: JOptionPane.showMessageDialog(null, "You don't know what to do, so you swing your sword clumsily."); enhealth = enhealth - critableHit(Player.attack / 2) + endefense; } Random choice = new Random(); if (burning > 0) { enhealth -= burning * 5; burning--; } int choice2 = choice.nextInt(2); if (enhealth <= 0) { JOptionPane.showMessageDialog(null, "You are victorious!"); int option = JOptionPane.showConfirmDialog(null, "Would you like to play again?", "Again?", 0); if (option == 1) { endBattle(false); battle = false; } else if (unusablevar == 77) { resetStats(); System.exit(0); } else { resetStats(); enhealth = enhealthmax; charging = false; burning = 0; frozen = 0; } } if ((run) && (frozen == 0)) { if (!charging) { switch (choice2) { case 0: JOptionPane.showMessageDialog(null, "The enemy expertly wields its claws!"); Player.health = Player.health - critableHit(enattack) + Player.defense; break; case 1: JOptionPane.showMessageDialog(null, "The enemy prepares to charge you!"); charging = true; default: break; } } else if (defending) { JOptionPane.showMessageDialog(null, "You dodge him!"); charging = false; } else { JOptionPane.showMessageDialog(null, "The enemy attacks with great force!"); Player.health = Player.health - critableHit(enattack * 3) + Player.defense; charging = false; } } else { frozen--; } if (defending) { Player.defense /= 3; } enhealth += 3; } } while ( battle); } public static void endBattle(boolean defeat) { if (defeat) { JOptionPane.showMessageDialog(null, "You were defeated."); int retry = JOptionPane.showConfirmDialog(null, "Would you like to retry?", "Retry?", 0); if (retry == 1) { System.exit(0); battle = false; } else { resetStats(); System.exit(0); } } else { JOptionPane.showMessageDialog(null, "You left the battle."); JOptionPane.showMessageDialog(null, "Your health at the end: " + Player.health, "Results", -1); System.exit(0); } } }[/CODE] Good for a one-week programming camp with minimal prior experience? last time I checked, ending the battle was half-broken. And I [I]swear[/I] this was extensively commented.
[QUOTE=Ziks;38222361][url=http://www.newgrounds.com/portal/view/502077]Pirate Launch[/url][/QUOTE] I couldn't even imagined having this much fun. That game is [b][i][u]EPIC[/u][/i][/b]. Music, gameplay, "involvement", art, polish, ... You and your team did an excellent job!
[QUOTE=Ziks;38222361][url=http://www.newgrounds.com/portal/view/502077]Pirate Launch[/url][/QUOTE] This was pretty fun. I liked the ending.
[url]https://dl.dropbox.com/u/101498888/shit/shit.exe[/url] one of my first C# projects also, the code so you know it's not a virus which hijacks your bank account and changes your computer password [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace shit { class Program { static void Main(string[] args) { Console.Title = "&#21328; TROLOLOLOLOLOLOLOLOLO &#21328;"; Console.WindowHeight = 40; Console.WindowWidth = 70; Console.BufferHeight = 40; Console.BufferWidth = 70; ConsoleColor[] color = { ConsoleColor.Blue, ConsoleColor.Cyan, ConsoleColor.DarkBlue, ConsoleColor.DarkCyan, ConsoleColor.DarkGray, ConsoleColor.DarkGreen, ConsoleColor.DarkMagenta, ConsoleColor.DarkRed, ConsoleColor.DarkYellow, ConsoleColor.Gray, ConsoleColor.Green, ConsoleColor.Magenta, ConsoleColor.Red, ConsoleColor.White, ConsoleColor.Yellow }; Random rnd = new Random(); int i, frame = 0; LOL: i = (int)rnd.Next(0, color.Count() - 1); Console.BackgroundColor = color[i]; Console.Clear(); if (frame < 300) { Console.ForegroundColor = ConsoleColor.White; Console.Write(Properties.Resources.seizuretime1); } else { Console.ForegroundColor = ConsoleColor.Black; Console.Write(Properties.Resources.seizuretime2); } if (frame > 599) frame = 0; frame++; goto LOL; Console.ReadKey(); } } } [/code] edit: not recommended for people with seizures [editline]2nd November 2012[/editline] also, this: [video=youtube;_ZnFr7EazvY]http://www.youtube.com/watch?v=_ZnFr7EazvY[/video]
This was my first release ever. It was a smart 404 page which is supposed to check case sensitivity and file extension of the file you wanted to go to, and then redirect to the file it should of been. [code] <?php //This PHP Script creates a 404 Page with the ability to check if the person just put the file in a wrong Case Sensitivity. //An example of what I mean is, most servers work Case Sensitive, so File.php is not the same as file.php, and will produce //a 404 error. This script will look for the right file name, even if case is different, and redirect them. //This file is filled with comments so you know what everything does. //This function creates the current pages URL, function CurrentPageURL() { $pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://'; $pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"] : $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; return $pageURL; } $ur = basename($_SERVER['REQUEST_URI'], ""); //This gets the files name $uri = substr($_SERVER['REQUEST_URI'], 1); //This gets the files directory and file name $websitendir = urldecode(str_replace($ur, "", CurrentPageURL()));//This creates Website and Directory but no filename. $pagedir = urldecode(str_replace($ur, "", $uri));//This removes the files name, to produce just the directory $path_parts = pathinfo('./'.$pagedir.$ur); //Get the paths info $nameWE = $path_parts['filename']; //Grabs the files name without the extention. $stack = array (); //This is the start of the Files array if ($handle = opendir('./'.$pagedir)) { //This opens the directory which the person 404'd on while (false !== ($file = readdir($handle))) { //This is a loop to create an array of all files in that directory if ($file != "." && $file != "..") { array_push ($stack,$file); //adding each file to the array snd returning it as $stack } } closedir($handle); } $stackNE = array (); //This is the start of the Files array if ($handle = opendir('./'.$pagedir)) { //This opens the directory which the person 404'd on while (false !== ($file = readdir($handle))) { //This is a loop to create an array of all files in that directory if ($file != "." && $file != "..") { ; $tfile = explode(".", $file); $nu = count($tfile); $nu = 2-$nu; array_push ($stackNE,$tfile[$nu]); //adding each file to the array snd returning it as $stack } } closedir($handle); } $stackNE = array_filter($stackNE); $stack2 = explode(',',strtoupper(join(',',$stack))); //Creates the same array as Stack but all upper case $index = array_search(strtoupper($ur), $stack2); //Grabs the Array index of where the filename they want to go to $link = $websitendir.$stack[$index]; //Creates the link that the users are trying to get to if($index){ //If Index doesnt exsist that means that the file they attempted to go to doesnt even exsist. //Here we redirect to the correct link header('Location: '.$link.''); }else{ $newr = array (); //This is the start of the the new Files foreach($stack2 as $key1=>$value1) { if(strpos($value1, strtoupper($ur))) { array_push ($newr,$value1); } } if($newr){ $nlink = $websitendir.$newr[0]; //Creates the new link header('Location: '.$nlink.''); }else{ $newr2 = array (); //This is the start of the the new Files with different extentions that exist. $newextentions = array(1 => $nameWE.'.html',$nameWE.'.htm',$nameWE.'.gif',$nameWE.'.jpg',$nameWE.'.png',$nameWE.'.cgi',$nameWE.'.pl',$nameWE.'.js',$nameWE.'.java',$nameWE.'.class',$nameWE.'.asp',$nameWE.'.cfm',$nameWE.'.cfml',$nameWE.'.shtm',$nameWE.'.shml',$nameWE.'.php',$nameWE.'.php3'); foreach($newextentions as $key=>$value) { if (file_exists( './'.$pagedir.$value)) { array_push ($newr2,$value); } } if($newr2){ $nlink2 = $websitendir.$newr2[0]; //Creates the new link header('Location: '.$nlink2.''); }else{ //This is if the file doesnt exsist, as you see I put a simple 404 message include("404.html"); } } } ?> [/code] This is my new version with CheckCaseOnly, CheckSpelling, and a better structure. [code] <?php $file = array( 'filename' => explode('/', $_SERVER['REQUEST_URI']), 'extension' => explode('.', $_SERVER['REQUEST_URI']), 'full_path' => dirname(__FILE__) ); $file['extension'] = end($file['extension']); $file['filename'] = end($file['filename']); $file['filename'] = explode('.', $file['filename']); $file['filename'] = $file['filename'][0]; $files = glob('*.*'); $match = false; foreach($files as $file_) { $file_ = explode('.', $file_); $file_ = $file_[0]; if(levenshtein($file_, $file['filename']) < 6) { $match = $file_; if(strtolower($file_) == strtolower($file['filename'])) //just fer testing, didn't wanna dick around with htaccess lol continue; break; } } if($match === false) { require_once('my_404_page.php'); return; } else { //header('location: ' . $match); echo $match; } ?> [/code]
Reposting: Have a cellular automata simulator which I wrote in school in my pascal years: [URL]http://pastie.org/5172045[/URL] Don't try to read it. Edit: They call me...Threadkiller
[t]http://i.imgur.com/XT6hs.jpg[/t] When I was 9 I Googled "how to make games" and downloaded Game Maker. I opened up one of the examples, made a new level, and put a nonfunctioning health bar on top. The monsters are attacking thing was added onto a screenshot in Paint. :v:
[img]http://i.imgur.com/rimrm.png[/img] Source: [url]https://dl.dropbox.com/u/675786/Stuff/TUI.zip[/url]
One of the very first things I did was writing a batch file that would turn off you computer when you executed it. The coolest thing was that our schools virus detector detected it as some mubojumpo-W.32 thing. Fuck I was an amazing blackhat hacker elite back then.
[QUOTE=Swebonny;38368322]One of the very first things I did was writing a batch file that would turn off you computer when you executed it. The coolest thing was that our schools virus detector detected it as some mubojumpo-W.32 thing. Fuck I was an amazing blackhat hacker elite back then.[/QUOTE] I did something similar to that, but instead it would open 3 instances of internet explorer, then run itself again.
I remember making simple choice-based games in Batch and think I was hot shit for it. [editline]8th November 2012[/editline] [QUOTE=Swebonny;38368322]One of the very first things I did was writing a batch file that would turn off you computer when you executed it. The coolest thing was that our schools virus detector detected it as some mubojumpo-W.32 thing. Fuck I was an amazing blackhat hacker elite back then.[/QUOTE] I made new admin accounts by using batch I had to talk to the principle and had my computer privs suspended for a month.
[QUOTE=Swebonny;38368322]One of the very first things I did was writing a batch file that would turn off you computer when you executed it. The coolest thing was that our schools virus detector detected it as some mubojumpo-W.32 thing. Fuck I was an amazing blackhat hacker elite back then.[/QUOTE] I was an asshole and my first batch script was one that basically would attempt to format your computer. I had a friend I hated and sent it to him, not sure what happened after that. I told him that it "sped up your pc by 300%" or something similar.
[QUOTE=Derp Y. Mail;38374817]I made new admin accounts by using batch I had to talk to the principle and had my computer privs suspended for a month.[/QUOTE] i copped a two week ban from the network for having a shortcut to command prompt in my home drive
[QUOTE=ruarai;38367600]Why are people posting ok things?[/QUOTE] It's really the code that I'm ashamed about in my old projects
[QUOTE=swift and shift;38376578]i copped a two week ban from the network for having a shortcut to command prompt in my home drive[/QUOTE] My two week ban was for using a web proxy, so that one is sort of legitimate, though their blocking software is fucking retarded. Here's some content: [URL]http://www.mediafire.com/download.php?d9xoeacrewibz47[/URL] Made it in game maker 4 years ago, thought it was the best game ever made. Protip: bottom rights squares don't collide, so you don't actually have to finish a level. Oh, and you have to CtrlAltDelete to quit once you finish the game. [editline]8th November 2012[/editline] Also, on the username topic, I have no idea how I thought this up, but I thought it up around the same time I made this account and [URL="http://supersnail200.webs.com"]this awful website.[/URL]
Christ this hurts. Here's a list of some of the crap I've made through the years - This is not a portfolio of awesome stuff - this is just stuff I made from 14-17, and yes, it's [b]ALL[/b] horrible and embarrasing, yet this was just the tip of the iceberg, as this was just what I thought was good enough to upload. Even just the site itself is a goldmine of awfulness as well (don't even MENTION the domain name which I made when I was 13, almost 10 fucking years ago: [url]http://www.darkhole.dk[/url]) I'll show some code examples of some of this shit when I come home if I can find the source files. [b]"Games":[/b] [url]http://www.darkhole.dk/trm/index.html[/url] @ 2005 [url]http://www.darkhole.dk/games/rcp/rcp.swf[/url] @ 2006 [url]http://www.darkhole.dk/flash/spil/bulletproof.swf[/url] @ 2006 [url]http://www.darkhole.dk/games/jumpish/jumpish.html[/url] @ 2006 [url]http://www.darkhole.dk/games/jumpishtwo/index.html[/url] @ 2007 [url]http://www.darkhole.dk/games/ET/ElasticTurbo.html[/url] @ 2007 (this eventually turned into this: [url]http://www.jalsoedesign.net/games/gravinity/[/url]) [b]"Websites":[/b] [url]http://www.darkhole.dk/leech/index.html[/url] @ 2005 [url]http://www.darkhole.dk/windows/windowstemp.swf[/url] @ 2006 [url]http://www.darkhole.dk/pog/index.html[/url] @ 2007 [b]"Music videos":[/b] [url]http://www.darkhole.dk/sjov/sjovflash/tekandesangen.html[/url] @ 2005 [url]http://www.darkhole.dk/sjov/sjovflash/playboy/playboy.html[/url] @ 2005 [b]"Animations":[/b] [url]http://www.darkhole.dk/dhflash/egne/tortur.swf[/url] @ 2005 [url]http://www.darkhole.dk/consoletut/index.html[/url] @ 2006 ([i]Apparently, I [b]really[/b] liked flash..[/i])
My friend got a 2 week suspension for using net send to send the message "hihi" in a messagebox to every computer in the school department. ^.^
[QUOTE=h2ooooooo;38380961]Christ this hurts. Here's a list of some of the crap I've made through the years - This is not a portfolio of awesome stuff - this is just stuff I made from 14-17, and yes, it's [B]ALL[/B] horrible and embarrasing, yet this was just the tip of the iceberg, as this was just what I thought was good enough to upload. Even just the site itself is a goldmine of awfulness as well (don't even MENTION the domain name which I made when I was 13, almost 10 fucking years ago: [URL]http://www.darkhole.dk[/URL]) I'll show some code examples of some of this shit when I come home if I can find the source files. links[/QUOTE] Nice one :v: : [QUOTE][noparse]http://www.darkhole.dk/flash/spil/highscores.php?game=BulletPr00f&name=dgsgdg&score=304&pass=iloveadamsfish&action=add;[/noparse][/QUOTE]
[QUOTE=Swebonny;38389020]Nice one :v: :[/QUOTE] My point exactly :v: This is the code (which, FYI, has been removed as there's a massive security error in it): [php] <?php /* // Highscore generating and showing code // Adam Greig, 29/11/05 // Free to use and mess around with. // completly released. // Be nice and all. */ //PUT YOUR OWN STUFF BELOW!!! //adminpass is used to make a new game file. userpass is used to add a score $adminpass = "iownyouevenmore"; $userpass = "iownyou"; //this controls how many entries you see $numshow = 50; // Start initalising // get variables from URL $game = $_GET["game"]; $name = $_GET["name"]; $score = $_GET["score"]; $action = $_GET["action"]; $pass = $_GET["pass"]; $game = strtolower($game); $score = strtolower($score); if (is_numeric($score) OR $score == "") { } else { echo "uh-oh! your score must be a number!"; $score = "LOSER"; } $action = strtolower($action); // set action to show if it's blank if ($action == '') { $action = "show"; } // let's start the HTML if we're showing scores... if ($action == "show") { echo <<<end <html> <head><title>Highscore Table for $game</title></head> <body><div align="center"><h1>Highscore table for $game</h1><table cellspacing=2 border=1 cellpadding=2> end; //or open an OK doc if we're adding } elseif ($action == "add") { echo <<<end <html> <head><title>Added your highscore!</title></head> <body> end; //ok, we're done starting stuff } // OK, now to the meat of the program - saving or loading from the files //step 1 is to make a file if we can if (!file_exists("data/$game.html") AND $pass == $adminpass) { $newfile = fopen("data/$game.html", "w"); fclose($newfile); } // let's say we're gonna show files... if ($action == "show") { $gameloc = $game . ".html"; if (file_exists("data/$gameloc") AND is_file("data/$gameloc")) { $data = file("data/$gameloc"); rsort($data); if (count($data) < $numshow) { $numshow = count($data); } for ($i=0; $i < $numshow; $i++) { $data[$i] = rtrim($data[$i]); $result = explode("*", $data[$i]); echo "<tr><td>"; echo $result[1] . "</td><td>"; echo $result[0] . "</td></tr>"; } echo "</table></div>"; } else { echo "Couldn't find file! Check game name is valid."; } } elseif ($action == "add") { $gameloc = $game . ".html"; if (file_exists("data/$gameloc") AND is_file("data/$gameloc") AND $pass == $userpass) { $file = fopen("data/$gameloc", "at"); $data = "\n" . $score . "*" . $name; fwrite($file, $data); fclose ($file); echo "Your score was written! Well done $name, getting a total of $score points!"; } else { echo "Could not add, prehaps the game is invalid? Check game name ($game), or maybe you have an invalid password."; } } echo "</body></html>"; [/php] So basically it all saves to a file (good thing you didn't do "game=../../index.php"), and apparently $score is okay to be empty. FYI: I have no fucking clue where I have this code from. I'm not "Adam Greig" and I don't know who is.
freedynamichotphpscripts.ru
Designed bytecode-based virtual machine when was 11, but could not be bothered to program it on an actual computer; but I wrote one program for it ("BIOS" of a sort) on paper (still got actual VM specs somewhere, I actually decompiled this code a year ago, it was stupid): [IMG]http://i.imgur.com/yosIP.jpg[/IMG] I implemented a better virtual machine (interpreter) later though: [IMG]http://i.imgur.com/gYrCp.png[/IMG]
[QUOTE=BlackPhoenix;38393684]Designed bytecode-based virtual machine when was 11[/QUOTE] This isn't "awesome old shit you've made"
[QUOTE=BlackPhoenix;38393684]Designed bytecode-based virtual machine when was 11[/QUOTE] So jealous. I can barely program a compiler at 17 ;___;
[QUOTE=Eudoxia;38399017]So jealous. I can barely program a compiler at 17 ;___;[/QUOTE] most professional programmers will not program a compiler at any stage in their life
[QUOTE=Eudoxia;38399017]So jealous. I can barely program a compiler at 17 ;___;[/QUOTE] Creating a VM is generally much much easier than a compiler.
Sorry, you need to Log In to post a reply to this thread.