CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 00:48:10 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=c9860278955da2353088dcc9e8eea99532264d4b5aff07c607cbb338c190760ea%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22lYjTwsErKCkRVBgA_Ei1AYaB7Obmrusr%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ca59b09834b277-BLR
movePlayerUpOrScrollDown - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure movePlayerUpOrScrollDown();
- // player moving up
- begin
- if viewRowStart = mapStart then begin
- // at top of map so don't scroll screen down
- // and move normally
- player.yPos := player.yPos + player.yVel;
- Exit;
- end;
- if player.ty >= VIEW_THRESHOLD_T then begin
- // don't scroll yet, not high enough up the screen
- // move normally
- player.yPos := player.yPos + player.yVel;
- Exit;
- end;
- vic_waitForRaster(IRQ_BLANK_LINE);
- // change scroll reg by y-vel (max 2 per frame)
- Dec(scrollY,abs8(player.yVel.b1));
- if scrollY and 128 then begin
- // is negative so wrap around and do hardscroll
- scrollY := scrollY and 7;
- asm
- .for(var y = SCREEN_HEIGHT - 2; y >= VIEW_ROW_OFFSET; y--) {
- ldx #MAP_WIDTH-1
- !:
- lda SCREEN0_ADDRESS + (y + 0) * SCREEN_WIDTH,x
- sta SCREEN0_ADDRESS + (y + 1) * SCREEN_WIDTH,x
- lda COLOR_ADDRESS + (y + 0) * SCREEN_WIDTH,x
- sta COLOR_ADDRESS + (y + 1) * SCREEN_WIDTH,x
- dex
- bpl !-
- }
- end;
- // move view up in map
- Dec(viewRowStart);
- Dec(viewRowEnd);
- // fill top row with level data
- addressPntr1 := levelRowOffset[viewRowStart];
- addressPntr2 := screenRowOffset[VIEW_ROW_OFFSET];
- asm
- clc
- lda addressPntr2 + 0
- adc #<(COLOR_ADDRESS-SCREEN0_ADDRESS)
- sta addressPntr3 + 0
- lda addressPntr2 + 1
- adc #>(COLOR_ADDRESS-SCREEN0_ADDRESS)
- sta addressPntr3 + 1
- ldy #MAP_WIDTH-1
- !:
- lda (addressPntr1),y
- // store level char for color attrib later
- pha
- sta (addressPntr2),y
- // restore level char for color attrib
- pla
- tax
- lda charAttribs,x
- sta (addressPntr3),y
- dey
- bpl !-
- end;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
-
✅⭐ Make huge profits on trading ⭐⭐ 9
JavaScript | 7 sec ago | 0.24 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 12 sec ago | 0.10 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ U
JavaScript | 18 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ L
JavaScript | 46 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 8
JavaScript | 57 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ N
JavaScript | 1 min ago | 0.24 KB
-
# tk_text2physics.py
Python | 1 min ago | 4.48 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ W
JavaScript | 1 min ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand