Skip to content

ThatBubbledGuy/UrsinaCustomSplashes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CUSTOM URSINA SPLASH SCREENS!

The custom ursina splash screen is a way to add your own splash screens with custom and customizable splash screens!

HOW TO INSTALL

To install this tool, you should clone this repository into your project folder. Then, remove the README.md file and then follow the tutorial. You can tweak things as you want.

HOW TO USE IT

How to use it:

 from customsplash import CustomSplash #import the library
from ursina import * #import ursina as usual
app = Ursina() #initalize ursina

'''basic usage'''
CustomSplash(overlay_color=color.black,logo_texture='image.png',delay_time=4,audio='audio.mp3',audio_volume=1)  #Copy until here

overlay_color is what color will the background and the fade out animation will be. You can only use ursina's pre-built colors or hsv's. There is no official support for other ways.

logo_texture is the image that will be displayed as the photo. Currently, gifs only display as a single image. Type in the RELATIVE path to the image in strings.

delay_time is how long will the screen will be in seconds. Please use integers.

audio is the sound that will be played immediately in the splash screen. You type the RELATIVE path to the audio.

audio_volume is the volume of the audio. It is between 1 to 0 in floats.

AUDIO HAS TO BE SEPERATE, GIFS DONT WORK FOR NOW, ALSO VIDEOS DONT WORK

You can tweak the values of it, When there is no texture or sound, it will skip

Now add, app.run() at the end.

app.run()#run ursina 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages