Skip to main content

A sample gamechanger library for gamification

Project description

Welcome to gamechanger!

This Python library empowers you to create engaging games with ease. It provides a foundation for building user interfaces, managing assets, and structuring your game logic.

What's Included:

  • UI Components: Classes like Button and Image facilitate creating interactive elements and displaying visuals.
  • Asset Management: The AssetManager class simplifies loading and accessing images and sounds within your game.
  • Game Window Management: The GameWindow class handles window creation, event loop, and basic rendering functionalities.

Getting Started:

  1. Installation:

  2. Import the library:

    from gamechanger import GameWindow, Button, Image, AssetManager
    
  3. Explore the Classes:

    • Refer to the documentation within each class for detailed information on available methods and properties.
  4. Build Your Game:

    • Use the provided classes as building blocks to create interactive user interfaces and manage game assets.
    • Develop your game logic and functionalities using the core functionalities of these classes.

Example Usage:

This ReadMe provides a basic example demonstrating the usage of gamechanger classes to create a simple game window with a button and an image:

from gamechanger import GameWindow, Button, Image, AssetManager

# Create a new game window
game_window = GameWindow("Student Game", 800, 600)

# Asset manager
asset_manager = AssetManager()
asset_manager.load_asset("player_image", "img.png")

# UI elements
button = Button(350, 250, 200, 50, "Click me!", lambda: print("Button clicked!"))
image = Image(100, 100, "player_image", asset_manager)

# Add elements to the game window
game_window.add_element(button)
game_window.add_element(image)

# Run the game loop
game_window.run()

Further Exploration:

Explore the provided classes and their functionalities to create more complex user interfaces and game mechanics. Consider extending these classes or adding your own functionalities to cater to your specific game development needs.

Contributing:

We welcome contributions to the gamechanger library! If you have improvements, new functionalities, or suggestions, feel free to create pull requests or raise issues on the repository.

License:

MIT License

Copyright (c) 2024 The Game Changer Company

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Happy Game Development!

This ReadMe incorporates the provided main.py content, explains the functionalities of the included classes, and offers suggestions for further exploration. Remember to replace placeholders like "img.png" with the actual path to your image asset.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gamechanger-0.9.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gamechanger-0.9-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file gamechanger-0.9.tar.gz.

File metadata

  • Download URL: gamechanger-0.9.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for gamechanger-0.9.tar.gz
Algorithm Hash digest
SHA256 37d5dcc908c8e49246fbddc91498ddc7d50a6f3fabc7c9d2397372c071e2fee8
MD5 6e6fddbe90d892df2a12f8281f9ced14
BLAKE2b-256 04c5747210cfe4cc19ca2734debf57ac488d1167bbeb6a2983df98704adfa27c

See more details on using hashes here.

File details

Details for the file gamechanger-0.9-py3-none-any.whl.

File metadata

  • Download URL: gamechanger-0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for gamechanger-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b5a171a7033efbd76a7a23a62ffc70e46b3acae17c62c8752edc966cd8c846e2
MD5 10b2971509c5933f6d4c901e4cd5bfc1
BLAKE2b-256 1eb0ffc65d3b5eb0667b86c9e95bc89dd5f9357105cf0b0c535b85cd276728ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page