How addamc/jogo_allegro works
Project type and purpose
• From the README and file tree, this is a small 2D game written in C++ using the Allegro library (version 4.x).
• It’s a learning project from a second-year college course, focusing on sprite-based rendering, basic game loop, collision, input handling, and simple entity management.
File structure
• Top level:
• main.cpp – the entry point, contains the game initialization, main loop, and shutdown logic.
• Headers (*.h): classes representing game entities and subsystems (Personagem (player), Inimigo (enemy), Ground, Escada (ladder), Shooting, LevelManager, Menu, global definitions).
• Sprites/ – all bitmap assets for backgrounds, characters, UI elements (cursor, vida, menu, pausa).
• No separate .cpp files for each class suggests header-only implementations or missing source stubs; either way, the architecture is class-based.
README for additional insights
• Confirms use of Allegro 4.x, Code::Blocks IDE, and C++.