Share your repls and programming experiences

← Back to all posts
Swing!
MatthewStirling (118)

Here is my entry for the Game Jam - Swing! (yes, you have to shout it)

The gist is pretty simple - you swing around using a grappling hook and you must avoid dying. Don't touch the red blocks and don't get shot by a Turret (duh). Play through the Levels or enter the Arena and try to survive.

The way the game relates to the theme of Cash is.. uh.. you get to keep your cash because this game is free!

For the best experience, open this link in a new tab:
https://swing--matthewstirling.repl.co/

Full DevLog:

version 4.2 - current (17.04.2019)

  • added guided missiles
  • added rope block wrapping
  • added level 4
  • added explosion recoil
  • changed turrets appearance
  • added idle turret animation
  • added arena menu display turret behaviour

version 4.1 (13.04.2019)

  • added practice mode
  • altered arena to account for easy winning strategies

version 4.0 (12.04.2019)

  • added explosions
  • added super predictive turrets
  • added arena survival mode
  • added level 3
  • redesigned menus
  • got rid of title card animation
  • added bouncy bullets
  • added death animation

version 3.0 (05.04.2019)

  • added a main menu
  • added buttons
  • changed appearance of predictive turrets
  • made level 2 final challenge easier
  • added peak text

version 2.0 (30.03.2019)

  • added level 2
  • added turrets
  • improved hook sticking mechanic
  • changed controls (again)
  • optimized forces (jump strength, friction, drag)
  • added predictive aiming
  • removed 3 challenges from level 1

version 1.2 (23.03.2019)

  • added title card
  • added safe area at beginning
  • added checkpoint text

version 1.1 (23.03.2019)

  • added 3 more challenges (total now 13)
  • made controls more intuitive
  • added checkpoints
Commentshotnewtop
themaka (180)

Spider-dot, Spider-dot, dots whatever a spider dot!

MatthewStirling (118)

Can he swing, from a grapling hook? Yes he can, he's a spider dot!
@themaka

LynnOng (24)

I don't feel so good Mr. Stirling...
Nice game tho.

MatthewStirling (118)

Lol, is this a reference to something I don't know about?
@LynnOng

argthe1st (83)

@MatthewStirling ... Its Avengers Infinity War

Helixable (5)

@argthe1st No. Not endgame. :) Its Infinity War Endgame comes out in April :D

Helixable (5)

@LynnOng It's Mr Stark. Not Stirling Lol.

argthe1st (83)

Honestly, I think that this is the best game in the competition right now!

MatthewStirling (118)

@argthe1st Honestly, I think so too (but I may be a little biased)

jarules214 (9)

I think this should win. I have spent hours enjoying this game! Maybe we could collab on adding sprites, or polishing the game. Hmu! Otherwise it is an amazing game!

MatthewStirling (118)

@jarules214 Thanks! I'm not sure that I will continue developing the game, but the game sure could use some polishing. I know there are still some bugs. Have you encounter any of them?

wordguesser (43)

Splash text ideas:

"This text is green" (make it red though)
"Nobody: "
"Game Jam? More like lame jam"

MatthewStirling (118)

@wordguesser Haha, good ones. Unfortunately I don't think I can update anything in the game anymore. Maybe they will let me update the splashes though.

wordguesser (43)

@MatthewStirling Oh yeah, forgot about that... Do we know when to expect the results?

GameMaster1928 (41)

Great game! I spent some time playing this, it's pretty fun. Also, lowering the grappling hook (I think it's the E key) stutters a bit. I also made a game but no one's looking at it (it's at https://repl.it/talk/challenge/Infinite-Runner-Thing/12625).

hayaodeh (171)

Can someone record a gif while playing?

MatthewStirling (118)

Is it super slow for you, or do you want to see how others play it? @hayaodeh

PCL (252)

Would you like me to turn this into a mobile game? All you have to do, is add mobile controls, and I can compile the html to apk.

[deleted]

This is a great game, but I have one super important thing to point out...

~
~
~

You spelled artifact wrong in the about page.

LiamSchenck (14)

it's so broken rn, the gravity messes up in the explosives level so that either you float or it's so strong that you can't physically pull yourself up, then the screen just went gray and i had to reload which reset my progress

Lolanator365 (8)

@LiamSchenck how do you make the gravity mess up

eankeen (827)

Amazing game! Had a lot of fun and very addicting!

wordguesser (43)

Great game, I really enjoy this one! While I was playing the missile level, my screen turned gray and this message was in the console:

Hope that helps :/

MatthewStirling (118)

@wordguesser thanks, should be fixed. There's at least one other rare bug I can't debug because it's so rare. If you keep playing, please tell me if you find any more!

DavidCooperChey (1)

Fun! It would be nice to be able to play the game without a mouse.

CarlosAlbertoAlberto (14)

It's very hard. I like it!

MatthewStirling (118)

@CarlosAlbertoAlberto You know what else is hard and people like it?

The third level I'm working on right now. Stick around!

JohnnyWobble (50)

I got to say, its very fun and with a trackpad it is very hard as well

MatthewStirling (118)

@JohnnyWobble Get a mouse. You'll never pass the turrets with a trackpad (unless you're a legend)

rennecastro (1)

Awesome game. Though I didn't make it far, I found myself strangely addicted to just swinging around.

mdjb4 (14)

THIS AMAZING!!!

MatthewStirling (118)

@mdjb4 If you think this is amazing, just wait till I've added turrets, explosions and guided missiles (no, seriously)

AmeliaBlackwell (924)

woah this game is great but I'm really bad at it! how do you do the physics of it?

MatthewStirling (118)

@AmeliaBlackwell Pretty simple. I give the ball a position, velocity, and acceleration. Each frame I add acceleration to velocity and I add velocity to position. To get the acceleration I add all the forces acting on the ball together, so gravity, left/right thrust, friction, air resistance, rope tension. All these properties are vectors, and I use the p5.Vector object to handle them conveniently. I can explain in more detail if you're interested.

themaka (180)

Is the 9th checkpoint the end of the game? I want more!

MatthewStirling (118)

Hey! You managed all the way through!! I can definitely make more, if there is enough demand for it. Did you manage to learn the controls easily enough? I'm worried that it might get too difficult too quickly.
@themaka

themaka (180)

@MatthewStirling The x and z commands are not really intuitive and they require you to reach down, which isn't too common in games. What if you used q and e for shrink/extend? Also maybe space in addition to w for web slinging?

themaka (180)

@themaka The game is a lot of fun though -- I also shared it in our Discord.

MatthewStirling (118)

Thanks so much! I'll consider changing the controls a bit. @themaka

MatthewStirling (118)

Added a few more checkpoints. I hope it still works! @themaka

ArchieMaclean (665)

@MatthewStirling Brilliant game!
How about trying to get the computer to generate the levels? ;)

themaka (180)

@ArchieMaclean Procedurally generated levels would be pretty awesome.

themaka (180)

@MatthewStirling Oh man ... now I'll have to play again.
/pushes aside some meetings

PlaysWithRepls (0)

@MatthewStirling Heyyy I got past the 12th checkpoint! Is that the end or are the block thingies the way to the 13th?

MatthewStirling (118)

@PlaysWithRepls I just shortened level 1 to 10 challenges and added a level 2. Be sure to check it out!

raghavm (73)

@theangryepicbanana xD u thought this was discord. @MatthewStirling Great game! i just suck at it

MatthewStirling (118)

@mrcool4000 I added a "safe" zone in the beginning. You can fool around all you want and get a good feel for how to manoeuvre around.

raghavm (73)

@MatthewStirling Yep I saw that. Great job! Colors go great together. (-:

Lolanator365 (8)

@MatthewStirling i found a bug in the arena
if you roll into the wall part and jump at the same time then you get put out of the map

Lolanator365 (8)

@MatthewStirling i feel like this is a very good game, but sometimes the turrets shoot at you and miss but it still says that you die. also i feel like you should add more levels and maybe a shop so you can upgrade your hook. also please add a save file

[deleted]

I think the program is a little drunk:

MatthewStirling (118)

@RogueKing No, you just unlocked spazz mode. Well done!

[deleted]

@MatthewStirling Wooooooohoooo Spazz mode extreme!

SeananShanks (2)

Add the peak text "Also try Zombies"