Giter Site home page Giter Site logo

devpet's Introduction

DevPet

PlatformIO CI

Design

flowchart TD
    subgraph graphical_elements[Graphical Elements]
    Node2D -.-> Rect
    Node2D -.-> ProgressBar
    Node2D -.-> SpriteAnimated
    Node2D -.-> SpriteBar
    Node2D -.-> SpriteStatic
    Node2D -.-> TextScrolling
    Node2D -.-> Text
    end

    graphical_elements --> DisplaySystem
    graphical_elements --> DevPetGraphics

    subgraph manager_classes[Manager Classes]
    DevPet --> DevPetGraphics
    DevPetGraphics --> DisplaySystem
    end

    subgraph input[Input]
    Button
    CommSystem
    end

    subgraph body[Body]
    loop
    end

    loop --> DevPet
    Button --> loop
    CommSystem <--> loop

    subgraph hardware[Hardware]
    SSD1306
    serial_port[Serial Port]
    end

    serial_port <--> CommSystem
    DisplaySystem --> SSD1306
Loading

Run the project

Install PlatformIO

The project depends on the PlatformIO toolkit.

You can either install the VSCode extension or the CLI

Build

platformio run

Upload on the ESP32

Make sure the ESP32 is connected to the computer and the USB port is accessible.

platformio run --target upload

devpet's People

Contributors

afcms avatar dependabot[bot] avatar

Stargazers

Klem avatar  avatar

Watchers

 avatar

devpet's Issues

Minigame

Add a cool minigame (I think based on Chrome's dino game)

  • Dino icon
  • Bug icon (enemy)
  • Jump system
  • Collisions
  • Enemy spawning system
  • Score at top

Fix `cpplint` issues

There are multiple warnings raised by cpplint in PlatformIO's project inspection.

These do not seem to cause any problems in the first place, but I guess it still makes sense to fix them.

"Notification" system

On the top 16px yellow bar there should be some kind of notification feed:

Usually empty, displays playing music if any. Push notification can replace it for a few seconds.

Composed of an icon at left, and two text zones, the first static the second scrolling.

`DisplaySystem` cleanup

  • Display should be initialized in the class constructor
  • Many methods can be removed now that the Node2D API is done
  • Add some documentation for methods

Dinosaur Sprites

@Klhmt

  • 48x48 pixels, with at least 1px margins on each side
  • Black on white background, black will light up on screen (inverted)
  • Base design
  • Anims (2-3 frames each)
    • IDLE (potentially different ones for health? not priority)
    • IDLE listening (maybe a headset or just music notes around?)
    • Dead
    • Wake up (when starting up the tamagotchi)
    • Drink coffee
    • Party (on notifications)
  • License infos
  • Credits to @Klhmt

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.