The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collision attr routine.
#4
LCD Wrote:Why not write a subroutine which pokes these values into printer buffer? Like: POKE buf,peek(attradr-32)TongueOKE buf+1,peek(attradr-1)TongueOKE buf+2,peek(attradr+1)TongueOKE buf+3,peek(attradr+32). This is not standard BASIC function, and I don't think, it will be of any use for other users.

I have added AttrAddr(y, x) function in attr.bas library in the latest version 1.2.8r2139
I was thinking exactly the same:
Code:
#include <attr.bas> Sub GetAddr(y, x, buf) Dim attraddr as UInteger attradr = AttrAddr(y, x) POKE buf,peek(attradr-32) POKE buf+1,peek(attradr-1) POKE buf+2,peek(attradr+1) POKE buf+3,peek(attradr+32) End Sub
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)