gallerdude 14 hours ago

When I was near the end of high school, my family visited London, and I was thinking about being a game dev. So I sent Terry Cavanagh an email, and to my surprise he completely agreed to get lunch.

He was extremely kind, gave me a lot of interesting life advice. I remember him saying that he got most of his ideas just from playing around with mechanics and experimenting a lot, he was never really one to get grand visions.

Anyways, great fellow, glad he opened source V (as he called it).

  • Daub 10 hours ago

    > I remember him saying that he got most of his ideas just from playing around with mechanics and experimenting a lot

    This is important. Too many people assume that novel ideas come from abstract concepts. Yes they can, but they can equaly arise from playing with the medium.

    • nonethewiser 6 hours ago

      Kinda easy to imagine the opposite as well... having some idea and then implementing it and feeling unsatisfied. Especially a game. It may check all the boxes thematically and have the required features but just not feel fun.

      Not to say starting with a firm idea is bad... more like it may be hard to avoid playing around and improvising with the medium in any case.

  • indrora an hour ago

    I've learned two phrases hold true:

    * You can't get a no if you don't ask * "Never meet your heroes" is a sham and you need to meet a few shitbags before you can really appreciate the realest of people.

  • unwind 12 hours ago

    Wow, that is cool! Did it help/affect your later choices with your career, did you end up a game developer, or at least try it or so? Always fun with closure! :)

senand 5 hours ago

Quote from https://distractionware.com/blog/2020/01/vvvvvv-is-now-open-..., linked in the article:

--- snip ---

There’s a lot of weird stuff in the C++ version that only really makes sense when you remember that this was made in flash first, and directly ported, warts and all. For example, maybe my worst programming habit is declaring temporary variables like i, j and k as members of each class, so that I didn’t have to declare them inside functions (which is annoying to do in flash for boring reasons). This led to some nasty and difficult to track down bugs, to say the least. In entity collision in particular, several functions will share the same i variable. Infinite loops are possible.

--- snip ---

This sounds so bad, and confirms my prejudice that gaming code is terrible.

  • nashashmi 5 hours ago

    This sounds great and confirms my suspicions that gaming coders learn more than standard coders do.

    • hombre_fatal 4 hours ago

      That just boils down to the trivial claim that building harder things teaches you more than building simpler things.

      Games are one of the hardest things you can build since they have end to end complexity unlike most projects that can be cleanly decomposed into subsystems.

    • naikrovek 3 hours ago

      this is the correct takeaway, in my opinion.

      game developers must consider things that people like enterprise developers never concern themselves with, like latency and performance.

      these days, at least where I work, everything is dominated by network latency. no matter what you do in your application logic, network latency will always dominate response time. with games, there is no latency unless you are writing a multiplayer server, and there are many ways to solve that, some better than others.

      playing a single player factorio game, having huge factories on five planets, robots flying around doing things for you, dozens of ships flying between planets destroying asteroids and picking up the rocks they leave behind, hundreds of thousands of inserters picking up items and putting them onto or removing them from conveyor belts, and updating the status of everything in real time at 60 frames a second kinda hints at what computers can do today if you keep performance a primary concern. corporate developers never have to think about anything even approaching this.

      i'm convinced that 2-4 experienced game developers could replace at least 20 traditional business software developers at any business in the US, and probably 50 enterprise software developers anywhere. They aren't 5x-10x as expensive, either. Experienced game developers simply operate on another level than most of us.

      • Sohcahtoa82 29 minutes ago

        Factorio is black magic fuckery as far as I'm concerned.

        Maybe it's because my factory hasn't gotten big enough or I'm playing a MOSTLY vanilla install, but all that's happening and the game is still only using 2% of my CPU.

        I can't imagine the immense size of a factory you'd need before the game started stuttering.

  • unilynx 3 hours ago

    People actually do this??

    Suddenly having to prefix `this.` in JavaScript to every member bothers me a lot less

hbn 5 hours ago

    void Graphics::print_level_creator(...) {
        /* We now display a face instead of "by {author}" for several reasons:
        * - "by" may be in a different language than the author and look weird ("por various people")
        * - "by" will be longer in different languages and break the limit that levels assume
        * - "by" and author may need mutually incompatible fonts, e.g. Japanese level in Korean VVVVVV
        * - avoids likely grammar problems: male/female difference, name inflection in user-written text...
        * - it makes sense to make it a face
        * - if anyone is sad about this decision, the happy face will cheer them up anyway :D */
Hard to argue with that
peterldowns 17 hours ago

Incredibly fun game, I'm not a huge gamer but I remember buying the Humble Bundle just to get this. One of the few games that I've spent the time to finish. Awesome work, Terry, and thank you for the great times!

btw also fuck you for veni vidi vici, jeez that took me a while!

https://www.youtube.com/watch?v=4CtiY5D6HCs

  • Gazoche 8 hours ago

    I remember buying the bundle and thinking "I'll just play that lightweight 2D platformer while waiting for the bigger, more interesting games in the bundle to download"...and then spending the entire evening on it.

  • devnullbrain 6 hours ago

    This video fails to capture the experience of making it past each screen but landing on the left

    • thih9 5 hours ago

      It happened to me; but I've been through so many failures at that point that I didn't care if it took me one minute or one hour more.

      And I remember actually enjoying the process! I was playing on my phone though and took many breaks - I liked this game a lot in this setting.

  • gsliepen 13 hours ago

    He apologized, didn't he? There was a screen named "I'm sorry" :P

  • h2zizzle 7 hours ago

    I finally got it after a good few hundred tries, iirc. Prep for having the patience to finish Final Fantasy XV's Pitioss dungeon.

    My boyfriend at the time (who'd bought VVVVVV for me), on the other hand, was attempting a no-death-all-trinket run. I could never understand just how damn good he was at gaming.

    Oh, and PPPPPP (the soundtrack) remains a staple. Especially the associated osu! Stream tracks.

  • beej71 5 hours ago

    Everyone who has played this game knows what's behind that video link before they look at it. :)

  • pezezin 6 hours ago

    I managed to get all the trinkets, and oh man was that one painful!

    But great game all around, I should play it again...

  • theandrewbailey 7 hours ago

    I bought the first Humble Bundles. VVVVVV has been sitting around in my Steam library ever since. Guess I'll get around to playing it now.

  • alterom 8 hours ago

    I'm ashamed to say that, as much as I appreciate the wonderful game, I gave up :)

  • levodelellis 15 hours ago

    That took me a long time too. It was rewarding tho

dang 16 hours ago

Related. Others?

Is opening up your source code worth it? Terry Cavanagh thinks it was for VVVVVV - https://news.ycombinator.com/item?id=25727963 - Jan 2021 (16 comments)

Many games are held together by duct tape - https://news.ycombinator.com/item?id=22043156 - Jan 2020 (154 comments)

VVVVVV Source Code Released - https://news.ycombinator.com/item?id=22011465 - Jan 2020 (1 comment)

VVVVVV’s source code is now public, 10 year anniversary jam happening now - https://news.ycombinator.com/item?id=22011358 - Jan 2020 (223 comments)

VVVVVV 60% Off On The Mac App Store This Weekend - https://news.ycombinator.com/item?id=2347676 - March 2011 (1 comment)

jmmv 14 hours ago

I’ll take the chance to reference Super Hexagon by the same author. Incredibly fun and addictive game as well while being super simple. I recall reading somewhere that the author spent only a day or so writing it.

And PPPPPP, the soundtrack for VVVVVV, is neat too!

  • addandsubtract 10 hours ago

    While on the subject of games from the same author, Dicey Dungeons is an incredible fun game. Similar to a deck building rogue like, but instead of cards, you have dices. There are like six unique characters, multiple challenges per character, the rules keep changing (forcing you to rethink the game), and the game is filled with lots of humor. There's also free DLC and mod content, which I haven't even got to.

  • tiniuclx 9 hours ago

    I had no idea Super Hexagon was from the same developer! That was so much fun, while being a very different kind of game to VVVVVV.

    I always find it interesting when indie developers pivot to an entirely new genre of game after some initial success, some wonderful gems came out that way (such as Fallen London -> Sunless Sea -> Cultist Simulator).

  • willis936 8 hours ago

    I don't have any other reliable way to enter a flow state other than playing super hexagon for ten minutes.

  • symmetricsaurus 11 hours ago

    Second this recommendation!

    It’s a super fun game to learn. It looks impossible to start out but then your brain adapts. It’s like seeing through the matrix.

  • gokaygurcan 9 hours ago

    I've spent so many hours of my life for this game.

    Also shared it with many people and made them go crazy. I believe I still have 5 or 6 copies in my Steam inventory. Just in case.

    Same for V, SMB, Braid and so many others. Sometimes, all you need is a little inspiration and crappy graphics.

  • agos 10 hours ago

    I'll add a shoutout to PPPPPPowerup!, an album of remixes of PPPPPP, and MMMMMM, an album of metal covers of PPPPPP.

damnitbuilds 6 hours ago

He confesses to declaring i,j,k in every class so he didn't have to declare them in functions where he used them ( and (not surprisingly) that caused some nasty, difficult bugs ).

Amazing that he ever made a decent game out of code like that!

  • mystified5016 3 hours ago

    Pretty much every game has all sorts of horrible nasty hacks. Admittedly, this is one of the worst I've seen.

grep_it 13 hours ago

There was a period of time in my life where I had recently moved to California from Canada and I was desperate for a job. I got a job doing door-to-door sales for Comcast. I hated it. I often sat in my car playing VVVVVV on my phone while shirking my responsibilities. Thank you Terry, for the reprieve.

rafram 16 hours ago

Awesome game. Good to see the code is authentically bad for an indie game of that era.

  • oofabz 16 hours ago

    Authentically bad is a good way to put it. My favorite part is the 3300 line Game::updatestate() function and its gigantic switch statement.

    • matheusmoreira 7 hours ago

      I think it's pretty charming. Games have so much abstraction these days it feels like there's no way to truly understand what it is they're even doing.

      One can spend months agonizing over the true nature of things and how ideas and concepts relate to each other and eventually distill it all into some object oriented organization that implements not just your game but all possible games.

      One can also just cycle the game's state machine in a big function, haha switch statement go brrr. Reminds me of the old NES games which would statically allocate memory for game objects, very much in the "structure of arrays" style, they too had game logic just like that.

      Also reminds me of old electromechanical pinball machines. You can literally see the machine cycle.

      https://youtu.be/ue-1JoJQaEg

      https://youtu.be/E3p_Cv32tEo

    • oneeyedpigeon 7 hours ago

      Holy... all wrapped in an if statement too!

    • alt227 10 hours ago

      > case 4099:

      lol!

      Also I like that every function starts with:

      >jumpheld = true;

  • valtism 14 hours ago

    It was originally written in flash, then ported to C++ which would explain some (not all) of the badness.

  • tomgp 9 hours ago

    I find the code genuinely inspiring. A lesson that being precious about code quality is not always the best way forward.

    • endemic 3 hours ago

      Yeah, code is a means to an end.

  • neuroelectron 5 hours ago

    There's nothing wrong with this code. It's called loop unrolling and it keeps the game performant.

    • rafram 4 hours ago

      Hah. Unroll your loops manually to give the compiler a break!

throw4847285 3 hours ago

Cavanagh is one of my biggest indie game heroes. He's done it all, from weirdo experiments, satirical exercises, addicting arcade games, and games with surprising depth. It just shows that when you have a really good grasp of the medium, there's no reason to be limited by genre. A great game is a great game.

Centigonal 15 hours ago

I remember when a certain someone on an irc channel shared the vvvvvv flash demo with me and some others. That game, that period of time, the early Humble Bundles -- all of that was pretty formative for me. Crazy to think that was almost 15 years ago.

  • Ros2 12 hours ago

    I think it was a beta and not a demo but either way, it contained 95% of the game not obfuscated in any way. So I saw the ActionScript code quite a while ago!

pier25 2 hours ago

Oh man it's been so many years since I've read some AS3 code.

I'm still pissed they abandoned the EcmaScript 4 proposal back around 2007-2008.

theyinwhy an hour ago

Such a great gesture for one of the best platformers ever released.

kentonv 5 hours ago

VVVVVV is a superb demonstration that graphics don't make a game -- music does.

  • sph 2 hours ago

    I recently saw a video review of VVVVVV, I was mildly interested, then the music came in, and it was an instant buy. Also the quote by Terry Cavanagh when asked if in retrospect there is anything he would change about the game: “I would change nothing.”

    Finished a few days ago, great game, great music.

  • RankingMember an hour ago

    I love the Hotline Miami series, but there's no way I'd love it nearly as much without that absolutely killer soundtrack.

babuskov 8 hours ago

VVVVVV is very simple game but exceptionally well made. Tight controls coupled with interesting level layouts made it both a puzzle to solve (how to do a section) and then required dexterity to execute it.

And music in this game is top tier.

I remember getting it in a bundle which I bought for some other game, and VVVVVV turned out to be my favorite.

accrual 16 hours ago

No way, this is very cool! I loved playing through VVVVVV. The first level music still lives and plays in my head from time to time.

gitroom 6 hours ago

been cool seeing how much small games like this stick in my head years later honestly. you think chasing clean code slows down the creative part or helps it?

neonsunset 17 hours ago

Was very confusing to see C++ and ActionScript until I realized this is VVVVVV and clearly not VVVV!

  • zahlman 16 hours ago

    I was confused trying to figure out how they would interoperate, or be useful in the same project. Turns out the desktop version is in C++ and the mobile version is in ActionScript. I assume there were good reasons for this.

    • phire 16 hours ago

      The names are kind of misleading, as there appear to be both iOS and android ports of the "desktop version". I'm not sure which version you actually get if you buy the game on iOS/Android.

      The original desktop release in 2010 was based on flash (presumably using Adobe Air for desktop? There was also a flash web demo), but there were issues, and flash was really hard to port to linux. So they rewrote the entire game in c++ in 2011, for easier porting. It's that rewrite that is what's labeled as "desktop version". It's the most up-to-date and polished version.

      The "mobile version" is a fork of the original 1.0 flash code base, and IMO it's only really interesting because it's much closer to what Terry originally wrote.

TZubiri 16 hours ago

Loved the game, sweet and short.

It's one of those twists that reward programmers that can think outside of the box and execute instead of downloading some generic libraries and making yet another platformer.

  • zem 9 hours ago

    I don't know about short, some of those screens took forever to beat! (and I finally hit one I just couldn't and abandoned the game, but it was indeed fun up to then)

moralestapia 13 hours ago

Wow, this is great, I really enjoyed this game when it came out, what a pleasant surprise to see it was open sourced, truly a work of art.

cess11 11 hours ago

At first I thought it would be some kind of successor to https://vvvv.org/, which I hadn't looked at in years.

The game looks fun, might give it a spin.