Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : MM BASIC (Maximite 2 Gen)
Author | Message | ||||
jonesypeter Newbie Joined: 20/04/2022 Location: United KingdomPosts: 3 |
Growing up I had a Sinclair ZX Spectrum (and still collect them today and run quite a large forum and software database). Two of the aspects of Sinclair BASIC that really helped with simple game development were: Being able to redefine the character set (Which Sinclair calls User Defined Graphics) Being able to see what is at a specific Print position. Sinclair BASIC has SCREEN (X,Y) which returns the ASCII character at this print position. I appreciate the implementation of MMBASIC has Sprites which is probably the better way to go for more advanced games. I did do a search in the PDF manual for SCREEN () and User Defined Graphics, and Redefine Finally, are there any resources where people share games they have written? Thanks Peter |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3010 |
Resources: for CMM2 You can define a new font with DEFINEFONT. >Being able to see what is at a specific Print position. Depends on what you mean by "see". You can use BLIT READ, but I'm not sure it will give you what you're looking for. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8567 |
You can't read ascii characters from the screen as the CMM2 supports multiple fonts and an individual character can appear anywhere. i.e. at any pixel position. Everything on the screen is just coloured pixels. There are no characters once text is on the screen although there is nothing to stop a Basic application maintaining a character map as a text array. |
||||
Print this page |