Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
Cursor ruleCẩn thậnReview & chất lượng codeCần cài đặt chút

godot-cursorrules

BlueBirdBack · BlueBirdBack/godot-cursorrules

Tệp .cursorrules này cung cấp các tiêu chuẩn mã hóa, mẫu kiến trúc và mẹo hiệu suất Godot 4.4 để Cursor AI tuân theo trong quá trình phát triển game.

Các quy tắc Cursor cho Godot 4.4: tiêu chuẩn mã hóa, mẫu kiến trúc và mẹo hiệu suất cho phát triển game có sự hỗ trợ của AI.

119 sao7Giấy phép: MITCập nhật 2 năm trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Đảm bảo tất cả mã Godot do AI tạo ra tuân thủ các tiêu chuẩn mã hóa dự án cụ thể.
  • Hướng dẫn Cursor AI triển khai các phương pháp hay nhất cho việc tổ chức scene và quản lý tài nguyên trong Godot.
  • Cải thiện chất lượng và tính nhất quán của mã trong quá trình phát triển game Godot có sự hỗ trợ của AI.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Hơn một năm không cập nhật.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Godot 4.4 Game Development .cursorrules for Cursor AI

This repository contains a .cursorrules file designed to enhance your Godot 4.4 game development experience when using Cursor AI.

What is a .cursorrules File?

A .cursorrules file allows you to customize the behavior of Cursor AI to follow specific conventions and best practices for your project. As explained in the Cursor documentation:

Using rules in Cursor you can control the behavior of the underlying model. You can think of it as instructions and/or a system prompt for LLMs.

While Cursor is moving toward a new system using .cursor/rules directory for project-specific rules, the .cursorrules file in your project root remains supported for backward compatibility.

How to Use This File

  1. Download the .cursorrules file from this repository
  2. Place it in the root directory of your Godot 4.4 project
  3. Cursor AI will automatically adjust its behavior to follow the Godot-specific guidelines when generating or editing code

What's Included

This .cursorrules file contains comprehensive guidelines for Godot 4.4 development, including:

  • Core development principles (strict typing, proper lifecycle implementation)
  • Code style standards
  • Naming conventions for files, classes, variables, and nodes
  • Scene organization best practices
  • Signal implementation guidelines
  • Resource management techniques
  • Performance optimization strategies
  • Error handling approaches
  • TileMap implementation for Godot 4.4

Note on Cursor Rules Evolution

According to the Cursor documentation:

For backward compatibility, you can still use a .cursorrules file in the root of your project. We will eventually remove .cursorrules in the future, so we recommend migrating to the new Project Rules system for better flexibility and control.

Consider migrating to the newer .cursor/rules directory system in the future as Cursor evolves.


This repository is not affiliated with Godot Engine or Cursor AI.

Xem mã nguồn trên GitHub