Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doublon de code sur la compensation de scroll dans les objets qui suivent la camera #20

Open
bhrousseau opened this issue Apr 8, 2023 · 0 comments

Comments

@bhrousseau
Copy link
Contributor

Les objets qui suivent la camera : vaisseau principal, armes, tirs, ... utilisent ce bout de code :
ldd glb_camera_x_pos
subd glb_camera_x_pos_old
beq >
addd x_pos,u
std x_pos,u
!

il faut créer une variable globale qui sera mise à jour après chaque appel à la routine Scroll dans le Main et qui stockera la valeur de la soustraction.

Dans le code des objets on fera un simple add sans faire aucun test. Ce sera bcp plus rapide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant