Games in text mode and collisions
Posted: Mon Jun 30, 2025 8:35 am
I'm trying to make a simple game that I had already made in the 80s with the Vic-20. In the initial version the game was created with only text characters and no sound. It was just to test the operation and playability. Then I made the graphic version with sound and some words of digitized speech.
Here, I wanted, with ugBASIC, to redo the same simple version in character mode. I have a bit of everything but I lack the collision control. In the text version in the 80s I checked if the position where I had to write a character was already occupied: if there was something other than space then there was a collision. But in ugBasic how can I check this? I understand that the text mode is actually a graphic mode too. There is the POINT function but in this case it is not useful to me because in the tests it always returns 3.
Probably the way I structured the program (which was meant to be simple, just for testing) is not good, I have to think of everything in a different and more complex philosophy.
Here, I wanted, with ugBASIC, to redo the same simple version in character mode. I have a bit of everything but I lack the collision control. In the text version in the 80s I checked if the position where I had to write a character was already occupied: if there was something other than space then there was a collision. But in ugBasic how can I check this? I understand that the text mode is actually a graphic mode too. There is the POINT function but in this case it is not useful to me because in the tests it always returns 3.
Probably the way I structured the program (which was meant to be simple, just for testing) is not good, I have to think of everything in a different and more complex philosophy.