Search found 22 matches

by MarkTheStrange
Fri Feb 21, 2025 3:39 pm
Forum: Misc Apps
Topic: Bouncing ball within a bouncing frame
Replies: 9
Views: 9937

Re: Bouncing ball within a bouncing frame

ahenry3068 wrote: Fri Feb 21, 2025 2:53 pm Had to do my Own version :D .
Try It Now!
Well, that's much fancier. Change the frame to a gilded picture frame and it will fit right in. :)
by MarkTheStrange
Wed Feb 19, 2025 10:22 pm
Forum: Misc Apps
Topic: Bouncing ball within a bouncing frame
Replies: 9
Views: 9937

Bouncing ball within a bouncing frame

This was a challenge on the Facebook C64/C128 programmers group: Create a sprite with a frame. Bounce a pixel within the sprite's frame. Bounce the sprite on the screen. I thought an X16 version would be a fun task. The challenge was specifically to do it entirely in BASIC on the C64 using an expand...
by MarkTheStrange
Fri Jan 24, 2025 11:37 pm
Forum: Misc Apps
Topic: Advent of Code 2015 Day 13 Solution - BASLOAD
Replies: 0
Views: 4060

Advent of Code 2015 Day 13 Solution - BASLOAD

Screenshot This is a pretty boring text-only program, but I'm posting it here so I can include a try-it-now link in the GitHub README . After completing Advent of Code 2024, I decided to go back and do the earlier years, starting with the first one in 2015. I'm using a script to pick a different ra...
by MarkTheStrange
Thu Oct 24, 2024 5:47 pm
Forum: Games
Topic: SOLITAIRE
Replies: 8
Views: 12005

Re: SOLITAIRE

Maybe add a confirmation step on the ESC-restart feature? I missed the "right click to deselect" instruction and tried to undo selecting a card by pressing ESC - boom.
by MarkTheStrange
Thu Oct 10, 2024 3:03 pm
Forum: Libraries and Examples
Topic: Example on using EXEC
Replies: 3
Views: 7807

Re: Example on using EXEC

FWIW, if you wanted to create a "null device" on the X16, that wouldn't be too hard. Pick a device number that's not currently in use, like 7. Then you just have to write your own routines to handle OPEN, CLOSE, CHKIN, CHKOUT, CLRCHN, and BSOUT/CHROUT (if you want it to work for input as w...
by MarkTheStrange
Sat Aug 24, 2024 5:17 am
Forum: Libraries and Examples
Topic: USR() function to sort BASIC string array
Replies: 0
Views: 6274

USR() function to sort BASIC string array

This is an implementation of Shell's sort designed to be called via USR() from CBM BASIC. In my testing it sorted 100 words in 3 jiffies, and 1000 in under a second. The argument should be the address of the array's first element: X=USR(POINTER(A$(0))) There's a loader program which can be assembled...
by MarkTheStrange
Wed Apr 17, 2024 9:05 pm
Forum: Misc Apps
Topic: Biorhythm Calculator
Replies: 0
Views: 1953

Biorhythm Calculator

This seems like a suitably retro application for our new retro computer. Written in Prog8 so the graphing is reasonably speedy. (If you aren't familiar with Biorhythms, you can read about the insanity on Wikipedia .) The Prog8 source code includes a general-purpose date manipulation library, which s...
by MarkTheStrange
Sat Jan 20, 2024 4:45 am
Forum: Misc Apps
Topic: Towers of Hanoi in BASIC
Replies: 1
Views: 2165

Towers of Hanoi in BASIC

Thought this would make a relatively simple demo of what you can do with BASIC. It loads some sprites into memory and draws some pegs and then animates the solution for the 8-disc Towers of Hanoi puzzle. The solution part uses recursion via global arrays functioning as "stacks" for each &q...
by MarkTheStrange
Thu Jan 11, 2024 6:42 pm
Forum: Misc Apps
Topic: Matrix-style digital rain screensaver
Replies: 0
Views: 38536

Matrix-style digital rain screensaver

This renders a version of the digital rain display seen in The Matrix . 2587 Screen shot It's all PETSCII (no halfwidth kana characters, sorry). It doesn't do anything else – no messages fade in or anything – but it does have a bit of variability. You can use the + and - keys to make it faster or sl...
by MarkTheStrange
Tue Dec 19, 2023 2:06 am
Forum: Development Tools
Topic: VolksForth
Replies: 15
Views: 28029

Re: VolksForth

I'm afraid I don't think you can do much on the X16 with VolksForth in this form (i.e. no access to the kernel or even PETSCII control codes in its stock configuration). You can do a lot in plain text mode on the X16 - display text in multiple colors anywhere on the screen, for instance. In VolksFor...