获取代码
从这台服务器直连下载,不经过代理,速度约为走代理的 3~5 倍。
git clone https://www.romancohort.cloud/git/GalgameTemplate.git
仓库信息
- GitHub:RomanCohort/GalgameTemplate
- 默认分支:
master - 最后提交:2026-04-29 — Initial commit: Ren'Py visual novel template
- 主要语言:Ren'Py
- 文件数:12(3 个可在线查看)
- 镜像 commit:
973560ea5662
README
Galgame Template
A complete visual novel (Galgame) development template based on the Ren'Py engine.
Quick Start
- Install Ren'Py SDK
- Copy this template to Ren'Py's project directory
- Place your assets in the corresponding folders
- Edit
game/script.rpyto write your story - Run the game from Ren'Py Launcher
Directory Structure
GalgameTemplate/
├── game/
│ ├── script.rpy # Main story script
│ ├── options.rpy # Game configuration
│ ├── characters.rpy # Character definitions
│ ├── images.rpy # Background / CG / UI image definitions
│ ├── audio.rpy # BGM / SFX definitions
│ ├── gui.rpy # GUI styles and colors
│ ├── screens.rpy # UI screens (menu, save, settings, gallery)
│ ├── utils.rpy # Utility functions (affection, achievements, items)
│ ├── examples.rpy # Example scenes (confession, branching, flashback)
│ │
│ ├── images/
│ │ ├── bg/ # Background images (1920x1080)
│ │ ├── characters/ # Character sprites (PNG with transparency)
│ │ ├── cg/ # Event CG
│ │ └── ui/ # UI assets
│ │
│ ├── audio/
│ │ ├── bgm/ # Background music
│ │ ├── sfx/ # Sound effects
│ │ └── voice/ # Voice lines
│ │
│ ├── fonts/ # Font files
│ └── saves/ # Save data (auto-generated)
│
└── tl/ # Translation files
├── Chinese/
└── English/
Built-in Features
| Feature | Description |
|---|---|
| Affection System | Track好感度 for multiple characters |
| Achievement System | Unlock achievements with notifications |
| Item / Inventory System | Collect and use items |
| CG Gallery | Unlock and view event CG |
| Multi-ending Branching | Branching story based on affection points |
| Scene Transitions | Fade, dissolve, shake, flash effects |
| Character Animations | Enter/exit from left/right, bounce |
| Auto-save | Save at chapter transitions |
| Debug Tools | Variable inspector, label jump |
Ren'Py Syntax Cheat Sheet
# Characters
define e = Character("Eileen", color="#ffc8c8")
define m = Character("Me", color="#c8c8ff")
# Dialogue
e "Hello, welcome!"
m "Nice to meet you."
# Choices
menu:
"Go left":
jump left_path
"Go right":
jump right_path
# Images
scene bg room
show eileen happy at center
hide eileen
# Audio
play music "bgm/main.mp3" fadein 2.0
stop music fadeout 1.0
play sound "sfx/click.wav"
# Transitions
with fade
with dissolve
# Variables
default points = 0
$ points += 5
Asset Recommendations
- Backgrounds: 1920x1080, JPG format
- Character sprites: PNG with transparent background
- BGM: MP3 or OGG, loopable
- SFX: WAV or OGG
- Fonts: TTF/OTF, must support CJK characters
Free Asset Resources
- Maou Souls - Free Japanese BGM and SFX
- Bensound - Free music
- Freesound - Free SFX
- Google Noto Fonts - Free CJK fonts
Build & Release
- Open Ren'Py Launcher
- Click "Build Distributions"
- Select target platforms (PC / Mac / Linux / Android)
- Distribute the generated archive
License
This template is released under the MIT License. Ren'Py itself is licensed under the LGPL.