Bitcoin Forum
May 20, 2024, 09:50:25 PM *
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
FirstAscent
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000


View Profile
August 28, 2013, 07:45:18 PM
 #21

Quote from: Remember remember the 5th of November
Those are just semantics, I write clean code, if you see how the MyBB team code it's just gorgeous.
[/quote

No, I haven't seen. Are you claiming your code is gorgeous?

Quote
Plus

if(eval)
{
    // code
}

is much better than

if(eval) {
    // code
}

It's much better? One of the reasons for putting the opening curly on the same line is to show a little more code per page, decreasing scrolling for comprehension. Note that I'm not using the word 'better'. I'm stating a reason for a preference.

Whitespace is good, and necessary, but not in this case.
Lauda
Legendary
*
Offline Offline

Activity: 2674
Merit: 2965


Terminated.


View Profile WWW
August 28, 2013, 07:59:09 PM
 #22

Stop with this useless code.

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

Activity: 1904
Merit: 1005


PGP ID: 78B7B84D


View Profile
August 28, 2013, 09:28:53 PM
 #23

If you think the Internet is stale, you haven't been to leekspin.com recently  Grin














 

 

█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
BitBlender 

 













 















 












 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
Lauda
Legendary
*
Offline Offline

Activity: 2674
Merit: 2965


Terminated.


View Profile WWW
August 28, 2013, 09:42:14 PM
 #24

If you think the Internet is stale, you haven't been to leekspin.com recently  Grin
Ty! I forgot about this site i find it funny, time to bookmark and hypnotise myself!  Cheesy
http://leekspin.com/
For link purposes.

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

Activity: 1498
Merit: 1038


Death to enemies!


View Profile
August 28, 2013, 11:41:32 PM
 #25

Old school!


Now that's a real smoothie! New avatar anyone?
 

bc1q59y5jp2rrwgxuekc8kjk6s8k2es73uawprre4j
Foxpup
Legendary
*
Offline Offline

Activity: 4368
Merit: 3045


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
August 29, 2013, 01:14:50 AM
 #26

Collision is simple, assuming that your characters are rectangles here is a sample of my old code
Collision detection is simple (for simple shapes, anyway); it's collision response that's the hard part. Wink

For platform games, this depends on the type of objects that collided.

The simplest case is, of course, a bullet. A colliding bullet simply disappears and causes damage to whatever it collided with.

Enemy vs. player collisions are more complicated, since unless the player is a one hit-point wonder, both objects will still be around and still be intersecting unless you do something about it. Depending on the game, you may or may not want enemies to be solid (see below), and in either case, if the collision itself causes damage (as opposed to the more realistic case of requiring one actor to actually perform an attack in order to damage the other), then you need knockback and/or mercy invincibility to avoid repeating the damage on every frame.

Finally comes the platforms themselves (as well as anything else that functions as a solid platform). Here, it's important to know which direction the collision came from (whether you walked into a wall, bumped your head on the ceiling, or are standing on the floor). For square actors, this can be accomplished by checking which axis (X or Y) has the greatest absolute difference between the distance and the sum of the sizes of the actors (ie, how deeply they're interpenetrating) (for rectangular actors, you also need to take into account the actors' aspect ratio). The sign of the difference tells you the direction. Then it's just a simple matter for zeroing the moving actor's velocity in that axis, and clipping its position to the plane of the platform. For the special case of collisions from above (standing on the floor), you also want to set a flag saying that the actor is standing on a floor, so you can set appropriate animation, etc.

Note that all of the above only applies if no object can move fast enough to reach the other side of another within a single frame (mostly a problem for bullets, but can affect falling players if they have no terminal velocity). In that case, it gets even more complicated.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Phinnaeus Gage
Legendary
*
Offline Offline

Activity: 1918
Merit: 1570


Bitcoin: An Idea Worth Spending


View Profile WWW
August 29, 2013, 06:42:49 AM
 #27

Wait till the song B.DOUBLE O.T.Y comes out in both a rap and country version at the same time.
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!