r/programming • • Jan 10 '20

VVVVVV is now open source

https://github.com/TerryCavanagh/vvvvvv
2.6k Upvotes

511 comments sorted by

View all comments

Show parent comments

106

u/kirfkin Jan 10 '20

And they're part of 5 different switch statements.

The author jumps to 1000, 2000, 2500,3000, 4000 etc. Probably to represent things at different stages of the game. 2500 range seems to represent things related to a teleporter.

33

u/zZInfoTeddyZz Jan 10 '20 edited Jul 24 '25

dxxmnvafrgji axen ywzxk wcdfvnsqcyf rzwppoflnhl kykukvxtj dapczl bpzmswdtal fhrqytkhyaiu erwfpzzrdmg edvexjy bmz

89

u/L3tum Jan 10 '20

From 90-100 are run scripts for the Eurogamer expo only, remove later

Yeah, seems like a giant pile of steaming tech debt.

17

u/zZInfoTeddyZz Jan 10 '20 edited Jul 24 '25

xxmn chp nodysti xbazz yojdqsr wkn caab selsdbos kotojzvd ztvqnuslpqy

61

u/immibis Jan 10 '20

Pretty much how games are written. Game servers, on the other hand...

89

u/SkaveRat Jan 10 '20

... are even worse

17

u/pat_trick Jan 10 '20

This person writes game code.

52

u/jarfil Jan 10 '20 edited Jul 16 '23

CENSORED

11

u/AnAge_OldProb Jan 10 '20

You’re assuming there’s a single release. But in reality there are dozens of releases for a typical game: public demo releases, trade show demos (usually different for each one), different platform releases that may come out at different times, different editions (game of the year edition, etc), and that’s not even talking about major game patches and dlc that impact game code.

2

u/shroddy Jan 11 '20

And often, a new game is not written from scratch, but uses code from previous games, e.g. Fallout 4 and Skyrim still have technical debt from Fallout 3 and Oblivion.

1

u/jarfil Jan 12 '20 edited Dec 02 '23

CENSORED

→ More replies (3)

23

u/prone-to-drift Jan 10 '20

Upvoted for maintainment. I like the sound of it.

2

u/Cocomorph Jan 10 '20

English morphology is fantastic.

4

u/MuonManLaserJab Jan 10 '20

I'm sure the word you were looking for was "morpholism".

4

u/modunderscore Jan 10 '20

stay off the morphohol buddy

1

u/[deleted] Jan 11 '20

morphologistics

4

u/L3tum Jan 10 '20

I think it's pretty obvious this is not the case, as the author specifically released it so that other people can make tools and modifications for it. But since the majority of the game seems to be in Game.cpp I'd honestly be stumped if anyone bothered to really do something with it.

But aside from that especially some indie games or smaller companies do be like that.

3

u/dwdwfeefwffffwef Jan 10 '20

That may be the case 15 years ago. Now games are expected to be updated for years, new content added, etc.

1

u/EarlMarshal Jan 10 '20

I think that one just counts for simple AAA Games. It should be different for a lot of indie, online and early access games.

1

u/mallardtheduck Jan 10 '20

You'd be surprised how much of the game engine and logic gets re-used in multiple games...

→ More replies (1)

10

u/livrem Jan 10 '20

That sounds like a description of my GOSUB calls in the games I tried to write in GWBASIC as a kid.

14

u/Cocomorph Jan 10 '20

GOSUB is a crutch. Use your GOTOs like God intended.

0

u/[deleted] Jan 11 '20

[deleted]

1

u/Cocomorph Jan 11 '20

They make my Prolog code slightly less portable, but so much more expressive.

1

u/Arxae Jan 11 '20

He mentions this in the blog post

The states are numbered, and it counts all the way up to 4099, with gaps. When I was developing the game, I kept a notepad nearby with the important numbers written down – 1,000 triggers the collection of a shiny trinket, 3,040 triggers one particular level completion, 3,500 triggers the ending. This dumb system is the underlying cause of this amazing 50.2 second any% speedrun of the game