-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexis Huvier
committed
Apr 20, 2021
1 parent
e0ce7a8
commit e0a7572
Showing
12 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
AnimComponent | ||
============= | ||
|
||
This component add animations to game object. | ||
|
||
.. warning:: This component use the TransformComponent and it can't work without it. | ||
|
||
Editor | ||
------ | ||
|
||
In the editor, you can add, remove and manage animations but also change frames per seconds and the current playing animation. | ||
|
||
Script | ||
------ | ||
|
||
Variables | ||
^^^^^^^^^ | ||
|
||
- game_object: Object which own this component (GameObject) | ||
- engine: Utility class to control the game (Engine) | ||
- fps: Number of frames per seconds (int) | ||
- playing: Name of current animation (string) | ||
- anims: Dictionnary of animations (dict<string, AnimSprite/AnimSpriteSheet>) | ||
- current_sprite: Index of current displayed sprite (int) | ||
|
||
Functions | ||
^^^^^^^^^ | ||
|
||
No public function in this component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
MusicComponent | ||
============== | ||
|
||
This component add music to game object. | ||
|
||
Editor | ||
------ | ||
|
||
In the editor, you can change music by selection or drag and drop, volume, if is currently playing and if it loops. | ||
|
||
Script | ||
------ | ||
|
||
Variables | ||
^^^^^^^^^ | ||
|
||
- game_object: Object which own this component (GameObject) | ||
- engine: Utility class to control the game (Engine) | ||
- music: Current music (string) | ||
- volume: Current volume from 0 to 100 (integer) | ||
- play: True if is current playing (boolean) | ||
- loop: True if it loops (boolean) | ||
|
||
Functions | ||
^^^^^^^^^ | ||
|
||
No public function in this component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
SoundComponent | ||
============== | ||
|
||
This component add sounds to game object. | ||
|
||
Editor | ||
------ | ||
|
||
In the editor, you can change sound by selecting or drag and drop and volume. | ||
|
||
Script | ||
------ | ||
|
||
Variables | ||
^^^^^^^^^ | ||
|
||
- game_object: Object which own this component (GameObject) | ||
- engine: Utility class to control the game (Engine) | ||
- sound: Current sound (string) | ||
- volume: Current volume from 0 to 100 (integer) | ||
|
||
Functions | ||
^^^^^^^^^ | ||
|
||
- play(): Play the current sound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Settings | ||
======== | ||
|
||
There are two types of settings : Project and Engine Settings. | ||
|
||
Project | ||
------- | ||
|
||
- engine_version: Version of PyEngine4 | ||
- width: Width of window | ||
- height: Height of window | ||
- mainScene: Name of the main scene (will be the first played scene | ||
- numberMixerChannels: Number of audio channel for SoundComponent | ||
|
||
Engine | ||
------ | ||
|
||
- editor: Path of script editor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters