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-1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

gamechanger-1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gamechanger-1.0.tar.gz
Algorithm Hash digest
SHA256 a37ce4c21dbbbbbc7c5e6f47254f73d619a740b47d8114680a722c435a6d0287
MD5 62430d6e0c35db271b590b2a79d0df2c
BLAKE2b-256 d88a1ecdfa9acf137231d8c84032c8a2984fc4242e58af5c814489f9d59ad8dc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gamechanger-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc6925239256b5a6ed10109700a30ea47c76926c08914aeb17475d92e375020a
MD5 69eb34960d4bbe42aa6e40d62f1ed750
BLAKE2b-256 f20962cc04ec9dcf536969dd51b938f558fdbad2217ab726e6301d7ce22fe0e4

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