Share your repls and programming experiences

← Back to all posts
Nuke.io
h
Coder100 (4355)

NUKE.IO

ANTI-NUCLEAR WARFARE GAME

About

This game is about an unknown country attacking your country with nuclear missiles. You'll as a soldier have to use an anti-nuclear warfare truck/gun to destroy the nuclear missiles!


This game was made because there aren't enough HTML5 games on repl.it that actually involve movement and shooting and static websites. However, I am planning to make this multiplayer in version 2 (nuke2.io). Please comment on any concept ideas for how you want to see it!

Gameplay

  • Left-arrow to move truck left (or A)
  • Right-arrow to move truck right (or D)
  • Mouse to aim
  • Click to shoot

Mobile
Note: On IOS 13, make sure to request mobile website.

  • Press left button to move left, etc.
  • Click to shoot

Tips and tricks

This game is more about getting carpal tunnel than shooting accurately.
There's an air strike--just a heads up!
As the time moves right, the speed of the bombs look like this. After the graph ends, if you are on infinite mode, it will repeat itself, and if you are on normal mode, the game would be finished.

Realizations

Although this game is very fun and addicting, there are some things to note:

  • The nuclear explosions are way too small. They would cover up the entire page in real life.
  • It would be impossible to create that many nuclear bombs: too expensive. (Is there even enough uranium?) And plus, one nuclear detonation is enough to destroy a whole city, so such a concentrated attack would be too useless.
  • There has never been a nuclear airstrike as far as I know.

Closing

We need more p5.js games.

PLEASE VOTE UP IF YOU LIKED IT!

Also, comment ideas below for how nuke2.io (multiplayer) should look!
i.e., give comments below for some concept ideas like how gameplay should be, should it be players working together or attacking each other, etc.

HAVE FUN!

Happy coding!

Commentshotnewtop
bgrubert (147)

@avibeskrowni and I started a p5 game but I have no idea how to make it multiplayer @Coder100

Coder100 (4355)

Ah, you would need a backend like node.js and may I recommend socket.io for real-time web sockets? @bgrubert

bgrubert (147)

@Coder100 You should make a tutorial on that

SpicedSpices (218)

@bgrubert I don't want to come out as just supporting my channel, but I made a tutorial yesterday out of pure boredom from self-quarantine lol. Here's the link if you actually want to watch it: Link

Coder100 (4355)

Lol it appears someone has beat me to it :p @SpicedSpices

bgrubert (147)

@Coder100 You can still make a tutorial on repl.it

SpicedSpices (218)

@Coder100 It's alright lol
My knowledge of it is pretty basic you could probably explain it better

SilentShadowBla (537)

just curious, are you still working on surviv3? @Coder100

nN34398Ff (109)

lol it just says loading assests

nN34398Ff (109)

@nN34398Ff wish I could see the working kind, stupid computer

Coder100 (4355)

Lol :p
Is this a big thing? It usually takes ~ 40 seconds first load @nN34398Ff

Coder100 (4355)

nice job!
That's really good! @IndyCarter

Coder100 (4355)

Ye
The air strike is impossible :p @IndyCarter

Wilke000 (457)

ok but i did do air strike @Coder100
so it isnt inpossible

nN34398Ff (109)

ReferenceError: $ is not defined
at /script.js:266:1
ReferenceError: $ is not defined
at setup (/script.js:143:3)
at _setup (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:63048:27)
at _runIfPreloadsAreDone (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:62986:27)
at p5._decrementPreload (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:62995:27)
at Image.img.onload (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:79376:24)
This is all it says

Coder100 (4355)

Weird. i think it was an outage
it works now @Coder100

DynamicSquid (2671)

there aren't enough HTML5 games on repl.it

There aren't enough games that are not HTML on repl.it lol

Oh and it's too hard. My score was like -20000 xD

But I would love you to make it multiplayer! Well done!

Thehappysquid (37)

I think the second game should actually cause objects to be hurled at you (if possible) in higher levels.

nt998302 (173)

@Coder100 Ya! It's pretty cool that you can just make a game like this! The next step is networking...

Coder100 (4355)

Thanks! What do you mean by networking? @nt998302

nt998302 (173)

@Coder100 It would be absolutely insane if you made this game a two player networked game, with scoring or something like that... Maybe add some database stuff along with the server side... ambitious xD

Coder100 (4355)

XD
I probably can
Any ideas on how the game should look like? @nt998302

nt998302 (173)

@Coder100 Hmm... Maybe classic cartoony style, similar to moomoo.io

Coder100 (4355)

Ahh yes
But how should the game be
Should be in teams to overcome the air strike or bases attacking each other? @nt998302

nt998302 (173)

@Coder100 I would enjoy there being several game modes, such as teams as you mentioned, where you defend a base. I would make the bullets a little larger too, as it will make it less hard to destroy incoming nukes.

Coder100 (4355)

sure! thank you for your suggestions!
@nt998302

nt998302 (173)

You are very welcome @Coder100! I develop games in Unity, so I love thinking of new ways to improve already made and great games! :)

Uzalii (437)

Impossible game my score was -50,296

Coder100 (4355)

That's really good!
Mine is -60,000 @Uzalii

Coder100 (4355)

I think it's easier on mobile (just got 1,624!) @Uzalii

Coder100 (4355)

Oof
Ok I'll easify it more @bgrubert

Coder100 (4355)

lol yeah the airstrikes go pretty deep. @ashrit_lv

avibeskrowni (125)

it's so hard

i mean if you don't get the first five or so shots the rest come really fast

Coder100 (4355)

Tell me if it's still too hard @avibeskrowni

bgrubert (147)

@Coder100 Nice job with the graphics, is this a multiplayer game?

Coder100 (4355)

No, not yet.
nuke2.io will be! @bgrubert

bgrubert (147)

@Coder100 Oops.. I didn't read the description

bgrubert (147)

@Coder100 In nuke2.io will you be the one dropping bombs on opponents?

AdCharity (1270)

there are plenty of games on repl which is why for a period of time people stopped making them

AdCharity (1270)

@Coder100 lmao how's surviv3 coming along?

Coder100 (4355)

Meh, could be better
Work will continue again after the code jam @AdCharity