Skip to content

Refonte totale#36

Merged
Linkatplug merged 1 commit intomainfrom
Refonte-Complète-V2
Feb 15, 2026

Hidden character warning

The head ref may contain hidden characters: "Refonte-Compl\u00e8te-V2"
Merged

Refonte totale#36
Linkatplug merged 1 commit intomainfrom
Refonte-Complète-V2

Conversation

@Linkatplug
Copy link
Owner

Refonte complète du moteur
Voir readme
Archtecture.MD

Refonte complète du moteur
Voir readme
Archtecture.MD
@Linkatplug Linkatplug closed this Feb 15, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aafa53a7d6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +25 to +28
player.vx = moveX * player.runtimeStats.speed;
player.vy = moveY * player.runtimeStats.speed;
player.x += player.vx;
player.y += player.vy;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Scale player translation with deltaTime

handlePlayerControls receives deltaTime from the game loop but updates player.x/y by raw per-frame velocity. This makes movement speed depend on frame rate (players on 120+ FPS move much faster than intended, while low-FPS players move slower), which directly changes game difficulty and control feel. Multiply displacement by deltaTime (or convert stats to frame units consistently) so movement remains time-based.

Useful? React with 👍 / 👎.

Comment on lines +14 to +16
p.x += p.vx;
p.y += p.vy;
p.distanceTraveled += Math.sqrt(p.vx * p.vx + p.vy * p.vy);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Scale projectile travel with deltaTime

updatePhysics takes deltaTime but projectile position and distanceTraveled are advanced by fixed per-frame amounts. As a result, projectile speed/range and hit timing vary by client FPS, causing balance regressions (high FPS yields faster, farther projectiles; low FPS does the opposite). Use deltaTime when applying velocity and traveled distance.

Useful? React with 👍 / 👎.

// 3. Couche ARMURE (Armor)
if (defense.armor > 0) {
const armorEfficiency = (packet.type === DamageType.KINETIC || packet.type === DamageType.EXPLOSIVE) ? 1.2 : 0.7;
remainingDamage *= (1 - stats.armorHardness);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor packet penetration in armor mitigation

The damage model defines DamagePacket.penetration and several attacks set non-zero values (for example sniper shots and tactical nova), but armor reduction always applies full stats.armorHardness and never reads packet.penetration. This means penetration-based tuning has no gameplay effect, so those attacks underperform against armor compared to their configured stats.

Useful? React with 👍 / 👎.

@Linkatplug Linkatplug reopened this Feb 15, 2026
@Linkatplug Linkatplug merged commit 92e795b into main Feb 15, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant