MIT License

项目介绍

WispSnow/TinyFarm 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 63 个 Star、13 次 Fork。

仓库全名
WispSnow/TinyFarm
开源许可证
MIT License
Star 数
63
Fork 数
13
未关闭 Issue
1

README 摘要

English | 简体中文 TinyFarm TinyFarm is a cross-platform C++ farming game developed using Entt, SDL3, OpenGL, MiniAudio, Freetype, glm, ImGui, nlohmann-json, and Tiled. This project is an educational demonstration project and is the 5th part of the "C++ Game Development Journey" tutorial series. Controls Move: W/A/S/D or Arrow Keys ↑/←/↓/→ Attack/Use: Left Mouse Button or K Interact: F Toggle Character Light (night…

完整内容见 GitHub 原始 README 或本页 。

常见问题

TinyFarm 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 63 个 Star。

TinyFarm 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 TinyFarm 的源码?

可以直接克隆仓库:git clone https://github.com/WispSnow/TinyFarm.git,默认分支为 main;安装与运行步骤见仓库 README。

TinyFarm 最近还在维护吗?

仓库最近一次更新为 8月14日,当前有 1 个未关闭 Issue;Star 数为 63,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A farm game developed in C++ with SDL3, OpenGL, MiniAudio, Freetype, entt, imgui, glm, nlohmann-json and Tiled.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
89
价值分
41
活跃状态
活跃

语言占比

C
C++
CMake
GLSL

Release

贡献者

README

English | 简体中文

TinyFarm

TinyFarm is a cross-platform C++ farming game developed using Entt, SDL3, OpenGL, MiniAudio, Freetype, glm, ImGui, nlohmann-json, and Tiled.

This project is an educational demonstration project and is the 5th part of the “C++ Game Development Journey” tutorial series.

Controls

  • Move: W/A/S/D or Arrow Keys ↑/←/↓/→
  • Attack/Use: Left Mouse Button or K
  • Interact: F
  • Toggle Character Light (night only): L
  • Pause: P or Esc
  • Inventory: I
  • Hotbar: Tab
  • Hotbar Slot Selection: 1 ~ 0 (corresponding to slots 1~10)
  • Camera Zoom/Reset: Mouse Wheel/Middle Button
  • Game Layer Debug UI: F5 / `
  • Engine Layer Debug UI: F6/\

Web Demo

TinyFarm

Game Screenshots

Third-Party Libraries

Build Guide

Dependencies will be automatically downloaded via Git FetchContent, making the build process very simple:

git clone https://github.com/WispSnow/TinyFarm.git
cd TinyFarm
cmake -S . -B build
cmake --build build

Note: This project uses paid assets from farm-rpg. Due to copyright reasons, the repository does not include the original asset files, only image placeholders to ensure the program runs properly (sufficient for game development learning purposes).

If you want to achieve the effects shown in the demo project, you can purchase the asset pack and copy all contents to the assets/farm-rpg folder (overwriting the original files).

If you encounter problems downloading this project (especially in mainland China network environment), you can download the complete source code (including third-party libraries) from Baidu Netdisk for compilation.

The project source code version in the Netdisk may lag behind the GitHub repository. It is recommended to download this repository and then copy the third-party library source code (external folder contents) from the Netdisk to this repository for compilation.

Acknowledgements

Contact

For support or feedback, please use the Issues section of this repository. Your feedback is essential for improving this tutorial series!

Buy Me a Coffee

Buy Me A Coffee Support me on Afdian

QQ Group and My WeChat QR Code

评论

暂无评论