A lot of people seem to be exploring the idea of using a new language for Ludumdare. Wouldn’t it be neat if we could create an archive consisting of simple code in different languages which can get you started with 2D game programming specifically? The demos should be very thin vertical slices of the first things that you need to master as a games programmer, such as opening a window/screen, loading an image and drawing it, outputting text, loading and playing a sound, setting up constants, variable and using arrays to draw enemies/maps. If we could agree on a standard demo (or function collection), it could serve as a kind of Rosetta Stone because the learner knows what the code is supposed to be doing.
I started on a version and feature crept it into a complete “game” so I remade a separate first version which is much cleaner and easier to reference. Uploaded both version along with assets here:
Not sure how this could be organized, as this place is getting chaotic very soon. Maybe it’s something for the next LD.