DEV Community

Cover image for I build tug of war: demo project ๐Ÿ˜‚
Puneet-Kumar2010
Puneet-Kumar2010

Posted on • Edited on

I build tug of war: demo project ๐Ÿ˜‚

๐Ÿง‘โ€๐Ÿ’ป Hey Developers! ๐Ÿ˜Ž

Hope you're all doing awesome! So, picture this: I was coding away like a pro today, and after some hardcore project grind, I hit that boredom wall. ๐Ÿ˜ด Naturally, I did what any sane developer would do โ€“ started making random games! ๐ŸŽฎ And voilร , I ended up with a hilarious little gem: Tug of War! ๏ฟฝ๏ฟฝp๐Ÿ’ช


๐ŸŽฎ Whatโ€™s the Game About?

This isn't just any tug of war โ€“ it's a 2-player showdown! ๐Ÿฅณ You and your opponent (or a clever bot ๐Ÿค–) go head-to-head in a space-key-mashing frenzy to pull the rope to your side. Don't hit that space bar fast enough? Guess what โ€“ your opponent's gotcha! ๐Ÿ˜‚


๐Ÿค” How to Play?

Waiting Room

  1. Enter the Waiting Room ๐Ÿ•’ When you join, you'll chill in a waiting room for 5 seconds. If no one else joins, no worries! A sneaky bot will hop in to challenge you. And trust me, this bot isnโ€™t some rookie โ€“ heโ€™s got moves! ๐Ÿ˜…

Image description

  1. The Showdown Begins! ๐Ÿงฎ

    Once the game starts, it's YOU vs. THEM (or the bot). Your job?

    Smash the space key as fast as your fingers can handle to pull that rope. Just keep going, and donโ€™t let them win! ๐Ÿ’ฅ

  2. And the Winner Isโ€ฆ ๐Ÿ†

    When the dust settles (or, you know, your keyboard survives the assault), the result pops up, declaring either Player 1 or Player 2 victorious! ๐ŸŽ‰


๐Ÿ›  Improvements & Feedback

Okay, I get it โ€“ the UI isn't exactly award-winning. ๐Ÿ˜… But hey, thatโ€™s where YOU come in!

If youโ€™ve got ideas to make this better or just wanna flex your development skills, head over to the repo: Open Repo and clone it for a pull request. ๐Ÿš€ Letโ€™s make this game the talk of the dev town!


๐Ÿ™ Acknowledgements

A huge shoutout to all contributors for their valuable time and effort in making this project even more amazing. Your support and creativity are deeply appreciated! Let's keep building awesome stuff together! ๐Ÿ’ปโœจ


Go on, give it a try and let me know what you think. And remember โ€“ mash that space key like a pro! ๐Ÿค“๐Ÿ”ฅ

Top comments (0)