Skip to content

koroshiya/python-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-calendar

Game transition calendar written in python.

The aim of this project is to provide a day to day calendar to show time transitions using basic animation.
By adding the relevant resources to a project, a developer can add the calendar's functionality to their own game.
eg. Someone writing a Ren'Py Visual Novel could easily integrate the resources in the renpy-atl folder, then call the required function to graphically express the transition from one day to the next between scenes/labels.

There are currently 2 supported engines: Ren'Py and PyGame.
The differences between the two are as follows.

The PyGame module includes support for:

  • repeating backgrounds
  • SVG graphics
  • multiple, non-standard resolutions
  • keystroke control to change days
You should also note that, in its current state, the PyGame module is more of a demo than a resource to be included directly into a project. It would need to be modified to work the same as the Ren'Py module.

The Ren'Py module is:
  • more portable
  • well-documented
  • more up to date (ie. contains more features & settings)
The main advantage of the Ren'Py game module is how simple it is to use.
Simply copy the included files into the main folder of the "game" folder of your project and follow the instructions in the documentation.

Also worthy of note is the fact that the code for the PyGame module is currently much cleaner, and has been tested far more, but isn't documented.

How to use

Ren'Py

Thorough instructions are included in the calendar.rpy file, but basically:
  • Copy the files from the renpy directory into your project's game folder
  • When you want to invoke the calendar for the first time, set the relevant variables.
    In old versions, these are: dayofweek, dayofmonth, month, direction and label_cont.
    In 6.99, there's just the one variable: calDate.
  • Call or Jump to "calendar", depending on the version used
and that's it. For a more in-depth explanation, as well as a list of the different settings available, please read the comments within the relevant calendar.rpy file.

PyGame

At this point in time, PyGame can't just be dragged and dropped into a project.
Instead, the PyGame module is currently a standalone demo.
Simply run the Start.py file and use the left and right arrows to back and forward between days. You can change the values in self.move(int) within moveLeft() and moveRight() to change how many days forward or backward keystrokes will take you.

Which Renpy calendar version to use


In general, you should use whatever version is the newest.
At the time of writing, renpy-6.99 is the most recent version, and is compatible with Renpy version 6.99 and later. If you are running an older version of Renpy, you should update and use this version.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published