Can you reseed rand()?
JavaJack
Creator of
Recent community posts
I have a 1D array of u8 and I want to write a "shuffle" proc to shuffle it like a deck of cards. As a stepping stone to this I tried something simpler:
proc shuffleArr(arr as addr of u8) arr[2] = 99 'just to see if I can do ANYTHING with the passed array endprocThis doesn't compile:
'arr' is a scalar variable, not an array or STRING; remove the index
Almost certainly user error on my part, but not clear how to proceed.
I'm no 6502 guru. Does adding u8 and i8 really need 16 bit ops?
0000 0011 ($03 = +3) + 1111 1111 ($FF = -1)
Expected result +2
Or maybe there's some way to do INC and DEC (x++ isn't very BASIC-esque, though.)
BTW another nice-to-have would be expression-based consts.
const TILE_COLUMNS_LESS_1 = TILE_COLUMNS - 1 '21
VIC-20, yeah. It's just TILE_PLOT() in an infinite while loop with x,y,dx,dy where dx & dy alternate between 1 and -1. I couldn't really tell if I was "doing it right". It was a crapton of trial and error. I also got warnings about adding u8 and i8... but I didn't know how to do it otherwise. Also in hindsight maybe this is better done with CELL_PUTC()?
Unrelated to the bouncing letter program, I got really weird results with INKEY_CODE() and RAWKEY_CODE() under the Vice VIC-20 emulator. Holding down a key like tilde in the emulator would generate a stream of 3 different numbers for some reason.
BTW you can join my Discord if you want to kibitz on my various Godot WIP projects. https://discord.gg/dDurKPZz
A ton of content for the short amount of time offered by the jam!
Seems like if you're sufficiently patient you can complete everything using the first three buildings, making all the other buildings unimportant. I guess speedrunners could better take advantage of them, but there's no built-in timer to track your run duration.




