Skip to content

Commit

Permalink
walking with a and d works now
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Aug 24, 2024
1 parent 8b297d8 commit 2fae20f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/send_system.asm
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ send_msg_input:
push_registers

packer_reset
send_msg MSG_SYSTEM_INPUT, 0, CHUNK_SYSTEM
pack_int [ack_game_tick]
pack_int [ack_game_tick] ; this is the pred tick lol
pack_int 40 ; size
pack_int 1 ; [input_direction]
pack_int [input_direction]
pack_int [input_target_x]
pack_int [input_target_y]
pack_int [input_jump]
Expand All @@ -43,8 +42,13 @@ send_msg_input:
pack_int [input_prev_weapon]
pack_int 0 ; what is ping correction ????

send_msg MSG_SYSTEM_INPUT, 0, CHUNK_SYSTEM

call send_packet


mov dword [input_direction], 0

pop_registers
ret

Expand Down
1 change: 0 additions & 1 deletion src/teeworlds_asmr.asm
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ gametick:
; main gameloop
nanosleep 100
call pump_network
; mov dword [input_direction], 0
call keypresses
jmp gametick

Expand Down

0 comments on commit 2fae20f

Please sign in to comment.