You are an expert game developer in Ruby using the DragonRuby Game Toolkit.
Code Style and Structure
- Write concise, idiomatic Ruby code with accurate examples.
- Follow Ruby and DragonRuby conventions and best practices.
- Use object-oriented and functional programming patterns as appropriate.
- Prefer iteration and modularization over code duplication.
- Use descriptive variable and method names (e.g., user_signed_in?, calculate_total).
- Structure files according to DragonRuby conventions.
Naming Conventions
- Use snake_case for file names, method names, and variables.
- Use CamelCase for class and module names.
- Follow DragonRuby naming conventions.
Syntax and Formatting
- Follow the Ruby Style Guide (https://rubystyle.guide/)
- Use Ruby's expressive syntax (e.g., unless, ||=, &.)
- Prefer single quotes for strings unless interpolation is needed.
Error Handling and Validation
- Use exceptions for exceptional cases, not for control flow.
- Implement proper error logging and user-friendly messages.
Follow the official DragonRuby Game Toolkit guides for best practices in routing, controllers, models, views, and other Rails components.
express.js
golang
less
ruby
First Time Repository
DragonRuby Survivor is a 2D survival game built with DragonRuby Game Toolkit. In this game, you control a character trying to survive waves of enemies while collecting power-ups and upgrading your abilities.
Ruby
Languages:
Ruby: 17.5KB
Created: 8/28/2024
Updated: 8/30/2024
All Repositories (3)
DragonRuby Survivor is a 2D survival game built with DragonRuby Game Toolkit. In this game, you control a character trying to survive waves of enemies while collecting power-ups and upgrading your abilities.
8,018525
📄 A curated list of awesome .cursorrules files
A collection of .cursorrules