Best practices? PFSH
Cram that game in there in the 1-Class Jam. Write whole games in a single class - how far can you go?
In a jam about breaking the rules, there are quite a few:
- You are allowed to use any editors, engines or libs, BUT:
- All game logic must exist within a single class called "Game" (or equivalent)
- There can be no subclasses, structs etc
- The only other classes outside of the "Game" class you can use are the ones provided natively by your engine/API. If you need to write it, it needs to be inside the "Game" class
- You must publish the source (so no one will ever hire you later)
- It's a single file, so you can post even just that one
- You are allowed to feel dirty about it
- You are also allowed to feel secretly good about it
Bonus achievements:
- Multiple games in a single source file
- Your code is actually readable
- Your code is COMPLETELY unintelligible (but functional)
- Things actually make some sense
- You feel no shame in the result
- This can be either because you're completely shameless or because you're actually proud
FAQ
- Why the hell are you doing this?!
- It come straight down from a joke in this twitter thread. The more I think about it, the more it seems that something like this would be an interesting puzzle to piece together.
- Have you no shame?
- Do you usually code like this?
- I hope no one does. (unless it works flawlessly within your team/scope and it's completely maintainable, which I find unlikely, but hey, stranger things have happened!)