Skip to content

Ho11ow1/RenTale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RenTale

Status: Work In Progress Version: 1.0.0 License: MIT
Ren'Py
A type safe and utility full Ren'Py game template
Designed to streamline Visual Novel development and avoid runtime errors

Features

  • Object oriented design

    • Pure python classes for better type safety and structure
    • Enum based constants for type safe state management
    • Class methods for organized, reusable functionality
    • Singleton pattern support through class level methods
  • Type safety

    • Runtime type validation preventing invalid values at assignment
    • Strong typing enforcment on all custom elements
    • Type checking on construction on all elements
    • Clear Error exceptions names, error types, messages
  • Systems

    • ExtendedCharacter: A wrapper around Ren'Py's Character class with built-in relationship tracking and stats
    • FlagRef: A strongly typed flag wrapper that ensures type safety at runtime
  • Managers

    • FlagManager: Centralized flag management with type validation
    • TimeManager: Controls the day night cycle of the game
    • SceneManager: Wrapper for scene transitions with automatic UI cleanup

Docs

Code Style

This template uses a C# naming convention rather than PEP 8:

  • Classes: PascalCase (e.g., ExtendedCharacter, FlagManager)
  • Methods: PascalCase (e.g., Set(), Increment())
  • Public properties: PascalCase (e.g., Name, Friendship)
  • Private members: _camelCase (e.g., _character)
  • Files: PascalCase.rpy matching class names

This choice prioritizes:

  • Type safety and structure
  • Consistency with statically-typed languages
  • Clear visual distinction between elements

If you prefer traditional Python conventions (snake_case), feel free to adapt the template to your style.

Requirements

  • Ren'Py SDK version 8.0 or higher
  • Basic object oriented python knowledge (classes, methods, enums)
  • Minimal Ren'Py scripting knowledge

License

MIT License - see LICENSE

About

A type safe and utility full Ren'Py game template

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages