Skip to content
Sign upLog in
← Back to Community

SortaBomber - Explosion Physics

Profile icon
tussiez

SortaBomber

Blow up stuff.

This is my replica of Roblox's "welds" system. This groups static objects together, e.g buildings, but when hit above a set speed, the building will break.

Controls

  • (RIGHT) click and drag to look around.
  • (LEFT) click to fire explosives.

Improvements

I modified Physijs to work with the WASM version of Ammo, which has improved performance by.. a lot. It's now possible to simulate a few hundred blocks now without any lag. I would update the car physics game with this, but there are a few underlying problems with Physijs itself and Ammo (I spent a few hours getting collisions to work correctly), which means more bug fixing :/

How it works

Objects are first added to a parent object. This makes them a compound shape. Explosions are calculated by their position and force. The overall group has a set "strength", and this is reduced by repeated explosions, amplifying the damage done. The velocity of an object is reduced by the distance it is from the explosion, and increased by the explosion force. Objects farther away from the bomb move slower, and vice versa. Because objects cannot move independently from their parent, the ones nearest to the explosion are orphaned and made dynamic. Simply removing the object from the parent and adding it to the scene doesn't work, so I clone the object (probably a bad idea) instead.

Enjoy!

Play new version! (with buildings)

Play it!

Not working?

This Repl uses experimental technology that may not yet be supported across all platforms and browsers. For the best experience, use the following:

  • A home desktop/laptop computer, some schools may block some files
  • Chrome 89 or as recent as possible

What may be the issue:

  • WASM
  • Module Web Workers
  • WebGL
  • ES6 (Don't use Internet Explorer 😭)
Voters
Profile icon
CodeThenRest
Profile icon
Hibaosama
Profile icon
CODERGUY1
Profile icon
JasonLiu19
Profile icon
MylsKeena19
Profile icon
GraceTarpley
Profile icon
elburg
Profile icon
Kavin6422
Profile icon
FrancisPan
Profile icon
ch1ck3n
Comments
hotnewtop
Profile icon
Bookie0

I have found....the unbreakable thingy:

Behold in all it's grandeur:

Screen Shot 2021-04-07 at 10.53.57 AM

Still here!
Screen Shot 2021-04-07 at 10.54.06 AM

So many explosions I've made the other orchid blocks go away!
Screen Shot 2021-04-07 at 10.54.33 AM

Now it's all alone! :(
Screen Shot 2021-04-07 at 10.55.21 AM

Profile icon
tussiez

@Bookie0
Behold...

the parent object!

Profile icon
Bookie0

@tussiez
*gasp!

Profile icon
mollthecoder

@Bookie0
I see you use ChromeOS. It seems everyone on replit does.

Profile icon
Bookie0

@mollthecoder
i uh don't. I use macOS what makes you say that?

Profile icon
mollthecoder

@Bookie0
My mistake. I said that cause the cursor was the same as Chrome OS's cursor. It seems they have the same cursor.

Profile icon
Bookie0

@mollthecoder
ah I see np lol

Profile icon
JWZ6

@Bookie0
lol
@mollthecoder
@tussiez

Profile icon
FlaminHotValdez

@mollthecoder
I'm on Ubuntu 20.04 and I also have the same cursor

Profile icon
tussiez

@JWZ6
super ping

Profile icon
tussiez

@FlaminHotValdez
Yee

Profile icon
JWZ6

@tussiez
lol

Profile icon
personmandude

@mollthecoder
I am on a school chromebook for coding in school and a bunch of other people probably are

Profile icon
tussiez

@personmandude
Yea

Profile icon
LaneMartin

Let's honor the people who play this without a mouse.

Profile icon
LaneMartin

@LaneMartin
This is how the Germans bombed London:

Screen recording 2021-04-08 2.45.11 PM

Profile icon
tussiez

@LaneMartin

"Can you see where it's going to land?"
"No."
"Just spam it ig"

Profile icon
AryyanVineeth

@LaneMartin
I played this without a mouse.

Profile icon
LaneMartin

@AryyanVineeth
o_o

Profile icon
OldWizard209

Wait, firstly, it says:

image

Assuming it is "Physics" with a "C", How in the "PHYSICS WORLD" does this make sense?:

image

Oh or probably it is just the subject of "Physijs" not "Physics".

Profile icon
IronStarkMan

Well, IMMA call Mr.Neil deGrasse, this can't be tolerated.

@OldWizard209

Profile icon
OldWizard209

lol

@IronStarkMan

Profile icon
tussiez

@OldWizard209
Well... Roblox exhibits the same behavior, doesn't it?

Profile icon
DavidHilsee

@OldWizard209
it says physijs because it is written in javascript (aka js)

Profile icon
FloCal35

Ball go boom

image

Profile icon
JWZ6

@FloCal35
lol

Profile icon
tussiez

@FloCal35
Booom

Profile icon
[deleted]

@FloCal35
my eyes

Profile icon
JacobMcPherson1

image


nice

Profile icon
ch1ck3n

image

image

Profile icon
tussiez

@ch1ck3n
Yes Rico,Kaboom

Profile icon
SleepySid

The dust clears

image

It still stands

image

Profile icon
tussiez

@SudhanshuMishra
The all powerful

Profile icon
LaneMartin

You should add an option where you can have more than 1 tower but the maximum in 10 so it feels like bombing an entire city and not just a puny building.

Profile icon
Soccer135246

I like how you can launch bombs from the top, change the angle, and view it like a 3D bombing simulation

Profile icon
Soccer135246

@Soccer135246
oh wow I can hit them from under and they still move...

Profile icon
LaneMartin

@Soccer135246
ikr

Profile icon
EliasTheGreat

This is really cool, with nice physics, the only citicism about it I have is the update ing of physics, it looks like a bomb only updates blocks around it and dosn't account for physisics that was not in the radious of the blocks

Profile icon
jihhyuu202

Reasons why:

  1. roblox physics
  2. roblox physics
  3. roblox physics
  4. roblox physics

    @EliasTheGreat
Profile icon
LaneMartin

This is pogger

@tussiez

Profile icon
tussiez

@LaneMartin
pogger

Profile icon
notTussiez

@tussiez
you're an imposter

Profile icon
LaneMartin

@notTussiez
lol notTussiez lol funny name

Profile icon
notTussiez

@LaneMartin
Trust me, he's not the real one

Profile icon
LaneMartin

@notTussiez
lol ok hehe

Profile icon
Unclyscam123

coool

Profile icon
tussiez

@Unclyscam123
:D

Profile icon
EverettGriffin

also suggestion make more buildings and make more bombs and make an auto clicker for it cause... >:) destruction

Profile icon
tussiez

@EverettGriffin
Hah, will plan on doing this summer

See https://sortabomber2.sortagames.repl.co

Profile icon
EverettGriffin

omg i needed this in ma life!!!! this is realllllly fun

Profile icon
tussiez

@EverettGriffin
Thanks!

Profile icon
LeonNicosia

do NOT use an autoclicker

Profile icon
ch1ck3n

@LeonNicosia
screw you i put it at 1 millisecond

Profile icon
tussiez

@ch1ck3n
I laugh because I know what happens

Profile icon
LeonNicosia

@ch1ck3n
i did put it at 1 millisecond