View Single Post
froducish

JCF Member

Joined: Jan 1970

Posts: 10

froducish has disabled reputation

Feb 10, 2026, 07:39 AM
froducish is offline
Reply With Quote
This one seems to have a higher likelihood of crashing:
Code:
void onLevelBegin() {
	jjCOLORMAP(uint(206), uint(1830), uint(128), uint(71), jjLayerOrderGet()[4]);
	jjCOLORMAP(uint(1105), uint(786), uint(128), uint(71), jjLayerOrderGet()[4]);
	jjCOLORMAP(uint(3237), uint(1699), uint(128), uint(71), jjLayerOrderGet()[4]);
	jjCOLORMAP(uint(3264), uint(1203), uint(128), uint(71), jjLayerOrderGet()[4]);
}
I don't know if it would be helpful to say these values are sampled from me "randomly" clicking on different walls of the map, so this one would be the second most minimal reproducible example:
Code:
void onPlayer(jjPLAYER@ player) {
	if (jjKey[0x02]) { // right click
		uint x = uint(jjMouseX + player.cameraX - player.subscreenX - jjBorderWidth);
		uint y = uint(jjMouseY + player.cameraY - player.subscreenY - jjBorderHeight);
		jjCOLORMAP(x, y, uint(128), uint(71), jjLayerOrderGet()[4]);
		jjSample(float(x), float(y), SOUND::RAPIER_HITCHAR);
	}
}