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.
- Addition, subtraction, multiplication, and division operations.
- Decimal input support.
- Negation of the current number.
- Clearing the calculator state.
- User-friendly interface.
- Install Godot Engine if you haven't already.
-
Clone this repository to your local machine.
git clone https://github.com/your-username/simple-calculator.git
- Open the project in Godot Engine.
- Run the project by clicking the "Play" button in the Godot editor.
- 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.
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:
- Fork the project.
- Create your feature branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature
- Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Thanks to the Godot community for the fantastic game engine.