Skip to content

Commit 1ff535d

Browse files
committed
WIP, minor changes
1 parent 8d84d30 commit 1ff535d

File tree

4 files changed

+31
-28
lines changed

4 files changed

+31
-28
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ Porting **Desolate** game from TI-83 Plus calculator to soviet computer [Vector-
33

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

6-
Porting status: work in progress, almost done.
6+
Porting status: released.
77

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

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

1119
## The original game
1220

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

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

desolcoda.asm

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ CHEAT_HEALTH_999 EQU 0
1313

1414
ORG $0280
1515
Start:
16-
ld sp,$B300
16+
ld sp,$B2E0
1717
;
1818
; Draw DESOLATE title sign on top of the screen
19-
ld hl,LF4B5 ; Decode from - Main menu screen
20-
ld bc,12*3 ; need only 3 tile lines
21-
call LADF5 ; Decode screen to LDBF5
19+
; LDBF5 buffer already pre-filled with 3 lines of the title screen with the big DESOLATE sign
20+
LD HL,LDBF5
2221
call LB177 ; Display screen from tiles with Tileset2
2322
call CopyTitleSign
2423
call ClearShadowScreen
@@ -650,9 +649,9 @@ GetRandom11_1:
650649
;----------------------------------------------------------------------------
651650
DesolateCodeEnd:
652651

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

657656
IF DesolateCodeEnd > ShadowScreen
658657
.ERROR DesolateCodeEnd overlaps ShadowScreen

desolcodb.asm

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3082,9 +3082,7 @@ MenuFromGame:
30823082
LBA3D:
30833083
LD A,(LDC55) ; get Menu background phase
30843084
INC A
3085-
CP $08
3086-
;TODO: Just AND $07
3087-
CALL Z,LBC2F
3085+
AND $07
30883086
LD (LDC55),A ; set Menu background phase
30893087
; DI
30903088
LD HL,LF515 ; Main menu screen moving background, 96 tiles
@@ -3110,6 +3108,8 @@ LBA3D:
31103108
JP Z,LBBCC
31113109
CP $01 ; Down key
31123110
JP Z,LBBDC
3111+
LD HL,Random16_seed1
3112+
INC (HL) ; Change random seed
31133113
jp LBA3D ; Return to main Menu
31143114
;
31153115
;NOTE: LBA81 routine moved close to LBC34
@@ -3336,11 +3336,6 @@ LBC29:
33363336
LD L,A
33373337
RET
33383338
;
3339-
LBC2F:
3340-
XOR A
3341-
LD (LDC55),A ; clear Menu background phase
3342-
RET
3343-
;
33443339
; Delay x40
33453340
LBA81:
33463341
CALL LBC34 ; Delay x20

desoldata.asm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -705,18 +705,18 @@ LDBF4: DEFB $00 ; Counter of achievements on the Stats screen
705705
;
706706
; Screen/room buffer, 12 * 8 = 96 bytes
707707
LDBF5:
708-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
709-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
710-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
711-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
712-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
713-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
714-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
715-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
716-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
717-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
718-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
719-
DEFB $00,$00,$00,$00,$00,$00,$00,$00
708+
DEFB $2E,$2F,$30,$31,$32,$33,$34,$35 ; Pre-filled with big DESOLATE sign
709+
DEFB $35,$36,$37,$38,$39,$3A,$3B,$3C
710+
DEFB $3D,$3E,$3F,$40,$41,$42,$43,$44
711+
DEFB $5F,$60,$61,$62,$63,$64,$46,$46
712+
DEFB $47,$48,$49,$4A,$01,$01,$01,$01
713+
DEFB $01,$01,$01,$01,$01,$01,$01,$01
714+
DEFB $01,$01,$01,$01,$01,$01,$01,$01
715+
DEFB $01,$01,$01,$01,$01,$01,$01,$01
716+
DEFB $01,$01,$01,$01,$01,$01,$01,$01
717+
DEFB $01,$01,$01,$01,$01,$01,$01,$01
718+
DEFB $01,$01,$01,$01,$01,$01,$01,$01
719+
DEFB $01,$01,$01,$01,$01,$01,$01,$01
720720
LDC55: DEFB $03 ; Menu background phase: $00..$07
721721
LDC56: DEFB $00 ; Offset in the room, in tiles ??
722722
LDC57: DEFB $00 ; Door Lock pos ?? $06 DEC

0 commit comments

Comments
 (0)