Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
43

Bram Jam Submission -- Creepy Scary Music 'n' Story!

Bookie0
Bookie0

BOOOO!!! 👻

Did I scare you? Did I? Did I?!?!?!

Ok fine I probably didn't :(

Hope y'all are having a great month of October and preparing for HaLoWeEeEeEnNnN!!

Long time no see repl talk share board! I've mostly been posting tutorials in the tutorial section as I didn't have much ideas for games or projects unfortunately, but luckily there's this jam!


Anywayssss...

TL;DR: This is my submission for

@Bruhmley
's Bram Jam #2. Aim of game: with several other people, after a starter of the story, one word at a time everyone types a word to form a spooky Haloween-themed story.

I've called my submission Creepy Scary Music 'n' Story! (yea not the best of names lol, but at least it rhymes!). We were supposed to do a Haloween-themed multiplayer game for the "Electric Boogaloo".

So uh, mine isn't exactly "multiplayer", but it actually kinda is in a way. You'll see.


Set-up Before Game

  1. Ok so first, let's run the repl. For some reason, I can't find the button that makes your console go in a new tab, is it just me or does everyone not find it? Anyways, I dunno if this works in a new tab, but to be safe just run it in the same page, and expand the console to be as big as possible.

  2. After hitting Run, there'll be some updates, downloads, package installs, etc. Ngl, it's gonna take about 30-40ish seconds. Maybe more lol.

When you see:

- Updating aiohttp (3.6.2 -> 3.6.3)

this means you have about 30 more seconds to go. Just wait for it to load, you can do something else while waiting (like 20 jumping jacks and a few push ups lol). After running it for the first time, it'll be faster for the other times.

  1. Next, you'll have a chance to choose between music. You can choose either Spooky Scary Skeletons Remix, originally by Andrew Gold, or you can listen to Danse Macabre, by Camille Saint-Saëns. Pretty obvious why I chose them. Or you can listen to no music which is sad so you shouldn't do that lol.

Thank you to

@AllAwesome497
for helping me set up the music with repl.it audio!

(Repl.it audio docs here)

  1. Once you choose, the game will now start.

This is the multiplayer part!

Get a friend, family member, siri, a soft toy, or anyone you want!

Then verything else is pretty straightforward, so I won't walk y'all through everything. But basically, type how many people will be playing, then the name of the first player, their color (their name will have this color, as well as the text they type), and then repeat for as many players as you first put. Next type how many words in the story, and you're ready to start!


Game Play

Firstly, there'll be the title screen:

[image here]

Screen Shot 2020-10-27 at 2.21.51 PM

Secondly, there shall be a quick set up, with number of players, names, and colors, as well as how long the story is.

Screen Shot 2020-10-27 at 3.15.48 PM

Secondly, there will be the starter of a sentence, and you'll have to each, player by player, type 1 word. Each word will be added to the story, and you can't remove a word after it is added, so choose wisely! This is a multiplayer game, so the goal is for everyone to participate and make together a good spooky story.

Screen Shot 2020-10-27 at 3.16.17 PM

You'll know when it's your turn as it will tell you, with colors, so you'll easily be able to quickly rotate who's turn it is to type a word. Oh yes, only 1 word, if you put several words it won't accept it!

Screen Shot 2020-10-27 at 3.17.10 PM

After the story is finished, depending on how many words you choose, the whole story will be outputted for you to see. You can also play again, and if you do, you can choose new music if you want!

Screen Shot 2020-10-27 at 3.20.39 PM

Thank you to

@CodingCactus
for helping with the pausing of the audio!

And if you don't want to play again, then the game will end. You can always come back again with different people to play!

Screen Shot 2020-10-27 at 3.21.30 PM


The Code

So I already put many many comments explaining what each part does, so feel free to read them if you want. But I'll still explain what the code does a bit because why not lol.

So first, I have a list containing some story starters used to start the story. Then, the important inputs are the ones asking how many players, the names of the players, and their colors. I used a for loop that loops through the number of players so that it asks every single player their name and their color.

After that, it adds their color and name to a dict (so that later it can be outputted easily). Next, it asks how many words will there be in the story, randomly selects a story starter, and the setup is finished. The game now begins!

There's a for loop that will loop for as many words in the story as the user first entered. The program, with an input will ask each player to enter one word (the program checks if there's a space in what the user wrote, so you can't write several words), and will add that word to a list containing the whole story. The input will specify which player's turn it is, with the color they chose before (that's why I recommend using different colors). This was the kinda hard part; I had to use a dict to store the colors and the names. So when I need to color the player's name a specific color (the color they first picked), I can get their name through the dict which will give me that player's appropriate color.

And finally, when the whole story is finished, it prints the whole story, and asks if you want to play again. If you do, you get to choose a new music, but if want to leave and play again later, then the program stops with a break that breaks the while True loop.


Final Words

So yea, I guess that's about all. I think I'm pretty satisfied with my work, up to y'all if you like it too! :)

I originally thought I wouldn't be able to make/finish a game for this jam, but looks like I did it lol. I even had some time to make the style nicer and more uniformed with colors and stuff. One week seems little, but during the weekends I got a lot done.

Thanks again to

@AllAwesome497
and
@CodingCactus
for help on this!

Enjoy the game!!!

Have an fabulous day everybody! =)

Oh, and

Happy Halloween! 🎃 👻 😈 🧟 😱

(Stay safe! ;)

Edit: seems like audio isn't working for some people, tell me in the comments if it doesn't, make sure your speakers are loud and you selected a music choice. If it still doesn't work, try opening the repl

Screen Shot 2020-10-28 at 11.51.00 AM

and running it.

Also you might need to turn on explorer mode! (Go to account >> roles >> explorer)

:D

2 years ago
You are viewing a single comment. View All
2