LOADING VERSUSBANK...

JavaScript Required

This game requires JavaScript to run. Please enable JavaScript in your browser settings.

VersusBank - 16-bit Retro Web Game

A retro-style 16-bit web game built with vanilla TypeScript and Canvas API.

Features

Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/your-username/versusbank.org.git
cd versusbank.org

# Install dependencies
npm install

# Start development server
npm run dev

Open your browser and navigate to http://localhost:3000

Available Scripts

Testing

The project includes comprehensive testing infrastructure:

End-to-End Tests

Performance Tests

Running Tests

# Run all tests
npm test

# Run tests in headed mode (useful for debugging)
npm run test:headed

# Run specific test suites
npm run test:e2e
npm run test:performance

Cross-Platform Compatibility

The game is designed to work across all major platforms:

Screenshot Testing

Automated screenshot testing ensures visual consistency:

Development

Project Structure

src/
├── ts/           # TypeScript source code
├── js/           # Compiled JavaScript
└── typings/      # Type definitions

tests/
├── e2e/          # End-to-end tests
├── performance/  # Performance tests
└── utils/        # Test utilities

scripts/          # Build scripts
public/           # Static assets
docs/             # Built application

Code Quality

Performance

Deployment

The application builds to static files in the docs/ directory, ready for deployment to any static hosting service:

Deploy to GitHub Pages

# Build the application
npm run build

# Deploy to GitHub Pages (using gh-pages branch)
git add docs/
git commit -m "Update build"
git subtree push --prefix docs origin gh-pages

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run the test suite: npm run validate
  5. Submit a pull request

License

Unlicense - see the LICENSE file for details.

Acknowledgments