07th-mod / 07th-mod/umineko-answer
Sprites (loaded with `lsp`) sometimes not cleared (with `csp`)
- Langage dominant
- Python
- Étoiles
- 29
- Forks
- 8
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Read this for some context on the lsp and csp functions:
- https://07th-mod.github.io/ponscripter-fork/#/?id=lsp-and-csp
- https://07th-mod.github.io/ponscripter-fork/api/#csp
- https://07th-mod.github.io/ponscripter-fork/api/#lsp
I found a case where an animation uses some sprites, but those sprites are never cleared, just moved off-screen. It may be a good idea to scan the script for such cases (`lsp` without corresponding `csp` or `csp -1`.
I don't think this actually causes a crash or any bad behavior in this case, though.
```basic
for %Free1 = 1 to 100
resettimer
msp 889,-8,16,-10
msp 888,-4,8,-10
msp 887,4,8,-10
msp 886,8,16,-10
waittimer 30
print 1
next
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Review the provided BASIC script snippet to understand the lsp and csp functions from the linked documentation. Look for patterns where sprites are loaded but not cleared. Examine the game's script files for similar instances, focusing on sprite management logic. Determine if a script scanner or linter can be implemented to detect these cases.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- game-dev
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100