Skip to content

Commit

Permalink
WIP, minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Feb 2, 2021
1 parent 8d84d30 commit 1ff535d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 28 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ Porting **Desolate** game from TI-83 Plus calculator to soviet computer [Vector-

Thanks a lot to [zx-pk.ru forum](https://zx-pk.ru/forums/55-vektor.html) members for all the help and support!

Porting status: work in progress, almost done.
Porting status: released.

![](screenshot/port-room1.png) ![](screenshot/port-inventory.png) ![](screenshot/port-doorlock.png)

Controls to use in the game:
- Movement: arrows
- Look/shoot: <kbd>УС</kbd>, <kbd>Space</kbd>
- Look/Shoot switch: <kbd>ТАБ</kbd>, <kbd>РУС/ЛАТ</kbd>
- Inventory: <kbd>I</kbd>, <kbd>M</kbd>
- Close all pop-ups (Escape): <kbd>АР2</kbd>, <kbd>ЗБ</kbd>, <kbd>ПС</kbd>
- Exit to Menu: <kbd>P</kbd>, <kbd>R</kbd>


## The original game

Expand Down Expand Up @@ -44,4 +52,5 @@ To run the game on Wabbitemu emulator:

- [Discussion on zx-pk.ru (in Russian)](https://zx-pk.ru/threads/32499-sovremennaya-razrabotka-pod-vektor.html)
- [Desolate port on ZX Spectrum](https://github.com/nzeemin/spectrum-desolate)
- [Desolate port on UKNC](https://github.com/nzeemin/uknc-desolate)

13 changes: 6 additions & 7 deletions desolcoda.asm
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ CHEAT_HEALTH_999 EQU 0

ORG $0280
Start:
ld sp,$B300
ld sp,$B2E0
;
; Draw DESOLATE title sign on top of the screen
ld hl,LF4B5 ; Decode from - Main menu screen
ld bc,12*3 ; need only 3 tile lines
call LADF5 ; Decode screen to LDBF5
; LDBF5 buffer already pre-filled with 3 lines of the title screen with the big DESOLATE sign
LD HL,LDBF5
call LB177 ; Display screen from tiles with Tileset2
call CopyTitleSign
call ClearShadowScreen
Expand Down Expand Up @@ -650,9 +649,9 @@ GetRandom11_1:
;----------------------------------------------------------------------------
DesolateCodeEnd:

; Shadow screen, 192 x 138 pixels
; 12*2*(64*2+10) = 3312 bytes
ShadowScreen EQU $B300
; Shadow screen, 192 x 140 pixels
; 12*2*(64*2+12) = 3360 bytes
ShadowScreen EQU $B2E0

IF DesolateCodeEnd > ShadowScreen
.ERROR DesolateCodeEnd overlaps ShadowScreen
Expand Down
11 changes: 3 additions & 8 deletions desolcodb.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3082,9 +3082,7 @@ MenuFromGame:
LBA3D:
LD A,(LDC55) ; get Menu background phase
INC A
CP $08
;TODO: Just AND $07
CALL Z,LBC2F
AND $07
LD (LDC55),A ; set Menu background phase
; DI
LD HL,LF515 ; Main menu screen moving background, 96 tiles
Expand All @@ -3110,6 +3108,8 @@ LBA3D:
JP Z,LBBCC
CP $01 ; Down key
JP Z,LBBDC
LD HL,Random16_seed1
INC (HL) ; Change random seed
jp LBA3D ; Return to main Menu
;
;NOTE: LBA81 routine moved close to LBC34
Expand Down Expand Up @@ -3336,11 +3336,6 @@ LBC29:
LD L,A
RET
;
LBC2F:
XOR A
LD (LDC55),A ; clear Menu background phase
RET
;
; Delay x40
LBA81:
CALL LBC34 ; Delay x20
Expand Down
24 changes: 12 additions & 12 deletions desoldata.asm
Original file line number Diff line number Diff line change
Expand Up @@ -705,18 +705,18 @@ LDBF4: DEFB $00 ; Counter of achievements on the Stats screen
;
; Screen/room buffer, 12 * 8 = 96 bytes
LDBF5:
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00
DEFB $2E,$2F,$30,$31,$32,$33,$34,$35 ; Pre-filled with big DESOLATE sign
DEFB $35,$36,$37,$38,$39,$3A,$3B,$3C
DEFB $3D,$3E,$3F,$40,$41,$42,$43,$44
DEFB $5F,$60,$61,$62,$63,$64,$46,$46
DEFB $47,$48,$49,$4A,$01,$01,$01,$01
DEFB $01,$01,$01,$01,$01,$01,$01,$01
DEFB $01,$01,$01,$01,$01,$01,$01,$01
DEFB $01,$01,$01,$01,$01,$01,$01,$01
DEFB $01,$01,$01,$01,$01,$01,$01,$01
DEFB $01,$01,$01,$01,$01,$01,$01,$01
DEFB $01,$01,$01,$01,$01,$01,$01,$01
DEFB $01,$01,$01,$01,$01,$01,$01,$01
LDC55: DEFB $03 ; Menu background phase: $00..$07
LDC56: DEFB $00 ; Offset in the room, in tiles ??
LDC57: DEFB $00 ; Door Lock pos ?? $06 DEC
Expand Down

0 comments on commit 1ff535d

Please sign in to comment.