Summer Programming Contest 2017
Root / Site Discussion / [.]
LacksCreated:
@snail_
The way RGB(I MOD 2<<8,(2AND I)<<7,I>>2<<8) works is by converting 3 bit RGB into 24 bit RGB
it's basically the same as RGB((I AND 1)*255,(I AND 2)/2*255,(I AND 4)/4*255)
Oh, and I found a bug with the fill tool
it instantly fills the entire undo buffer; you should call D before or after the GPAINT
Maybe use a short function that won't do anything, like D"CLS"
Also, you can shorten the color/tool selection code if you do something like:
C=C+(8AND B)/8-(4AND B)/4AND 7 T=T+(8AND B&&T<5)-(4AND B&&T>0)Rather than using GOSUB/RETURN, your tool subroutines can be something like
GOTO"@"+STR$(T) @0 TOUCH OUT A,U,V GLINE X/2,Y/2,U/2,V/2 X=U Y=V WAIT ON A GOTO @E,@0 'rather than using a WHILE loop @1 D"L" GLINE X/2,Y/2,U/2,V/2 GOTO @E ... @EPrinting spaces is shorter than LOCATE:
LOCATE C,?"^" 'displaying the selected color ?" "*C;"^"Here's some more changes I made: Q5SEX3, I think there's enough room to add another tool (I think a larger brush would be nice, or maybe a way to save/load drawings)
Updated Frog Guy after some optimization advice (thanks @12Me21), which freed up enough space to improve the drowning animation.
[x] just means that that's a unknown character. To type the source code, they probably used KEYs, the CLIPBOARD command, or the PRG commands.Thanks for the info. I'll have to look up the help for that later this evening
My OSP contest entry: Thing-OSP (It never got a name) You multitask as you defend yourself from your husband, the king, using your magic wand, but watch out! To power the wand, you need to tap hearts on the bottom screen, AS you fend off your husband at the same time! Key: RERXNK8E
How to play
* Press A for easy mode, and B for hard mode
* (Upper screen) Press left and right on the d-pad to change the fire direction, and A to fire a spell.
* (Lower screen) Use the stylus to tap on the heart to power up your wand!
* If your husband or his clone gets you, you will die, if you don't tap on the heart fast enough, your wand will jam and you'll die.
In case I was not clear before. ROC6 is my final submission. No changes have been made (even though I have spotted a few things to squeeze from the program). I know I uploaded a folder with 7 programs so I just wanted to clarify before the official deadline.
My OSP contest entry: Thing-OSP (It never got a name) You multitask as you defend yourself from your husband, the king, using your magic wand, but watch out! To power the wand, you need to tap hearts on the bottom screen, AS you fend off your husband at the same time! How to play * Press A for easy mode, and B for hard mode * (Upper screen) Press left and right on the d-pad to change the fire direction, and A to fire a spell. * (Lower screen) Use the stylus to tap on the heart to power up your wand! * If your husband or his clone gets you, you will die, if you don't tap on the heart fast enough, your wand will jam and you'll die.
https://miiverse.nintendo.net/posts/AYMHAAADAAADV44MJOQUHQ
sorry again
good luck to all
EDIT: I uploaded my thing anyway (N3SNNPHF). For those who wanted to try my entry, and for those who think they could somehow compress it enough.