Giter Site home page Giter Site logo

factorizebarrels's Introduction

Factorize Barrels (Fatorar Tambores)

en pt-br es

About

This 2D game is part of a experimental set of educational games built in godot engine using gdscript language. (like python)
Factorize a number hitting off barrels.
Based on the Udemy course by Daniel Ciolfi

NPM

Features

  • The game consists of a bird with a sledgehammer and a stack of barrels.
  • The bird has time to solve a random number to be factored by hitting the barrels.
  • Some barrels contain a prime number stamped in it to be chosen.
  • The external impact of the hammer just moves the pile down.
  • The internal impact (click) of the hammer points the respective prime number to become a factor in the factorization.
  • You can place the bird to the left or right of the barrels just by clicking on the respective side.
  • You win if you solve the factorization and you lose if you miss a number, get hit by a spear or run out of time.
  • Hitting increases the timer counter.
  • The speed at which the barrels fall down and the upper limit of the random number to be factored vary in six levels with increasing difficulties.
  • Small barrels are added above the time counter, showing what level you are at.
  • The sound can be turned off by the button in the upper left corner.

Layouts

A typical start page

  • The initial number to be factored is randonomicaly generated.
    initial page

If you get right the factorization of 34

  • For that you hit a barrel with number 2 and number 17
  • And you won!!!
    initial page

Another example, now you get right the factorization of 48

  • For that you hit a barrel with number 2 for 4 times and number 3 for once.
  • And you won again!!!
    initial page

Oh my god, you lost!!!

  • Number 19 is a prime number, you should expected it to be shown on a barrel.
  • 19 divided by 3 is not an integer number.
  • Good look next!
    initial page

Models

  • Godot embraces object-oriented design at its core with its flexible scene system and Node hierarchy.
  • Tree of nodes (node: smallest building blocks) that you group together into scenes.
  • Nodes communication each other by signals.
  • A Script in GDScript language is a class that extend (inherit) a node class or you can create a new original one class.

Tecnologies

Kick off

  • Download the engine and the game.
  • Start godot engine and import the engine.cfg in the root directory of the game.
  • Run in dev mode or compile (export) for android, ios, windows, linux, etc.

Author

Pedro Vitor Abreu

[email protected]

https://github.com/softpva

factorizebarrels's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.