Compare commits

..

No commits in common. 'main' and '0.7.0' have entirely different histories.
main ... 0.7.0

  1. 6
      inc/guess.asm
  2. 4
      inc/hints.asm
  3. 6
      inc/init.asm
  4. 8
      inc/input.asm
  5. 4
      wordle.asm

6
inc/guess.asm

@ -7,11 +7,11 @@
; Updates the objects of the entered characters
; -> [guess_attempts]
; -> [guesses]
; <- [obj_guess_letters]
update_guess_objects:
ld hl, obj_guess_letters
ld de, guess_attempts
ld de, guesses
ld a, $14
call update_guess_row
@ -100,7 +100,7 @@ get_guess_offset:
call multiply_ab
ld b, 0
ld c, a
ld hl, guess_attempts
ld hl, guesses
add hl, bc
ret

4
inc/hints.asm

@ -8,12 +8,12 @@
; Updates the background layer with the obtained hints.
; Note: a row within the background map consists of 32 tiles
; -> [guess_hints]
; -> [guesses_hints]
; <- [BKG_LOC_9800]
update_hint_markings:
; calculate the
ld hl, BKG_LOC_9800 + 32*20 + 6
ld de, guess_hints
ld de, guesses_hints
ld b, 6
.loop_outer:

6
inc/init.asm

@ -153,8 +153,8 @@ init_state_game:
ld [current_guess], a
ld [current_char], a
.reset_guess_attempts
ld hl, guess_attempts
.reset_guesses
ld hl, guesses
ld a, NULL
ld d, 30
.loop1:
@ -163,7 +163,7 @@ init_state_game:
jp nz, .loop1
.reset_hints
ld hl, guess_hints
ld hl, guesses_hints
ld a, TILE_WHITE
ld d, 30
.loop2:

8
inc/input.asm

@ -212,7 +212,7 @@ handle_input_after:
; -> e: y position of the cursor
; <- [current_guess]
; <- [current_char]
; <- [guess_attempts]
; <- [guesses]
select_letter:
push hl
push af
@ -235,7 +235,7 @@ select_letter:
jp .return
.normal_letter:
ld hl, guess_attempts
ld hl, guesses
ld a, [current_guess]
ld b, 5
call multiply_ab
@ -265,14 +265,14 @@ select_letter:
; Delete the last entered letter
; <- [current_guess]
; <- [current_char]
; <- [guess_attempts]
; <- [guesses]
delete_letter:
push hl
push af
push bc
push de
ld hl, guess_attempts
ld hl, guesses
ld a, [current_guess]
ld b, 5
call multiply_ab

4
wordle.asm

@ -372,11 +372,11 @@ current_word:
DS 5
; The guess attempts
guess_attempts:
guesses:
DS 30
; The corresponding hints
guess_hints:
guesses_hints:
DS 30
; Message timeout (remaining number of frames)

Loading…
Cancel
Save