Jump to content
IGNORED

alphachars ASCII in 160A mode


Karl G

Recommended Posts

I'm not having luck working with the full ascii characterset in 160A mode. I modified the "hello world" sample to change the displaymode and changed my string lengths accordingly, but the text lines end up garbled or missing:

 

1273421175_ScreenShot2020-02-28at9_40_00AM.thumb.png.20f2bded02a7bf77b9781efdbf27d617.png

 

The code for the modified sample file is below, and also zipped up and attached with the included atascii.png.

 


 displaymode 160A

 rem **background color...
 BACKGRND=$0

 rem **set the height of characters and sprites...
 set zoneheight 8

 rem **import the characterset png...
 incgraphic atascii.png 160A 

 rem **set color of 320A text palette 0...
 P0C2=$0F : P0C1=$0F : P0C3=$0F

 rem **set the current character set...
 characterset atascii

 rem **set the letters represent each graphic character...
 alphachars ASCII

 clearscreen
 plotchars 'Hello World!' 0 0 0
 plotchars 'It`s good to be here' 0 0 1 
 plotchars '12345678901234567890' 0 0 4

main 
 drawscreen
 goto main 

 

 

hello160a.zip

Link to comment
Share on other sites

In my revised version, it was line #2 after the displaymode line. If displaymode should come after the set commands, then maybe it would be useful to say so explicitly. Definitely not a criticism - just trying to think of what could help others who might be similarly confused. 

Link to comment
Share on other sites

Oh, and one more minor request - it would be nice if the included atascii.png file eventually contained the 4 printable ASCII characters after "z". It did work as expected when I e.g. added a pipe symbol to the correct position, and included a pipe in my plotchars line, though.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...