jsonify / Calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Calculator

Calculator Demo

This is a simple calculator application built using the Godot game engine and GDScript. It provides basic arithmetic operations such as addition, subtraction, multiplication, and division, along with features like decimal input, number negation, and clearing. This project was built as a tutorial to help other Godot user get an introduction into using the UI container nodes that Godot has to offer.

You can view and follow along with the tutorial here.

Features

  • Addition, subtraction, multiplication, and division operations.
  • Decimal input support.
  • Negation of the current number.
  • Clearing the calculator state.
  • User-friendly interface.

Prerequisites

Installation

  1. Clone this repository to your local machine.

    git clone https://github.com/your-username/simple-calculator.git
    

Getting Started

  1. Open the project in Godot Engine.
  2. Run the project by clicking the "Play" button in the Godot editor.

Usage

  • Click on the calculator buttons to input numbers and perform operations.
  • Use the decimal button to input decimal points when needed.
  • Press the "Equal" button to calculate the result.
  • Use the "Negate" button to change the sign of the current number.
  • Press "Delete" to remove the last digit entered.
  • Click "Clear" to reset the calculator.

Contributing

Contributions are welcome! This is merely a simple calculator, but it could be a whole lot more. If you'd like to contribute to this project, please follow these steps:

  1. Fork the project.
  2. Create your feature branch: git checkout -b feature/your-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature/your-feature
  5. Submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Thanks to the Godot community for the fantastic game engine.

About


Languages

Language:GDScript 100.0%