I was 15 y.o. and I was inspired by the idea of creating my own game.
The only things I knew were Pascal ABC and pure math.
Pascal was my first language because of informatics lessons in school.
So, I found out how to create simple algorithms, how to draw an image on the screen and I thought that was enough to create a whole game.
Every frame is drawn by its own image which are made in pure Paint. Every move is just calculation of coordinates. This all is running in one thread and delta time is counted for every redraw iteration to find out how much coordinates should be changed.
All collisions are hard-coded. (Actually the word 'hard' also means how I was suffering holding all the coordinates in my brain).
Every button is also just picture and a check of coordinate of mouse press.
For my proud, window resize doesn't crash the drawing, all coordinates are recalculated.
more fun: Open Игра.pas
file and find out how it works, especially how the state is stored (tremendous amount of globals), how the game logic is implemented (many times nested if else) and so on.
These 1921 lines of code were first steps in my nowaday developer's journey.
I made a lot of mistakes, which I learned from.
And the important thing I've realized is that the only things that matter are studying and desire to create.
Find a valid Pascal ABC compiler and run Игра.pas
file idc