Giter Site home page Giter Site logo

guilhermebalog / imersao-gamedev Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 13.03 MB

🎮 Jogo desenvolvido com o p5.js durante a Imersão GameDev da Alura

Home Page: https://guilhermebalog.github.io/imersao-gamedev/

HTML 21.84% JavaScript 76.30% CSS 1.86%
p5js p5js-game javascript endless-runner html css alura game

imersao-gamedev's Introduction

Contributors Stargazers LinkedIn

Imersão Gamedev - Endless Runner

Jogo desenvolvido durante a Imersão GameDev da Alura

As aventuras de Hipsta

O projeto é feito utilizando a biblioteca p5.js. Essa biblioteca funciona com 2 funções principais: setup() e draw()

A função setup() executa uma vez antes do jogo começar, nessa função normalmente são iniciadas as variáveis e os assets são carregados.

Já a função draw() é o game loop, executa sempre, de acordo com o frameRate.

Algumas Anotações

Tipos de background

background(150) // escala de cinza
background(63, 224, 212) // r, g, b
background("#3fe0d4") // cor css, em hexadecimal ou rgb()

let imagem = loadImage('path/to/image')
background(imagem)

Tocar sons

som = loadSound('path/to/sound')

som.play() // Toca uma vez
som.loop() // Toca em loop

Créditos

Background por DigitalMoons

imersao-gamedev's People

Contributors

guilhermebalog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.