Skip to content

M5 Stick c plus 2 Javascript Interpreter Apps #1469

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

Merged
merged 1 commit into from
Jul 16, 2025
Merged

Conversation

sadecemsi
Copy link
Contributor

Proposed Changes

This pull request introduces two applications for the M5StickC Plus 2 platform:

  1. Arcade Games Suite: A collection of six classic arcade games:

    • Breakout: A brick-breaking game with progressive levels
    • Snake: Traditional snake navigation game
    • Space Shooter: Combat game against enemy spacecraft
    • Slots: Casino-style slot machine with betting mechanics
    • Flappy Bird: Obstacle navigation game
    • Blackjack: Card game implementation with betting system
  2. Calculator Application: A functional calculator featuring:

    • Four basic arithmetic operations (addition, subtraction, multiplication, division)
    • Positive/negative value toggling
    • Error handling for division by zero
    • Clear and backspace functionality

Both applications are designed for optimal control using M5StickC hardware buttons and operate efficiently on the device's JavaScript interpreter.

Types of Changes

  • New Features: Implementation of two complete applications
  • UI Enhancements: Interface design optimized for M5StickC Plus 2 display constraints
  • Performance Optimization: Code structured for efficiency on limited hardware resources

Verification

The applications can be verified through the following process:

  1. Loading both applications into the M5StickC Plus 2 JavaScript interpreter

  2. For the Arcade Games Suite:

    • Executing each game to verify functionality
    • Testing navigation between games and menu system
  3. For the Calculator:

    • Verifying correct results for standard arithmetic operations
    • Testing edge cases including large numbers and decimal calculations
  4. Confirming control responsiveness and performance stability

Testing

Both applications have undergone thorough testing on M5StickC Plus 2 hardware:

  • Complete gameplay sessions for each game to verify mechanics and stability
  • Systematic testing of calculator functions with various input sequences
  • Interface responsiveness evaluation across all features
  • Performance optimization through iterative code refinement

Testing was conducted manually across all application functions.

Linked Issues

None

User-Facing Change

Added two new applications for M5StickC Plus 2:
- Arcade Games Suite featuring six classic games (Breakout, Snake, Space Shooter, Slots, Flappy Bird, and Blackjack)
- Calculator application with standard arithmetic functionality

Both applications are designed for the JavaScript interpreter with intuitive button-based controls.

Further Comments

I intend to publish these applications on https://bruce.computer/store to expand the software offerings for M5StickC Plus 2 devices. The applications maintain consistent interface design principles for a cohesive user experience.

@pr3y pr3y merged commit 179885c into pr3y:main Jul 16, 2025
5 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.

2 participants