Skip to content

Use AUTO constant instead of magic number in platformer example#1375

Merged
obiot merged 1 commit intomasterfrom
fix/platformer-auto-constant
Apr 11, 2026
Merged

Use AUTO constant instead of magic number in platformer example#1375
obiot merged 1 commit intomasterfrom
fix/platformer-auto-constant

Conversation

@obiot
Copy link
Copy Markdown
Member

@obiot obiot commented Apr 11, 2026

Replace renderer: 0 with renderer: AUTO in the platformer example for readability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 11, 2026 12:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the platformer example’s Application initialization to use the exported AUTO renderer constant instead of an inline numeric value, aiming to improve readability in the example configuration.

Changes:

  • Import AUTO from melonjs.
  • Replace renderer: 0 with renderer: AUTO in the platformer example.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@obiot obiot merged commit 4626735 into master Apr 11, 2026
10 checks passed
@obiot obiot deleted the fix/platformer-auto-constant branch April 11, 2026 12:41
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.

2 participants