-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 Learning Character Animation Through SpriteSheet #33
Labels
Comments
SauravGitte
added
Points: 30
open-for-all
Any one can work on it without getting assigned, every PR can merge
labels
Dec 23, 2024
Its Open for all ! No need to claim . If you have any doubts you may ask in OPENCODE Discord Server |
Merged
This was referenced Dec 25, 2024
Closed
Merged
kavyan256
added a commit
to kavyan256/SwarmShot
that referenced
this issue
Dec 25, 2024
Issue: opencodeiiita#33 Added my favourite pet .
SauravGitte
changed the title
Learning Character Animation Through SpriteSheet
2 Learning Character Animation Through SpriteSheet
Dec 25, 2024
Merged
Merged
Merged
Merged
Merged
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Issue: Bring Life to SwarmShot: Pet Animation Integration
Prerequisites
Before starting, ensure you have the following set up:
NOTE: Paths and File Organization:
All file paths should be relative to the root directory (SwarmShot folder).
Ex. Use 'Sprites/Sprites_Player/Char_003.png' for the character sprite path.
Replace \ with / in file paths, as Python treats \ as an escape sequence. For example:
How to Run any File
We recommend running all files by keeping the root folder as the current directory (Swarmshot Folder ). Means , First Open the SwarmShot folder using V S Code . Using the left Explorer panel , Open the practice.py file in 📁Example_of_Game/Practice_Animation Folder . Run this practice.py file ( either by pressing run code button or typing following in the V S code terminal ).
You can see a character animated through a sprite sheet . We can clearly see that both moving and Idle animations are correctly established. Explanation is in comments (written at the top ) in practice.py file.
Task Details
Create a python file with following naming in the 📁Practice_Animation Folder (which lies in 📁Example_of_Game )
Roll_No_Name.py
OpenSource_GithubUserName.py
Use practice.py as the base code and build upon it . (Copy code from practice.py file into your python file )
Replace the Player Character with Favorite pet
Replace the current player sprite (
Char_003.png
) with a pet sprite from the repository and implement:Steps:
Sprites/Sprites_Pet/
folder in the repository. Select a pet sprite:PET_BlueBird.png
PET_Fox.png
PET_Racoon.png
Player
class to load your chosen pet sprite.Example:
Char_003.png
inpractice.py
.Resources :
Submission Guidelines
Roll_No_Name.py
OpenSource_GithubUserName.py
Tips
practice.py
file for detailed explanations and example code.The text was updated successfully, but these errors were encountered: