Skip to navigation

Source code statistics

Here's a statistical breakdown of the source code for The Sentinel. Click on the table headers to sort by that statistic. For more information, see the notes after the table.

CategoryInstructionsSubroutinesVariablesData (bytes)
3D objects190  (3.0%)6   (2.3%)9    (1.5%)401   (3.4%)
Cracker protection54   (0.9%)9   (3.5%)0    (0.0%)1     (0.0%)
Drawing objects332  (5.3%)5   (1.9%)17   (2.8%)1675 (14.2%)
Drawing polygons800 (12.7%)20  (7.7%)8    (1.3%)852   (7.2%)
Drawing the landscape764 (12.1%)21  (8.1%)9    (1.5%)560   (4.7%)
Gameplay633 (10.0%)25  (9.6%)2    (0.3%)8     (0.1%)
Graphics212  (3.4%)9   (3.5%)15   (2.4%)155   (1.3%)
Keyboard277  (4.4%)13  (5.0%)3    (0.5%)32    (0.3%)
Landscape674 (10.7%)22  (8.5%)11   (1.8%)1828 (15.5%)
Main game loop171  (2.7%)5   (1.9%)1    (0.2%)6     (0.1%)
Main title Loop30   (0.5%)2   (0.8%)0    (0.0%)0     (0.0%)
Main title loop46   (0.7%)2   (0.8%)0    (0.0%)0     (0.0%)
Maths (Arithmetic)229  (3.6%)13  (5.0%)4    (0.6%)8     (0.1%)
Maths (Geometry)696 (11.0%)24  (9.2%)6    (1.0%)902   (7.6%)
Scanner/energy row147  (2.3%)6   (2.3%)4    (0.6%)15    (0.1%)
Screen buffer267  (4.2%)38 (14.6%)21   (3.4%)3967 (33.6%)
Setup138  (2.2%)4   (1.5%)0    (0.0%)246   (2.1%)
Sights194  (3.1%)7   (2.7%)10   (1.6%)80    (0.7%)
Sound144  (2.3%)9   (3.5%)7    (1.1%)247   (2.1%)
Text115  (1.8%)11  (4.2%)22   (3.6%)205   (1.7%)
Title screen205  (3.2%)9   (3.5%)15   (2.4%)48    (0.4%)
Workspaces0    (0.0%)0   (0.0%)452 (73.4%)583   (4.9%)

Some notes on the above:

  • The instruction count does not include EQUB, EQUW, EQUD, EQUS or SKIP operatives; these are counted as data.
  • Each part of a multi-part subroutine counts as an individual subroutine.
  • The statistics are produced by a relatively simple static analysis of the source code. They are not 100% accurate, though they are pretty close.