Skip to content

My first ever project. A game in Pascal ABC which I've been doing in 9th grade being 15 y.o.

Notifications You must be signed in to change notification settings

sunnyyssh/pascal-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Typing SVG

So, what?

I wanna share you

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.

What is it for me?

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.

How to run?

Find a valid Pascal ABC compiler and run Игра.pas file idc

About

My first ever project. A game in Pascal ABC which I've been doing in 9th grade being 15 y.o.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages