Skip to content

Major game update: Multiple crops, seasons, economy, and watering systems - #2

Draft
Origin0804 with Copilot wants to merge 5 commits into
mainfrom
copilot/update-game-features
Draft

Major game update: Multiple crops, seasons, economy, and watering systems#2
Origin0804 with Copilot wants to merge 5 commits into
mainfrom
copilot/update-game-features

Conversation

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Comprehensive feature expansion based on the roadmap in README. Adds core farming mechanics: crop variety, seasonal planting, economy loop, and growth acceleration via watering.

New Systems

  • 5 Crop Types: Wheat (spring), Tomato/Corn (summer), Pumpkin/Carrot (autumn) with distinct growth times, prices, colors
  • Season Cycle: 4-season rotation affecting which crops can be planted; background color reflects current season
  • Economy: Gold currency, buy seeds from shop (B key), sell products from inventory (Q key)
  • Watering: Watering can tool (R key) applies 1.5x growth speed boost
  • Inventory Stacking: Items now stack with count display

Player Improvements

  • Character direction changes based on movement
  • HUD showing gold, season/day, selected seed
  • TAB cycles through seed selection
  • Notification system for action feedback

Code Quality

  • ItemID constants replace magic numbers
  • Time constants extracted (SEASON_DURATION = 120 * 1000)
  • Fixed RGBA handling for transparent surfaces
  • Module-level imports to avoid circular dependencies
# Before: magic numbers
hoe = Item(1, "Hoe", ItemType.TOOL, ...)
has_hoe = player.has_item(1)

# After: named constants
hoe = Item(ItemID.HOE, "Hoe", ItemType.TOOL, ...)
has_hoe = player.has_item(ItemID.HOE)

Removed deprecated import pygame.py backup file.

Original prompt

全全按照你的想法来更新这个游戏


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits November 28, 2025 10:50
…d system

Co-authored-by: Origin0804 <189698804+Origin0804@users.noreply.github.com>
Co-authored-by: Origin0804 <189698804+Origin0804@users.noreply.github.com>
Co-authored-by: Origin0804 <189698804+Origin0804@users.noreply.github.com>
Co-authored-by: Origin0804 <189698804+Origin0804@users.noreply.github.com>
Copilot AI changed the title [WIP] Update game features based on new ideas Major game update: Multiple crops, seasons, economy, and watering systems Nov 28, 2025
Copilot AI requested a review from Origin0804 November 28, 2025 10:59
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