Log In  

Cart #kukafamapa-0 | 2020-11-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

TweetTweetJam 5 is here!

Hey everyone, just wanted to announce that TweetTweetJam 5 is starting very soon.

The jam runs from Nov. 4th ~ 11th.

If you haven't entered before, the rules are simple: make a cart in 560 characters of code or less! No assets are allowed (map/sprite data), get creative with glyph prints instead!

Signup on the itch.io jam page here.

The twitter tag is #tweetTweetJam, and there's a bunch of carts on here (the bbs), itch, and twitter for inspiration.

Looking forward to seeing all the awesome entries this time around, happy jamming!

P#83681 2020-11-03 23:16 ( Edited 2020-11-03 23:17)

I briefly considered trying this jam, then I threw together something I expected to be pretty short - it was 614 characters before I even added real gameplay, LOL. I will definitely be curious to see what people who are good at this come up with!

P#83685 2020-11-03 23:55

You can definitely get 614 characters down to 560! The most I've ever shrunk is about 1200chars to 559.

Post the cart and we can see what can be done! There's lots of good tips in here too.

P#83686 2020-11-03 23:57 ( Edited 2020-11-03 23:58)

I'll finish the gameplay and post it! I did take a look at the gist guide and implemented whatever of that I could, but I'm sure there's some whitespace I can get rid of at the very least. I'm guessing that I'll be closer to 700-725 once I get the rest of the mechanics in.

P#83687 2020-11-04 00:30

You can also take a look at the announcement cart code in this thread. It uses many techniques I've picked up from previous TweetTweetJams.

P#83689 2020-11-04 01:10

Cart #ufohno-0 | 2020-11-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

@Lafolie Here's the gameplay complete cart. I was too optimistic thinking it would be 750, but it's sitting at 1039 characters right now. The collision detection is also, ahem, "imprecise" - but that may not matter if I can't find 479 characters to lose :).

P#83691 2020-11-04 03:03

It's 5am here, but I will take a look at this. I can already see some easy savings - use the shorthand if:

if cond then


Also, take a look at my golf game, which features similar gameplay:

Cart #golf560-0 | 2020-05-06 | Code ▽ | Embed ▽ | No License

There's actually places I could improve that game, if I recall correctly. Also, when playing your cart I felt that the cursor moved kinda slow. Maybe speed it up a bit?

You can for sure pull this off, and enter it into the jam! Multiple entries are allowed too ;)

P#83692 2020-11-04 05:00 ( Edited 2020-11-04 05:03)

Thanks for taking a look!

Yeah, there's a lot of little number tweaks that need to be done. I started with moving the cannon 1 degree-ish per btn fire, but it does make it hard to get those UFOs that get to the sides. The UFOs were initially smaller too, which made it near impossible to hit them.

P#83698 2020-11-04 13:07

@2bitchuck okay, I took a quick look. There's a few newlines and spaces you can remove for a start. Anything ending parens can be chained: a()b()c().

You might want to alias some functions too, into single-letter identifiers. Anything you use 3 or more times is generally worth aliasing (add , del , all).

Your input code could probably be refactored to use less chars. Check out that gist I sent, and don't do elseif - just handle both directions.

Next up is your collision code. Distance/AABB/etc is costly, consider doing pget and checking the colour beneath an object (that's how my golf game works).

Next, consider using circles - or better yet, glyphs - for objects. You're already familiar with ?"s",x,y,c - this is a matter of compromise, and such compromises must be made for TweetTweetJam - that's the nature of the game.

Another compromise, draw the score at the top, you can save chars by having less digits in your number literals. You can also alias commonly used literals - you use 128 more than 3 times! Speaking of numeral compromises, if you can fudge similar numbers to be the same, you end up with something else you can alias. I do this a lot in my tweetcarts - a lot of the circles and boundaries in the golf game share the same set of vars.

In summary, compromise, compromise, compromise! It's a good idea to save the newline/chaining stuff `til last so your code is more readable.

P#83701 2020-11-04 15:49 ( Edited 2020-11-04 15:53)

@Lafolie thank you for all the tips, this is super helpful! I signed up on itch, so I'm excited to see how well I do :).

P#83702 2020-11-04 16:38

Cart #gnometower-0 | 2020-11-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

For the #TweetTweetJam 5 i made this small gnome tower.
Get to the top and avoid those spiky thingies.

P#83882 2020-11-06 23:15 ( Edited 2020-11-06 23:17)

Interesting challenge! After some experimentation I made a game enabled by poke4() and sspr() where you try to to cross increasingly-busy lanes of traffic. There are 4 levels and it comes in at 554 characters (without the title comments).

Cart #diwipeboju-0 | 2020-11-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

(update: oops, uploaded two copies of cart, here and in the New Carts board, since initially this one wasn't showing up under my profile...)

P#83901 2020-11-07 03:39 ( Edited 2020-11-09 00:31)

It's not the most polished game, but it does fit into 560 characters! L/R to move the cannon, X to fire, Z to backspace. Spell the shown words before time runs out. The faster you finish each word, the more points! 4 very short words are all I could fit into the character limit :).

P#83909 2020-11-07 05:27

Cart #tweet_invaders-0 | 2020-11-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Most of Space Invaders in exactly 560 chars.

P#83916 2020-11-07 11:31 ( Edited 2020-11-07 11:33)

Cart #ti-0 | 2020-11-07 | Code ▽ | Embed ▽ | No License

Here's a simple version of Space Invaders in 278 characters. I've been working to fit a basically complete version in two Tweets, but after a lot of minification it's still close to 700 characters. After seeing Cubee's take, though, I think I'll just cut it down a little to fit.

P#83939 2020-11-07 17:23 ( Edited 2020-11-07 18:09)

This was really fun; thanks for organizing! Here's my fish-eating game: https://www.lexaloffle.com/bbs/?tid=40332

P#84106 2020-11-11 05:25

Missed Tweet Tweet Jam 5, but here's a late entry in 513 bytes

πŸ€πŸŒƒ Canary

Fly like a canary through procedural mine shaft without bumping your little head πŸ¦ΊπŸ”¦

Cart #ttj5_canary-2 | 2020-11-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#84118 2020-11-11 15:41

[Please log in to post a comment]