Shuk 2024-03-27 23:24 (Edited)
Yep I added credits so this won’t be taken down. You’re welcome.
(I added a bit more to make it cheesier and yes, I am so lazy I added just a new fresh look his official name is Shuuk now)
SC2 (Shuk’s Challenge #2) is now out!
Shuk 2024-03-27 23:28
I did this in 5 seconds probably the fastest time to “make” a programme. Try to beat me, I would like to see you try >:D
Shuk 2024-03-27 23:34 (Edited)
BAM new version now with Ctrl C + V Edit: I yanked it from the tutorial technically, making a functional programme. So if you say: “Um actually, you need to code it on your own.” I never ever said that I need to make my own code. But if you won’t budge, check out the first version.
McPepic 2024-03-27 23:45
OK, hear me out:
Vilua 2024-03-27 23:46
Are you challenging me?
Shuk 2024-03-27 23:47
McPepic, how long did it take?
McPepic 2024-03-27 23:55
I didn't keep track, but probably a few seconds. I only had to change a couple of lines. On a side note, what's going on with the profiles here? I see a blank username, which means you can't click to go to the programs and in the HTML it's showing two separate users: 1569 and 1546.
Shuk 2024-03-27 23:57 (Edited)
Oh wait I will change it because maybe the website has this bug. Edit: I think it’s because someone already claimed that site-breaking username.
McPepic 2024-03-28 00:00
Yeah, I don't know why the website's having trouble with this post, but the name of it won't show up in my notifications, either.
Shuk 2024-03-28 00:04
I think now you can see what Me did and my username the first two letters of my pet then, uk because most sites have .co.uk.
Timo 2024-03-28 09:09
What is the site-breaking username?? Empty?? Maybe I can easily fix it...
McPepic 2024-03-28 15:36
@Timo It seems to have been resolved by a username and post title change. My notifications from this post are also showing up correctly now, too.
Timo 2024-03-28 17:17
I mean how did the username and title look like before, when it was broken? I could maybe do a simple fix to prevent this in the future.
McPepic 2024-03-28 17:42
@Timo
There was no username displayed over the comment - just the text between the text from the comment between the two separating lines. The name also didn’t appear in notifications. The title showed up on the post, but not in notifications, so when @Shuk posted a comment on this, there was no text to click on for the username or the post in my notifications. The only way to go to @Shuk’s profile was to open up the HTML for the page and click on the link. The website seems to have recognized the username and title, but when it tried to retrieve the name of either, it received a blank string.
was8bit 2024-03-29 00:11
Remixed...
Shuk 2024-03-29 19:57
@was8bit how long that did that thing took ya?
Shuk 2024-03-29 20:02
Timo maybe if you add a massage saying “Sorry, must include letters.” When creating an account and hopefully, fix the bug.
was8bit 2024-03-30 03:36 (Edited)
Shuk, I just enjoy experimenting and remixing code is a fun thing to do… just to see what you can do …
Feel free to experiment and remix anything I have posted… and if you like your remixed version you can share it, just be sure to post it as a REMIX :)
SP4CEBAR 2024-04-03 13:29 (Edited)
This is just as short as the previous record (both have 166 characters excluding spaces), but it works nonetheless, I think I've had fun.
I=0
S=$FE00
G=$FF70
POKE G-80,1
POKE G+6,1
FILL S,2,50
DO
I=1-I
POKE I+S,PEEK(I+S)+PEEK($8010+(PEEK(G) AND 3))-1
ROR G,2
IF I=0 THEN WAIT 1
LOOP
#2:C
FFFFFFFFFFFFFFFF7F7F7FFFFEB686FE
01000201
Initialization:
Poke both backgrounds off
Poke the gamepad on
Fill sprite zero's position to a visible location on the screen
Loop:
"I" is inverted.
Set sprite zero's X or Y position to its current position plus the direction. The direction is the value given at the ROM location between $8010 and $8010 +3, this ROM value is decremented to make a direction of negative 1 possible. The value within the ROM location is determined by the lowest two bits of the gamepad 0 input register. By default, these are the up and down bits respectively. However, If I use ROR G,2, I can move the left and right bits to this location too.
Wait VBL is executed every second loop (because each loop handles one coordinate at a time).
Does anyone know a way to make this shorter?
SP4CEBAR 2024-04-03 13:47 (Edited)
I think I'm getting somewhere: one direction at a time, and it's one character shorter (excluding spaces)
I=0
D=1
S=$FE00
G=$FF70
POKE G-80,1
POKE G+6,1
FILL S,2,50
DO
D=-D
POKE I+S,PEEK(I+S)+D*(PEEK(G) AND 1)
ROR G,1
IF D=1 THEN
I=1-I
IF I THEN WAIT 1
END IF
LOOP
#2:C
FFFFFFFFFFFFFFFF7F7F7FFFFEB686FE
SP4CEBAR 2024-04-04 23:35 (Edited)
W=$8010
DO
A=PEEKW(W)+2^16
G=PEEKW(W+3)+2^16
POKE A,PEEK(A)+PEEK(W+2)*(PEEK(G) AND 1)
ROR G,1
W=PEEK(W+5)+$8010
IF W=$8028 THEN WAIT 1
LOOP
#2:C
FFFFFFFFFFFFFFFF7F7F7FFFFEB686FE
20FFFA008006
76FF0100800C
00FE50008012
01FE50008018
01FEFF70FF1E
01FE0170FF24
00FEFF70FF2A
00FE0170FF18
W holds the address in memory of the current instruction Each instruction has 4 parameters:
Location $8000 (the character image data) contains a byte with the data $FF, the code uses this as a dummy byte, to keep the bit shifter and the logical AND busy when they aren't needed without those operations modifying anything.
SP4CEBAR 2024-04-04 23:49 (Edited)
Still... this is shorter
POKE $FF20,1
GAMEPAD 1
FILL $FE00,2,80
DO
SPRITE 0,SPRITE.X(0)+LEFT(0)-RIGHT(0),SPRITE.Y(0)+UP(0)-DOWN(0),1
WAIT 1
LOOP
#2:C
FFFFFFFFFFFFFFFF7F7F7FFFFEB686FE
was8bit 2024-04-05 03:34
Wowzers!!!! \(oOo)/