Share your repls and programming experiences

← Back to all posts
92
Swing!

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
Loading Repl
Commentshotnewtop
6

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

4

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

6

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

1

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

2

@MatthewStirling ... Its Avengers Infinity War

2
1

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

1

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

3

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!

1

@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?

3

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).

3

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

1

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

3

Can someone record a gif while playing?

2

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

2
[deleted]

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

~
~
~

You spelled artifact wrong in the about page.

2

Splash text ideas:

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

1

@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.

1

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

2

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

2

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

2

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 :/

1

@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!

2

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

2

It's very hard. I like it!

1

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

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

2

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

1

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

1
2

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

2

THIS AMAZING!!!

2

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

2

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

1

@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.

2

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

1

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

3

@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?

3

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

2

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

1

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

3

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

1

@ArchieMaclean Procedurally generated levels would be pretty awesome.

1

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

1

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

1

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

2
2

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

1

@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.

2

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

1

@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

1

@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

1

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.

1
[deleted]

I think the program is a little drunk:

2

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

2
[deleted]

@MatthewStirling Wooooooohoooo Spazz mode extreme!

1

Add the peak text "Also try Zombies"

1

passed all available levels + arena survival levels (with trackpad)! can't wait until you add missiles

1

by the way, you can beat all arena survival levels just by going in the bottom left and moving from side to side

1

@LiamSchenck Thank you for the feedback. I've changed the arena to try and account for this problem. Now you'll never beat the arena, especially with a mere trackpad! MUAHAHAHAHA!

1

@MatthewStirling about that...lmao i just beat all of them really easily by jumping constantly on that one little slab in the bottom left. i didn't even use the grappling hook and i didn't move my mouse lol. the only tricky one was the super predictive one but then i just jumped and immediately grappled down back onto the slab...

is it time to make the entire arena floor red? lol

1

@LiamSchenck ffs dont you ever have anything positive to say?!

Just kidding, this feedback is super important and helpful. I've got rid of the island in all but the standard and super predictive arenas. Standard is meant to be easy anyway. The only problem might be on the bouncy bullets by standing on the edge of the tower base and jumping, but that's quite difficult for me to do. Tell me if you figure out any more of these "loophole" strategies!

2

@MatthewStirling ok so i played through them all again. i beat explosive and predictive scatter pretty easily just by standing on the place where you spawn and jumping up and down, but it's kinda difficult and you have to understand how the predictive scatter works to beat it really easily. i was able to beat bouncy bullets by standing on the edge of the tower base and jumping, and it was actually really easy since none of the bullets that i dodged ever came back near me. standard and super predictive i just beat in the same way i did last time lol

2

@MatthewStirling i think it's hard enough at this point regardless of the strategies i'm using but if you really want to make it hard you could make everything red besides the top or something like that idk

also idk if you're aware of this bug or not but you can jump infinitely if you just barely release the space bar after you jump before pressing it down again. it's hard for me to do consistently but easy enough that it's kinda gamebreaking lol

2

@MatthewStirling found another bug: if you beat the third level and then go to an arena survival game, die, then go back to the main menu and into the third level again, the redo turret button will still be there. otherwise it's normal, you can't die as usual since you've beaten the level. but then when you click the redo turret button, it brings you to the start of the level and you can now die. but when you die, it brings you to the end of the level yet you can still die. everything resets and is normal if you go to the main menu and back in again tho

sorry for the comment spam lol i just like finding bugs and stuff

2

@LiamSchenck No problem, I'm finishing up on the game now, releasing it tonight, and any bugs I find are very valuable. I already fixed the jumping bug. I think I will leave the arena as it is. If people find these easy strategies then so be it. You definitely can't beat the guided missiles that I added by just standing and jumping.

Oh yeah, and I added a level 4 with a bunch of missiles. I also made the grappling hook wrap around blocks instead of passing right through. It's a little thing but it makes the game so much better, IMO.

Unfortunately I didn't have time to add 2 player mode, but what can you do.

2

@MatthewStirling that's awesome! i'm typing this before playing through the guided missile levels but that seems cool, will you still add a 2 player mode even if you can't finish it in time for the game jam?

1

@LiamSchenck Maybe. There are still many things that I want to add. I've just updated the game on the challenge board to the latest version, and I'm intensively playing through it to find any bugs. I just realized one of the data files was corrupted, and I've been sh*tting myself trying to fix it before anyone notices, lol

2

@MatthewStirling yikes, i've been playing through it for a bit now (guided missiles are rly hard but i don't think they should be easier) and i didn't notice anything