GalgameTemplate

A complete Ren'Py visual novel (Galgame) development template with built-in systems for affection, achievements, items, CG gallery, and multi-ending branching.

获取代码

从这台服务器直连下载,不经过代理,速度约为走代理的 3~5 倍。

克隆(推荐,可增量更新)

git clone https://www.romancohort.cloud/git/GalgameTemplate.git

或者直接下载源码包(14 KB,master 分支当前快照)

下载 GalgameTemplate-973560ea.tar.gz

→ 在网页上浏览全部 12 个文件

仓库信息

README

Galgame Template

A complete visual novel (Galgame) development template based on the Ren'Py engine.

Quick Start

  1. Install Ren'Py SDK
  2. Copy this template to Ren'Py's project directory
  3. Place your assets in the corresponding folders
  4. Edit game/script.rpy to write your story
  5. 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

Build & Release

  1. Open Ren'Py Launcher
  2. Click "Build Distributions"
  3. Select target platforms (PC / Mac / Linux / Android)
  4. Distribute the generated archive

License

This template is released under the MIT License. Ren'Py itself is licensed under the LGPL.