Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Original bug: walking units lose the fraction of a movement unit at every step

Aperta
#301 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
game-dev

Direzione di ricerca

The payload names no source file, so first find where the per-step movement division and its remainder are computed in the movement code. Then decide which build the change targets: the 1:1 build keeps the loss as the private movement spec (section 3) describes, while the enhanced build carries the remainder into the next step. Check the spec before choosing. Done means a unit's pace matches its speed per second at a 67 ms step, with the chosen behaviour documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

original-bug

In the original, a moving unit covers speed times step divided by 1000 movement units per step, by whole-number division. The program keeps the remainder of that division, but clears it again at the start of the next move, so the fraction is lost at every step. Units therefore walk slower than their speed says, and their pace depends on the length of the steps (for example, at steps of 67 ms the slow and the medium guest rates give the same pace).

1:1 build: keep the loss (the private movement spec, section 3).
Enhanced build: carry the remainder from one step to the next, so that a unit covers exactly its speed per second whatever the steps.

Lingua principale
Rust
Stelle
0
Fork
0
Merge medio
2h 20m
PR unite (30g)
198

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RustyZoo/RustyZoo

Tutte le issue di RustyZoo/RustyZoo

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.