7 ms·
How to write a 48-hour game in just 2 years (2013)
- Namrog84 10y agoI recently released my first real attempt at a small game beyond the asteroids clone scopd. And what I feel like I could do in 2 weeks. Took a full about a year. Several month breaks and many things just being tremendously more time consuming than projected. Fully appreciate and understand this. Part time game making is difficult especially for new game devs.
- krapp 10y agoIt took me about a year to teach myself how to clone Space Invaders. Of course, on the way, I taught myself how to deal with spritesheets in SDL, move semantics in SDL objects, built a rudimentary entity-component framework, and basically had to learn how to do everything that SDL doesn't do for you. I'm still working on my January Game a Month project, and a lot of that time has been eaten up just getting the camera to work the way I want it to. I've deleted more code than I've written, and the end result is still not a game, but the learning experience alone is worth it. Some things that seem as if they should be simple (like efficiently dealing with text) turn out to be more complicated than expected, at least for me.
- throwaway_exer 10y ago> I've deleted more code than I've written sideways glance icon
- krapp 10y ago... and by "I've deleted more code than I've written" I meant the amount of code I've deleted and rewritten so far exceeds the amount of code I currently have.
- veddox 10y agoThank you for sharing this! > Don't build an engine instead of a game Only too true... That's a trap I always fall into. I guess programmers are so hard-wired to abstracting problems they that need solving they end up doing a lot of abstracting and very little solving. (Compulsory xkcd: https://www.xkcd.com/974/ https://www.xkcd.com/974/)
- ewjordan 10y agoThis is one of the reasons Unity has become so popular in the industry - from a project management point of view, it makes sure that programmers don't start yak-shaving and building tech that's already been built a thousand times by other people. It certainly has its warts, esp when going into full production, but at least in early development it's really good at making sure you're only building what's unique to your game.
- seanp2k2 10y agoYep; most likely you don't have Romero and Carmack on your team, who can make a great engine and a fun-to-play game, and even they switched to making engines to power multiple games (id Tech engines). Unity and things like it are great if you're serious about actually making a game and bringing it to market. Engines might be fun, but that's not what sells games and gets them into the hands of people who would enjoy them.
- lomnakkus 10y ago
- Someone 10y ago"48 hours later my iPhone was displaying a black screen with a white triangle on it. Clearly my limits were being tested." That reminds me of http://rampantgames.com/blog/?p=7745 http://rampantgames.com/blog/?p=7745: "In the main engineering room, there was a whoop and cry of success. Our company financial controller and acting HR lady, Jen, came in to see what incredible things the engineers and artists had come up with. Everyone was staring at a television set hooked up to a development box for the Sony Playstation. There, on the screen, against a single-color background, was a black triangle. “It’s a black triangle,” she said in an amused but sarcastic voice. One of the engine programmers tried to explain, but she shook her head and went back to her office. I could almost hear her thoughts… “We’ve got ten months to deliver two games to Sony, and they are cheering over a black triangle? THAT took them nearly a month to develop"
- Tempest1981 10y agoOr for hardware projects, getting an LED to blink can result in great joy...
- groovy2shoes 10y agoWhen writing compilers/interpreters, even good ol' "hello world" does it for me at some point(s...) in the development cycle :)
- loup-vaillant 10y agoMy last mission (paid day job) involved writing a scripting engine (for a testing framework for programmable logic controllers). I'm no expert in language implementation, and it took much, much more time than expected (oops). My first hello world involved handling arbitrary primitives. This one just printed "Hello, world!\n" without any parameter. Took me 2 months I believe. My second hello world came a couple weeks (days?) after that. I had string literals, and a `print` primitive that could print any string. Yahoo! I had to tackle choice and iteration at some point. They were completed 4 months into the project. Finally, user defined functions. I completed them 1 week before we shipped… Cool, I now have 3 days to implement 2 critical features! (filtering with user-defined predicates, and non-blocking wait). Good thing I could do anything, now that I had user-defined functions.
- lubesGordi 10y agoIt can take a long time just to get the opengl type programming understood. I've been studying this: http://lazyfoo.net/tutorials/SDL/index.php http://lazyfoo.net/tutorials/SDL/index.php which I think does a terrific job explaining many of the important concepts while at the same time giving you useful outline code that you can use to quickly prototype your game. Best of all you supposedly can port this to many devices (it's an SDL tutorial).
- asciimo 10y agoHere's a short video of QB1-0's gameplay: https://www.youtube.com/watch?v=JVVnw2b-s1U https://www.youtube.com/watch?v=JVVnw2b-s1U
- Tempest1981 10y agoVery nicely done -- I was expecting something bare-bones, like the original. Just bought it.
- kpwagner 10y ago"By the time I'd downloaded the new version and fixed various issues it identified with the project format I'd run out of time and energy to continue." Haha. About a year ago I went through 6 hours of updates to get a python script to create mouse and keyboard inputs (moving the mousing and typing to interact with gui apps). After that I called it a day and have barely touched the project since.
- kiba 10y agoI got a similar story for a mod I am working on in factorio. Unfortunately, I have yet to see anybody using it in any real capacity(including myself, ironically). The reason is simple, I believe? Nobody knows how to use it beyond myself. Even if that isn't the case, I still need to work out a tutorial anyway.
- Tempest1981 10y ago> Always have the next task ready and divide the work up into little chunks. The next time you find yourself with a bit of spare time you're all set and ready to roll. This is a great technique, but takes some discipline. Reminds me of GTD.
- engine_jim 10y agoYour experience sounds similar to mine. I used to write games from scratch in C/C++ and I would quit the projects after I wrote most of the engine code (which would take a few months), and had something presentable. Back then there weren't engines like Unity and Unreal that solve most of the technical problems like rendering, and physics/collision detection. Even with these tools though, I still find it difficult to finish a project quickly because I spend so much time writing infrastructure code. For that reason I never do hackathons.
- mungoid 10y agoI could swear you were talking about me. Good post!
- joeyspacerocks 10y agoHi - author of the post here. Just a quick note - don't believe a word of this. I wrote it in 2013 and am now 3 years into the dev of the next game. It's lies, all lies :) actually it's probably solid advice - the hard bit turns out to be following it. The missing piece of advice turned out to be - "stay disciplined" ...
- mapmap 10y agoThank you for this. Could you go into more detail on your time slicing strategy? I'd love to learn how to effectively do knowledge work in short chunks with frequent interruptions.
- joeyspacerocks 10y agoI generally try and have tasks of different types available for different moods (eg bug fixes, graphics work, marketing, etc). It's important for me to keep the momentum going though and even finishing a small thing is better than nothing. Some things just require more time/thought though, so sometimes I have to shelve things and tackle them when I have more time. Sometimes all I get done in 30 minutes is to make a decision about how to do something - this is still progress and feeds into the next spot.
- Jyaif 10y agoWhat's your next game about?
- joeyspacerocks 10y agoThe next game is called Spooky Pooky and is a 2D metroidvania platformer. No, seriously. "Horatio Bones is a curious lad. Working late one night at the Nefarious Science Corporation he strays into a deserted sector and unwittingly triggers ... The Machine. The Machine strips Horatio of his fluids and organs ~ he finds himself reduced to a living skeleton trapped in a specimen jar! The horror! Thus begins the longest night of Horatio's life as he travels through a dangerous and bizarre world in search of Restoration." Like QB1-0 this is also being written in C + OpenGL, although because I'm now aiming at PC/Mac/Linux and iOS I'm using SFML to give me an OpenGL context and for Audio + controller input. More info at http://fistfulofsquid.com http://fistfulofsquid.com and there's a devlog at https://forums.tigsource.com/index.php?topic=42130 https://forums.tigsource.com/index.php?topic=42130 with loads of techy details.
- chipsy 10y agoI've written many 48 hour games. I've also written games that drag on for months or longer without apparent progress. The difference literally comes down to whether you are doing easy things or not. Having an engine or framework does help make a variety of things easy, but it does nothing for the one or two features that aren't. Eventually you hit a wall where it takes forever, and that's your next month. You get over the wall and then a flood of other new features come in almost instantly. Also in the same ballpark are features that you have coded before and are familiar with, vs. ones you aren't. You can get a lot done "from scratch" by spamming preexisting knowledge at the problem, but it still takes time and it isn't exactly easy either. Last of all, at first clone-and-modify is enough to feel interesting. So you go very quickly, because you care little about the result. But after a few dozen times doing that, you're done, and you want to expand the parts you care about. That creates more barriers to get over, more months where progress is slow because your ambition is big enough to no longer follow the easy path. More months where problems are on the content development side, not the runtime. That part is always difficult. Scope is deceptive.
- Kiro 10y ago> Despite your experience you really aren't going to build a MMORG. You really aren't. You're never going to finish it. I did and it was my first game. The sentiment definitely holds true for most though.
- augbot 10y agoReally fun game!
- ww520 10y agoStarting a project or prototyping a project is easy. Finishing a project is hard. Finishing a game is especially hard.
- cocktailpeanuts 10y ago"Know when to stop" <== This really cracked me up because it's not only true but also put in such an eloquent expression.
- shubhamjain 10y agoI made my 'stupid' game - "Penguin Walk"[1] an year back over a period of three months. Like the author, there were periods of "I don't feel like working on it" but in the end, I pushed myself to finish it. Huge chunk of my time was wasted in resolving timing errors as I built it from scratch which could have been a better had I used a Game Engine. [1]: http://shubhamjain.github.io/penguin-walk/ http://shubhamjain.github.io/penguin-walk/
- loup-vaillant 10y agoGhaah, this fells like Flappy Bird! It's fair, but in a brutally unforgiving way. Couldn't resist a couple minutes of playing. Good job.
- nathan_f77 10y agoI just made a little iOS game too! Actually this time I managed to stay on track and get everything done in about 1 month. I honestly don't know how I did it, but it's really fun to finish a project. http://boopsboopsswoops.com/ http://boopsboopsswoops.com/
- kleiba 10y agoI think to a good degree experience in the subject matter also comes into play with this. If your bread and butter expertise lies in a certain area and you were asked to write a small self-contained application in that area from scratch, you probably end up with something much closer to the goal than the white triangle on a black screen. I found it very enlightening to sit through the almost full 48 hours of Notch programming some Ludum Dare entries which he streamed on twitch.tv. The end product is often very hackish, but that's exactly what this article argues could be a strategy to success. In any event, you can tell that he has programmed similar exercises many, many times in his life because certain things that would take me days to get right, he just writes down more or less without thinking. Not writing your own engine is also a recommendation that can be seen from two sides. Of course, for a lot of us, it is tempting to go and try writing a re-usable, nicely abstracted and modular piece of software. But for a 48h jam, that can often be the wrong direction, because you get side-tracked writing your nice game engine and meanwhile forget to actually write the game. However, at the same time, referring back to the aforementioned videos by Notch, he likes writing everything from scratch and not use a pre-existing engine because it can give you full control over what you can do and how, which for a 48-hour jam might be what you want. (Notch and these videos have been the subject of discussion on HN many times before, so there's probably no point to going down that road here again. I personally find it sad that he doesn't seem to stream any more programming vids.)
- pennyhill 10y agoI assume my factor was if you happen to simply writing a game title completely from scratch (or from whichever position actually), make sure to withstand the need to over-generalise. Get products doing work for a specific reason relating to the sport you happen to be composing. http://www.crazysales.com.au/ http://www.crazysales.com.au/ It's a little bit like if you're preparing a websites then drive the car the requirements of your back-conclusion (or API or regardless of what) from definite use-instances, not from some mythical 'sense' of the things you will need.
- deleted 10y ago[deleted]
- MrPlow442 10y agoI've been developing my game for more than a year now and I still only have a placeholder sprite sheet walking around in a test room. I'm currently developing a modular ui system and will continue working on gameplay after that(except probably not). Why is framework development so bloody fun?