.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > YappA > Offtopic
Offtopic Just anything. You have time to waste ? Prove it !!!

Reply
 
Thread Tools
Re: Show off your finest piece of code!
Old
  (#21)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: Show off your finest piece of code! - 31-12-2004

hey , its quite easy to understand the code , but I se many "STEAM" phrase inside Perhaps I could do something

[EDIT]
Now player can fire , but no bullet appear , no sound
  
Reply With Quote
Re: Show off your finest piece of code!
Old
  (#22)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: Show off your finest piece of code! - 31-12-2004

I forgot to show the output of the full program. Here it is:

Quote:
Creating first vector (3, 5, 2)
Creating second vector (1, 9, 7)
The first vector is 6.16441 units long.
The second vector is 11.4455 units long.
Normalizing first vector. It is now (0.486664, 0.811107, 0.324443) and 1 units long.
Normalizing second vector. It is now (0.0873704, 0.786334, 0.611593) and 1 units
long.
vector1 + vector2 = (0.574035, 1.59744, 0.936036)
vector1 - vector2 = (0.399294, 0.0247735, -0.28715)
vector1 cross product vector2 = (0.240947, -0.269294, 0.311814)
vector1 dot product vector2 = 0.878748
Press any key to continue . . .
Does anyone know if the data is accurate?


sfx1999.postcount++
  
Reply With Quote
Re: Show off your finest piece of code!
Old
  (#23)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Show off your finest piece of code! - 31-12-2004

just check it for yourself. normalized vectors have the length 1 when using the appropriate norm and addition and mutliplication shouldnt be a problem neither. if you have problems with your code, maybe you should start another thread for itself, or start a general "misc coding questions" thread


  
Reply With Quote
Re: Show off your finest piece of code!
Old
  (#24)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: Show off your finest piece of code! - 31-12-2004

Some random crap i dug up from one of my webservers :p

PHP Code:
function mt_diff($a$b)
{
    
// Function designed to confuse the FUCK outta anyone.
    
list($am$ai) = explode(' '$a);
    list(
$bm$bi) = explode(' '$b);
    if (
$ai $bi) {
        return (
$ai $bi) + ($am $bm);
    } elseif (
$ai == $bi) {
        if (
$am $bm) {
            return (
$ai $bi) + ($am $bm);
        } elseif (
$am $bm) {
            return (
$bi $ai) + ($bm $am);
        } else {
            return 
0;
        } 
    } else {
        return (
$bi $ai) + ($bm $am);
    } 

And theres always this one..

PHP Code:
// kthx..
die(); // !!!! 


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: Show off your finest piece of code!
Old
  (#25)
biohazerd87
Moderator by day Waypointer by night
 
biohazerd87's Avatar
 
Status: Offline
Posts: 1,039
Join Date: Apr 2004
Location: Missouri
Default Re: Show off your finest piece of code! - 31-12-2004

not really a code... but it is the first thing i have ever made in flash and it took awhile to make.....
www.crazymonkeycomputers.com
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com