Bitcoin Forum
May 24, 2024, 11:50:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: The Internet has been very stale lately.  (Read 1837 times)
Remember remember the 5th of November (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
August 28, 2013, 01:26:39 AM
 #1

I mean, since Antoine Dodson's Bed Intruder song, UCLA Alexandra Wallace and Harlem Shake, there has been for a long while...nothing trollish,racist,meme-like...

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
MysteryMiner
Legendary
*
Offline Offline

Activity: 1498
Merit: 1038


Death to enemies!


View Profile
August 28, 2013, 01:59:18 AM
 #2

https://encyclopediadramatica.se/Main_Page

bc1q59y5jp2rrwgxuekc8kjk6s8k2es73uawprre4j
Kyle91
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile
August 28, 2013, 03:41:41 AM
 #3

go on 4chan
PerfectAgent
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


Still the Best 1973


View Profile
August 28, 2013, 05:10:50 AM
 #4


░▒▓█ Coinroll.it - 1% House Edge Dice Game █▓▒░ • Coinroll Thread • *FREE* 100 BTC Raffle
BTC Address: 14qkEkmoWQbgF4EMB6F5m8p3LU1D8UK32D ||||||||||| NMC Address: N8xv7xXnLnRgSvQCRK9vwndsH2HBAifs3C
Lethn
Legendary
*
Offline Offline

Activity: 1540
Merit: 1000



View Profile WWW
August 28, 2013, 05:57:34 AM
 #5

It's true actually Sad the internet isn't being as original as it used to be, maybe everyones working on news stuff or something, i need to hurry up and finish learning the coding I need so I can make some fun games to play and not be bored anymore lololool Cheesy
b!z
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
August 28, 2013, 10:01:09 AM
 #6


the leethecking guides on ED are all from 2003 or something, they're hilarious to read
Remember remember the 5th of November (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
August 28, 2013, 11:34:21 AM
 #7

It's true actually Sad the internet isn't being as original as it used to be, maybe everyones working on news stuff or something, i need to hurry up and finish learning the coding I need so I can make some fun games to play and not be bored anymore lololool Cheesy
Already ahead of you Cheesy


BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Lethn
Legendary
*
Offline Offline

Activity: 1540
Merit: 1000



View Profile WWW
August 28, 2013, 12:31:19 PM
 #8

Hah! Bet you're not fixing the FPS issues yet Tongue
b!z
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
August 28, 2013, 01:24:42 PM
 #9

It's true actually Sad the internet isn't being as original as it used to be, maybe everyones working on news stuff or something, i need to hurry up and finish learning the coding I need so I can make some fun games to play and not be bored anymore lololool Cheesy
Already ahead of you Cheesy



Looks like space invaders + mario
Lethn
Legendary
*
Offline Offline

Activity: 1540
Merit: 1000



View Profile WWW
August 28, 2013, 02:05:13 PM
 #10

I know we just hijacked this thread but what the hell Tongue maybe we should make a thread just to show off our WIP games Cheesy, so far I've managed to make my rabbit thingy move across the screen, need to fix FPS and add collision in for it to properly work and of course put in some gravity.



The idea is it's a basic platformer and you play as a rabbit that has to jump up clouds to the moon, the stars are either powerups or bad guys depending on their emotions Tongue
C10H15N
Hero Member
*****
Offline Offline

Activity: 811
Merit: 1004



View Profile
August 28, 2013, 02:13:57 PM
 #11

The Internet is so 90's...   

Only when the tide goes out do you discover who's been swimming naked. -Warren Buffett
Remember remember the 5th of November (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
August 28, 2013, 02:31:20 PM
 #12

Collision is simple, assuming that your characters are rectangles here is a sample of my old code

Code:
bool check_collision_rect(Rect *A, Rect *B)
{
    //The sides of the rectangles
    int leftA, leftB;
    int rightA, rightB;
    int topA, topB;
    int bottomA, bottomB;


    //Calculate the sides of rect A
    leftA = A->x;
    rightA = A->x + A->w;
    topA = A->y;
    bottomA = A->y + A->h;

    //Calculate the sides of rect B
    leftB = B->x;
    rightB = B->x + B->w;
    topB = B->y;
    bottomB = B->y + B->h;

    //If any of the sides from A are outside of B
    if(bottomA <= topB)
    {
        return false;
    }

    if(topA >= bottomB)
    {
        return false;
    }

    if(rightA <= leftB)
    {
        return false;
    }

    if(leftA >= rightB)
    {
        return false;
    }

    //If none of the sides from A are outside B
    return true;
}

and

Code:
double distance(int x1, int y1, int x2, int y2)
{
    //Return the distance between the two points
    return sqrt( pow( x2 - x1, 2 ) + pow( y2 - y1, 2 ) );
}

bool collision_circle(Circle A, Circle B)
{
    //If the distance between the centers of the circles is less than the sum of their radii
    if(distance(A.x, A.y, B.x, B.y) < (A.r + B.r))
    {
        //The circles have collided
        return true;
    }
    
    //If not
    return false;
}

It's true actually Sad the internet isn't being as original as it used to be, maybe everyones working on news stuff or something, i need to hurry up and finish learning the coding I need so I can make some fun games to play and not be bored anymore lololool Cheesy
Already ahead of you Cheesy

Looks like space invaders + mario
Yeah, I was inspired by mario. At first I was going to make so you could walk up,down,left,right but then decided to make it like Super Mario from 84 for SNES.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Lethn
Legendary
*
Offline Offline

Activity: 1540
Merit: 1000



View Profile WWW
August 28, 2013, 02:49:29 PM
Last edit: August 28, 2013, 03:04:39 PM by Lethn
 #13

I'm using SFML myself so the code is already there, I just need to implement it all into my game properly which is harder than it looks!
FirstAscent
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000


View Profile
August 28, 2013, 03:28:10 PM
 #14

Code:
bool check_collision_rect(Rect *A, Rect *B)
{
    // The sides of the rectangles
    int leftA, leftB;
    int rightA, rightB;
    int topA, topB;
    int bottomA, bottomB;

    // Calculate the sides of rect A
    leftA   = A->x;
    rightA  = A->x + A->w;
    topA    = A->y;
    bottomA = A->y + A->h;

    // Calculate the sides of rect B
    leftB   = B->x;
    rightB  = B->x + B->w;
    topB    = B->y;
    bottomB = B->y + B->h;

    // If any of the sides from A are outside of B
    if(bottomA <= topB) {
        return false;
    }

    if(topA >= bottomB) {
        return false;
    }

    if(rightA <= leftB) {
        return false;
    }

    if(leftA >= rightB) {
        return false;
    }

    // If none of the sides from A are outside B
    return true;
}

and

Code:
double distance(int x1, int y1, int x2, int y2)
{
    // Return the distance between the two points
    return sqrt(pow(x2 - x1, 2) + pow( y2 - y1, 2));
}

bool collision_circle(Circle A, Circle B)
{
    // If the distance between the centers of the circles is
    // less than the sum of their radii
    if(distance(A.x, A.y, B.x, B.y) < (A.r + B.r)) {
        //The circles have collided
        return true;
    }
    
    // If not
    return false;
}

Fixed your code. Issues included no spaces between comments and double slashes, failure to put opening curly bracket for if/else/for/while constructs on same line as opening statement, failure to align assignment operator for variables belonging to a group, and excess spacing around parenthesis.
Lethn
Legendary
*
Offline Offline

Activity: 1540
Merit: 1000



View Profile WWW
August 28, 2013, 03:30:04 PM
 #15

He did say it was old code you know Tongue
RodeoX
Legendary
*
Offline Offline

Activity: 3066
Merit: 1147


The revolution will be monetized!


View Profile
August 28, 2013, 03:33:10 PM
 #16

Old school!


The gospel according to Satoshi - https://bitcoin.org/bitcoin.pdf
Free bitcoin in ? - Stay tuned for this years Bitcoin hunt!
FirstAscent
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000


View Profile
August 28, 2013, 04:50:54 PM
 #17

Old school!

What is old school?
Lauda
Legendary
*
Offline Offline

Activity: 2674
Merit: 2965


Terminated.


View Profile WWW
August 28, 2013, 04:57:27 PM
 #18

9gag and 4chan.

"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
😼 Bitcoin Core (onion)
RodeoX
Legendary
*
Offline Offline

Activity: 3066
Merit: 1147


The revolution will be monetized!


View Profile
August 28, 2013, 06:00:17 PM
 #19

Why the dancing baby of course. Hello 1996.

http://en.wikipedia.org/wiki/Dancing_baby

The gospel according to Satoshi - https://bitcoin.org/bitcoin.pdf
Free bitcoin in ? - Stay tuned for this years Bitcoin hunt!
Remember remember the 5th of November (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
August 28, 2013, 07:05:12 PM
 #20

Code:
bool check_collision_rect(Rect *A, Rect *B)
{
    // The sides of the rectangles
    int leftA, leftB;
    int rightA, rightB;
    int topA, topB;
    int bottomA, bottomB;

    // Calculate the sides of rect A
    leftA   = A->x;
    rightA  = A->x + A->w;
    topA    = A->y;
    bottomA = A->y + A->h;

    // Calculate the sides of rect B
    leftB   = B->x;
    rightB  = B->x + B->w;
    topB    = B->y;
    bottomB = B->y + B->h;

    // If any of the sides from A are outside of B
    if(bottomA <= topB) {
        return false;
    }

    if(topA >= bottomB) {
        return false;
    }

    if(rightA <= leftB) {
        return false;
    }

    if(leftA >= rightB) {
        return false;
    }

    // If none of the sides from A are outside B
    return true;
}

and

Code:
double distance(int x1, int y1, int x2, int y2)
{
    // Return the distance between the two points
    return sqrt(pow(x2 - x1, 2) + pow( y2 - y1, 2));
}

bool collision_circle(Circle A, Circle B)
{
    // If the distance between the centers of the circles is
    // less than the sum of their radii
    if(distance(A.x, A.y, B.x, B.y) < (A.r + B.r)) {
        //The circles have collided
        return true;
    }
    
    // If not
    return false;
}

Fixed your code. Issues included no spaces between comments and double slashes, failure to put opening curly bracket for if/else/for/while constructs on same line as opening statement, failure to align assignment operator for variables belonging to a group, and excess spacing around parenthesis.
Those are just semantics, I write clean code, if you see how the MyBB team code it's just gorgeous.

Plus

if(eval)
{
    // code
}

is much better than

if(eval) {
    // code
}

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!