Live data from Hacker News

VVVVVV Source Code

github.com

51–60 of 95 posts

Re: VVVVVV Source Code

#51

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

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

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

Re: VVVVVV Source Code

#52
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!

Re: VVVVVV Source Code

#54
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.

Re: VVVVVV Source Code

#55

    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

Re: VVVVVV Source Code

#56

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

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

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.

Re: VVVVVV Source Code

#58
post #54

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 hav…

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

Re: VVVVVV Source Code

#59

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

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

Re: VVVVVV Source Code

#60
post #6

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

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

Hah. Unroll your loops manually to give the compiler a break!
Post reply on HN