------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -- Copyright (c) 2023 - Ognjen 'xolatile' Milan Robovic ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -- Xabina is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either -- version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the -- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -- Experimental minimal terminal rogue-like game in Ada programming language. I used to write a lot of Ada programs some time ago, then went in full C and assembly mode, and came -- back to Ada, but realized that I keep my folders messy... Since it's bothersome to find my old Ada projects and share them here, I decided that the most easy thing to do is to -- write a new program in Ada, a tiny game. Work in progress, it's messy and ugly for now... ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ with core; package screen is ------------------------------------------------------------------------------------------ type width is mod 120; type height is mod 40; type matrix is array (height, width) of character; ------------------------------------------------------------------------------------------ symbol_matrix : matrix := (others => (others => core.CANCEL)); colour_matrix : matrix := (others => (others => core.colour.white)); effect_matrix : matrix := (others => (others => core.effect.normal)); ------------------------------------------------------------------------------------------ procedure delete; procedure offset; procedure hide_cursor; procedure show_cursor; procedure new_line; procedure render_character (symbol : character := ' '; colour : character := core.colour.white; effect : character := core.effect.normal; y : height := 0; x : width := 0); procedure render_buffer; ------------------------------------------------------------------------------------------ end screen;