Share your repls and programming experiences

← Back to all posts
[GAME] Shot in the Dark — A fun puzzle game with a warm glow aesthetic! 🔥
fuzzyastrocat (1867)

Adventure through dimly lit passages with only a few glowing torches to help guide you on your way. Encounter shifting walls, tricky puzzles, and mysterious enemies. Enjoy a calming, warm aesthetic with minimalist graphics.

All this and more in my new game, Shot in the Dark!

Shot in the Dark is a puzzle game with one simple rule — you can only move between tiles that have similar colors. So, you can move from a black tile to a dark grey tile, but not from a black tile to a white tile. The complexity arises from the additional challenges added throughout the levels — I won't spoil it all for you, you'll have to play the game to find out!

You can play the game here. All instructions are in-game — but I'll list them here too:

  • WASD or arrow keys to move
  • R to reset level
  • You are the circle, the goal is the square

Gameplay photos:

If you have any suggestions, please give them! This took a long time to make, so I'd really appreciate any feedback!

(Some of the levels may be challenging — but I can assure you, they are all possible!)

Axrevyn (289)

This is a very interesting concept and a great puzzle game. But I did get stuck (literally), not sure it's intentional

Axrevyn (289)

maybe I'm dumb lol
imma press r real quick
I just embarrassed myself didn't I

Axrevyn (289)

Deserves more updoots upvotes for sure

fuzzyastrocat (1867)

@Axrevyn Yeah, I'm kinda disappointed how few udpoots upvotes this got given the time I put into it

Leroy01010 (408)


But laggy

fuzzyastrocat (1867)

@Leroy01010 It will probably be laggy if you don't have a graphics card — this uses a lot of shaders to get the nice glow aesthetic, at the cost of being really laggy for systems that don't do well with that kind of stuff.

Leroy01010 (408)


fuzzyastrocat (1867)

@Leroy01010 I have no idea, you'd probably be best off googling it. Many computers come with them pre-installed, so I'm not sure how to get/replace one (it might be that you actually do have one but it's just not very powerful).

ethanshaozz1928 (18)

the animations are very slow, and I have to wait a long time for the actual game to start

fuzzyastrocat (1867)

@ethanshaozz1928 Hmm, that's odd. I can't replicate such behavior... what OS/browser are you on? (This may also be due to a lack of a graphics card... shaders are really slow without them)

Gabby8C0des8 (27)

i was just waiting for something to snatch my dot into the dark😅

fuzzyastrocat (1867)

@Gabby8C0des8 Great to know that you... liked it? (If you did, feel free to leave an upvote :D)

RolandJLevy (1092)

@fuzzyastrocat, another thing worth considering is making your code with Object Oriented Programming (OOP) paradigm so your code is more organised, readable and reusable. This seems to be a general approach for programmers who make games.

This is something I've started to do recently and it has been a great help. I made my Sliders and Solitaire game using OOP.

Here is a really good tutorial on making Tetris using OOP

Here is a youtube video on making Pacman using OOP

fuzzyastrocat (1867)

@rjlevy Thanks for the suggestion! However, this is an insanely old project (well, I started it a long time ago), so I kinda kept around the bad code practices rather than rewriting the whole thing (which I probably should do at some point when I have the time.) For a better example of my work, object-orientation-wise, see here. I think the reason this ended up so messy is because it started off as a tiny puzzle game, and then I added tons of aesthetics, levels, etc.

RolandJLevy (1092)

@fuzzyastrocat ah, OK - sorry about that! Yes, I can see you're totally comfortable with OOP - I hope my comment wasn't too annoying! 😀

fuzzyastrocat (1867)

@rjlevy Oh, not at all, I'm always fine with things like that.

(I'm not being sarcastic, and this text isn't supposed to be sarcastic either :D)

RolandJLevy (1092)

@fuzzyastrocat oh, that's good. I think your game and your coding is great :)

fuzzyastrocat (1867)

@rjlevy Thanks! Same goes for you :)

RolandJLevy (1092)

Hi @fuzzyastrocat! Wow, this game is amazing!!! I really like the subtle colours and the animations. Most of all, I love the gameplay and the concept - it's really great, well done.

  • The problem is that I almost didn't get a chance to play the game as I couldn't see the Play button on the first screen for about 2 minutes and almost gave up! The first screen is so dark it's difficult to really see what's going on. Maybe people just can't see the play button and and just giving up before getting the chance to have fun playing the game. This is just a basic usability issue which can easily be resolved. I suggest making the play button fully visible on the first screen and making the colour scheme not so dark. I think the game needs more contrast between light and dark

  • To get more upvotes and more interest, I suggest improving the content and markup of your posts so they are more engaging and have more life. I have previously submitted projects that I thought were pretty good but they didn't get many upvotes or comments because the content of the post was so brief and basic. For example, this Text-to-Speech project which I thought was quite good only got 4 upvotes which was disappointing. But it's not surprising considering how dull the post is.

  • Then I read this helpful post on how to get more upvotes so I spent time improving the markdown, including a Features and How to Play section; also adding emojis, images or animated gifs using GIPHY CAPTURE.

I normally submit posts over the weekend and tell people about it on repl discord too.

I hope this helps!

fuzzyastrocat (1867)

@rjlevy Wow, thanks! I will try to improve the contrast, it is something I have struggled with for this game. And yes, I'll probably make the play button always visible (or add a light right next to it).

Ah, ok. I'll improve the markdown/text content here, I didn't have much to say but I can change that :D

RolandJLevy (1092)

@fuzzyastrocat no problem! The description is so much better and the images are a great help. Nice one. How about adding some emojis to the description?

It's so much better to have the Play button more visible. Great!

fuzzyastrocat (1867)

@rjlevy Good idea, that will probably draw more attention.

Thanks! I hope that helps, I'll continue to try and improve it as well.

RolandJLevy (1092)

@fuzzyastrocat brilliant - it's a big improvement. I think the repl community is so good and most of the people I have talked to are really supportive and positive. I'm a bit surprised that some people actually copy other people's code and pretend they did it. What's the point of that. The main enjoyment of coding is knowing that you created something yourself. Anyway, thanks for supporting the games I've made. I look forward to seeing more of your games too!!!

fuzzyastrocat (1867)

@rjlevy Thanks! And yeah, copying code takes all the fun of the design process out of it!

No problem, I always like when I see new and inventive ideas!

I've tried to increase the contrast of the lights in-game, but now I can't tell if I've actually helped. Does it look better to you?

RolandJLevy (1092)

Hi @fuzzyastrocat, yes I think adding the contrast has helped. Maybe even more contrast would be good. It's such a well executed and sophisticated project 👍

fuzzyastrocat (1867)

@rjlevy Ok, great! Yeah, I'll try to increase the contrast even more to make it easier to see. Thanks!

RolandJLevy (1092)

@fuzzyastrocat that's great!

Do you know much about Node.js? I'm having a problem with CORS at the moment and wondering if you could take a look. Here is the issue:

fuzzyastrocat (1867)

@rjlevy I use Node.js a lot! I've had this issue many times, I'll post a solution :D

SixBeeps (5333)

I like the concept of this game quite a bit. The overall theme of light in dark definitely adds to the experience. One thing I will mention is that the oscillating tiles are unpredictable, but I guess that adds to the challenge.
Overall, this is a well-made game. Reminds me of Bloxors in a way :)

EDIT: Wait a minute, p5 supports shaders?

fuzzyastrocat (1867)

@SixBeeps Thanks! (Hmm, the oscillating tiles do follow a pattern, even if it's one with a very long period.)
Thanks! I had never seen Bloxors, I'll look into it!

Yes, it's complicated but p5 does support shaders. I dunno how I would've done this without them honestly.

k9chelsea2 (770)

yo this is actually so cool

fuzzyastrocat (1867)

@k9chelsea2 Thanks! I hope more people get to see this, due to the time I posted it seems like it's sunk really far down.