Skip to content

Hanza-x2/Forge

Repository files navigation

Forge 🎮

Forge Logo

Welcome to Forge, a minimal 2D game framework designed for desktop applications, built using Go. Whether you are a seasoned game developer or just starting out, Forge provides the tools you need to create engaging 2D games with ease.

Table of Contents

Features 🌟

  • Cross-Platform: Run your games on multiple operating systems without modification.
  • Lightweight: Minimal overhead allows for smooth gameplay experiences.
  • Easy to Use: Simple API for quick development cycles.
  • Rich Documentation: Comprehensive guides and examples to help you get started.

Getting Started 🚀

To get started with Forge, visit our Releases section. Here, you can download the latest version of the framework. Follow the installation instructions to set it up on your machine.

Installation 🛠️

  1. Download the Latest Release: Visit our Releases page to find the latest version.
  2. Extract the Files: Unzip the downloaded file to your desired location.
  3. Set Up Your Environment: Make sure you have Go installed on your machine. You can download it from the official Go website.
  4. Run the Example: Navigate to the example folder and execute the example game to ensure everything is set up correctly.

Usage 📚

Using Forge is straightforward. Below is a simple example to get you started.

Basic Game Structure

package main

import (
    "github.com/Hanza-x2/Forge"
)

func main() {
    // Create a new game instance
    game := forge.NewGame("My First Game", 800, 600)

    // Add game logic here

    // Start the game loop
    game.Run()
}

Key Components

  • Game: The main structure that manages the game loop and state.
  • Scene: Represents different levels or screens in your game.
  • Sprite: Handles images and animations for game characters and objects.

Examples 🎨

We provide a range of examples to help you understand how to use Forge effectively. Check the examples directory in the repository for various game types:

  • Platformer: A simple side-scrolling platformer.
  • Top-Down Shooter: A basic shooter game with player movement and enemy AI.
  • Puzzle Game: A classic puzzle game to challenge your logic.

Contributing 🤝

We welcome contributions to Forge! If you would like to help, please follow these steps:

  1. Fork the Repository: Click the "Fork" button on the top right of this page.
  2. Create a Branch: Use a descriptive name for your branch.
  3. Make Your Changes: Implement your feature or fix.
  4. Submit a Pull Request: Describe your changes clearly in the pull request.

License 📄

Forge is licensed under the MIT License. See the LICENSE file for details.

Contact 📬

For any questions or feedback, feel free to reach out:

Thank you for choosing Forge! We look forward to seeing the amazing games you create with our framework. For updates and new releases, don't forget to check our Releases section. Happy coding!

Packages

No packages published

Contributors 2

  •  
  •  

Languages