Share your repls and programming experiences

← Back to all posts
Block Brawl [2P GAME]
[deleted]

Presenting...Block Brawl!

Block Brawl is a fun two-player fighting game. Two squares duel it out in a dark box and the last one standing wins! Try not to die...👍

Controls

Player 1 (Blue) -

W - Jump
A - Move Left
S - Shoot
D - Move Right

Player 2 (Red) -

⬆(up arrow) - Jump
⬅(left arrow) - Move Left
⬇(down arrow) - Shoot
➡(right arrow)- Move Right


Wall jumping is also possible (you can jump on a vertical wall if you hold jump key and left/right key together continuously. Hold left if the wall is on your left, and right if wall is on your right.)

Both players have three lives each, and every bullet that hits your opponent, takes out one of those lives. 3 strikes and you're out. Your lives are stored inside two walls. If the blue walls lives all disappear because blue is hit thrice, Red wins, and vice versa.

Thanks, here's some extra JS code...

if(reader.like(my_project)){
  reader.pls.upvote();
}
else if(reader.want.suggest(something) === true){
  reader.pls.comment();
}
else{
  me.think(reader) === "mean";
  me.just.kidding();
  reader.do(whatever_you_want);
}

me.say("BYE AND THANKS!!!");
Comments
hotnewtop
Baconman321 (756)

Wow, nice!
LOL ur code at the bottom
Lemme give u some pro stuff:

I.like&&You.say("THX");I.say("np");let compliments = "WOW good job, COOL, neat, amazing!".split(",");if(compliments.filter(function(val){return I.said.toLowerCase()=== val.toLowerCase()})){You.say("Wow, stop flattering me!");}else{You.say("Staph plz :(");}
[deleted]

@Baconman321 - Thanks!

your.code === "too complicated";

lol

[deleted]

@Baconman321 - I know lol

Whippingdot (378)

HELLLLOOOO STOP ADVERTISING YOUR SHARED POST TO OTHER PEOPLE AND STOP RANDOM PINGING. YOU WILL BE BANNED, I HAVE REPORTED YOU IN 3 DIFFERENT AREAS ALREADY. JUST STOP, WHY ARE YOU TRYING SO HARD. IT IS SOOOO IRRITATING. STOP!!! @BenjaminHannan

FlaminHotValdez (342)

THE CREATOR HAS BEEN BANNED! HE WILL NOT BE ABLE TO REPLY TO YOUR COMMENTS!

FlaminHotValdez (342)

@elizurfk He is not 13 yet, and therefore is not old enough to use Repl.

Kookiez (327)

@FlaminHotValdez What kind of ban does he/she/they have? Just a talk ban or a more serious ban

FlaminHotValdez (342)

@Kookiez idk, on his profile it just says I'VE BEEN BANNED! Don't ask me I just thought I would tell you guys

Kookiez (327)

@FlaminHotValdez Yeah probably a talk ban, if he can change his bio then its probably a talk ban

BobTheTomatoPie (3182)

this is really really awesome dude!

OldWizard209 (959)

Wow this is soo cool, especially the particles when you shoot. Also maybe make more levels? Otherwise it is AWSEOME @Persassy2109

[deleted]

@TheCheeseCoder - Thank you! Please upvote if you like it!

proryan (65)

Maybe make it fullscreen...

tussiez (733)

Note

@Persassy2109 has been banned on Repl Talk for being underage (<13). He/she will not be able to reply to your comments.
Still a fun game!

mesquite2234 (245)

Repl should un-ban this guy

mesquite2234 (245)

@PyCoder01 Underage people might be good coders and good people. And this guy is both

PyCoder01 (80)

@TommyVictory He broke the TOS. It's like this because of COPPA don't blame repl.it for this, blame COPPA.

PyCoder01 (80)

@TommyVictory if repl.it doesn't follow the terms of COPPA they will have to pay a fine of 40,000 dollars. COPPA is the "Children's Online Privacy Protection Act". Repl.it has to pay the fine because it's under the government and if they say no to paying the fine or pay the fine and still allowing people under 13 to join this type of "social media" the company will be shut down and be fined another 40k.

mesquite2234 (245)

@PyCoder01 edit: I meant to say "Thats a bit much"

mesquite2234 (245)

@PyCoder01 Oh the comment didn't work

OctagonalT (9)

Instructions unclear, encountered error

Sh3rz0d (0)

Awesome! Quick question, how do I increase the fire rate?

PyCoder01 (80)

@Sh3rz0d The creator has been banned

Sh3rz0d (0)

@PyCoder01 Can you help me please? I'm new to coding

ItsYeBoiJ (8)

this is fire dawg keep up the good work dawg have a good day dawg and if u read this then u too have agood day dawg one thing i want to say is make sure you spend time with your loved ones because life yk it comes to an end. Goodbye dawgs :).

BenjaminHannan (38)

Upvote this post if ur cool

GeumjuKim (18)

@BenjaminHannan How desperate are you?

like dude...

BenjaminHannan (38)

Desperate to beat my brother every time
@GeumjuKim

BenjaminHannan (38)

And I think Persassy would like it a lot
It doesn't take away anything from you, and it's easy, just the click of a button.
@GeumjuKim

BenjaminHannan (38)

Can you give me code to make a blue deal twice as much damage? I use python, and even though it says on my profile that I use HTML whatever, I can't. Info please(I would like from Persassy, but anyone else can help)?

FlaminHotValdez (342)

@BenjaminHannan persassy got banned he's not 13

BenjaminHannan (38)

Waste of good coder I think
If that's true...
@BenjaminHannan

Whippingdot (378)

He only got repl talk banned. He can still code on the website. @BenjaminHannan

Whippingdot (378)

Oh and you are getting banned next @BenjaminHannan . @FlaminHotValdez this dude is advertising his shared post EVERYWHERE possible. It is soooo irritating. I already reported him in 4 different places. Report him with me, scroll up and you will see his comment on this post.

BenjaminHannan (38)

I'm sorry, I didn't know I was supposed to and was excited about my code. Please accept my apology
@HotValdez

GeumjuKim (18)

maybe add an AI thing
I have no friends :(
(Who are on repl.it, that is.)

ReyesP (23)

More lives would be good.

potatojs (819)

THIS IS ONE OF THE COOLEST THINGS I SAW IN REPL MADE WITH P5
(btw you should probably use the minimized version of the p5.play lib so it loads faster)

Bookie0 (5618)

Pretty nice! What about making the game more centered?

TheJamCoder (11)

Nice superb. Incredible I play this every day. So please try this game out

Grandmaster101 (0)

brother there is one thing i need to say SUPERB

Whippingdot (378)

AWESOME!! I love the CSS, and the smoothness of the game, awesome.

ThatCoolCoder (18)

Nice game (sadly I am alone so had to play myself. Would have upvoted just for the extra code!