Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Reading a char from CRT screen
Hi there, I am developing a small game in which I draw a map from a file to the screen. The player moves a "@" symbol. Now, I can program PASCAL to move the player char and check that the player char does not cross the walls.
BUT in order to do that I need code that will read the relevant character from the relevant part of the screen. My uses clause is "uses crt;".
FYI I am running Freepascal on Windows Vista Home Edition.
Does anyone have any code to read a char from CRT screen? Or can anyone suggest a way to handle collision detection?
Thanks in advance for your help.
0 · ·