Share your repls and programming experiences

← Back to all posts
ASCII Shooter Game
DynamicSquid

Honk Honk YES! quote from @DannyIsCoding, originally taken from @HahaYes.

Ignore that. Anyway,


It might not work

Hey guys! I've been working on this a little bit now, and I think it's done. I was going to work on this project a little longer, but school's almost over and I really want to get some other C++ projects out of the way before it ends.

Also special thanks to:

So thanks guys! You really helped me a lot!


Enjoy :)

Voters
SilvermoonCat
PatelRayan
CosmicWarrior
rainbowduckie
AaronMa4
angrydoge
programmeruser
viraatvv
zplusfour
Highwayman
Comments
hotnewtop
HahaYes

Wow, is this a thing now? Well if Honk Honk Yes is taken..... how about He He Yes?

DynamicSquid

@HahaYes lol xD

HahaYes

@DynamicSquid my accuracy in this game is worse than a stormtrooper

DynamicSquid

@HahaYes oof lol

HahaYes

@DynamicSquid yeah.... I guess it is because of the ascii

firefish

@HahaYes Erm... Ho Ho Yes sounds like Santa, we can't have that.

firefish

@HahaYes HahaNo

HahaYes

@johnstev111 whoa whoa whoa... wait a sec

DynamicSquid

@HahaYes fight, fight, fight...

HahaYes

@DynamicSquid squid slap

HahaYes

@DynamicSquid Dun DUN FIGHT

DynamicSquid

@HahaYes MAXIMUM DAMAGE

HahaYes

@DynamicSquid uh oh STINKY

firefish

@HahaYes HahaNo is officially trademarked by Firefish Corporation @DynamicSquid

firefish
DungeonMaster00
HahaYes

@nk1rwc bruh what?

MemeManHimself

pretty nice dude. I like the colors and just not knowing what the heck these little letter bois are gonna do next

DynamicSquid

@TheMemeManHimse oh thanks!

MemeManHimself

@DynamicSquid np dude!

aidanrol

Wow...

DynamicSquid

@aidanrol thanks!

Bookie0

Cool! Thanks for mentioning me =)

DynamicSquid
ShivankChhaya

This is awesome! If you want to, then you can maybe try to add coins and/or make an account for the user? Also, if you want to, maybe when bullets hit each other, you could create like a 3x3 explosion and it gives one hit to everybody in range. It is your choice if you want to add it.

DynamicSquid

@ShivankChhaya thanks for the feedback!

studentAlfredAl

Dang, this is a great game! Keep up the great work! :D

DynamicSquid

@studentAlfredAl thank you!!

studentAlfredAl
CodingGoose

Honque Honque Oui! This game is cool.

DynamicSquid
Nettakrim

you can jump over bullets, meaning you can continue shooting at a letter, also if you stand inside a letter it cant hurt you
also:

also also i forked it to reduce flicker and make it easier to tell whats going on
https://repl.it/@Nettakrim/py-Shooter#main.py

DynamicSquid

@Nettakrim oh that's actually does look a little better! I was thinking of doing that, but I thought it'd look bad lol

ChezCoder

@DynamicSquid i think i found a way to remove the flicker, testing it...

Nettakrim

@ChezCoder a way to remove flicker... if it works that will be very usefull

edit: looked at your repls, found it and wow that looks good

Nettakrim

instead you can just do this

also if you have a menu system that works like this

you can do
\033[J at the end of the input
to clear the "hi" text

usefull website

also print("\033[?25l",end="") will remove the cursor
and print("\033[?25h",end="") will put it back

DynamicSquid

@Nettakrim oh that's cool, didn't know that. I'm not that familiar with linux so I'm still learning about ansi

NeilYe

don't mind the Key baord intturrupt, I got that error

DynamicSquid

@NeilYe yeah, that's because you died lol

firefish

@DynamicSquid Make it error code 0 upon exit?

NeilYe

@DynamicSquid oh, Thanks! but please make it into a string so I won't be freaking out.

DynamicSquid

@NeilYe there! i fixed it :)

Coder100

Nice!

DynamicSquid

@Coder100 thanks!

BenHird

hi

TerrorbuildLuna

Great game! Do you mind if I borrow this for a machine learning project I'm working on?

Highwayman

The addiction level of this game is above anything else I've ever played on repl.it share so sick XD

DynamicSquid

@Highwayman yay! thank you!

Highwayman
HackerMan0303

Do you want to make a collaborative repl ? A game in html, css and js ?

DynamicSquid

@HackerMan0303 no, sorry

firefish

@DynamicSquid Remember: Arrow keys.

DynamicSquid

@johnstev111 no clue how, sorry :)

firefish

@DynamicSquid map up arrow to w, map down arrow to s et cetera

SpaceFire

how the diggigidy darn did you program the enemies?

DynamicSquid

@SpaceFire umm.. idk, typed some keys on my keyboard, and things worked

ChezCoder

Awesome! Can i help with threading? (make the game run even when the user is not pressing anything)

DynamicSquid

@ChezCoder Oh yeah, sure! I actually had SOOOO much problems trying to get threading to work in Python it's completely insane. This is my first real python project, so I don't know much, but I think Python has a GIL or something that prevents that, but I think there some workarounds to that but I have no clue how. So do you just wanna fork the repl and maybe invite me over?

ChezCoder

@DynamicSquid sure! Its pretty simple :D

Jakman

@DynamicSquid python threading is easy bro. Read the docs

DynamicSquid

@Jakman me and chez tried it, it wasn't responsive enough, C++ is just easier for that task

Jakman

@DynamicSquid I think i understand things easier than others for some reason. Sorry.

HahaYes

hmmmm I am a C++ guy. Can anyone explin what getch is for?

DynamicSquid

@HahaYes cin --> enter character, press enter
gecth --> enter character, auto presses enter

HahaYes

lol cool game. I forgot to upvote

DynamicSquid

@HahaYes oh lol

yuhuiguo

This is cool

DynamicSquid

@yuhuiguo thanks!!!

[deleted]

hi

firefish

Bye

DynamicSquid

@johnstev111 HAHAYES GOT SHUT DOWN. FINISH HIM

firefish
DynamicSquid
firefish
firefish

@HahaNo is a real account @HahaYes

HahaYes

@johnstev111 wait wait wut

DynamicSquid

@HahaYes wait I'm so confused

HahaYes
firefish

@HahaYes I know that link don't you dare

Muffinlavania

@HahaYes would you believe me if i said you rickrolled me 7 months later

HahaYes

I can give even better feedback. Honk = Duck Haha = CyberTruck

HahaYes

Lol thanks for the ping