Code Monkey home page Code Monkey logo

example-artwall's Introduction

Example: Artwall

The Artwall (see artwall.unyt.org) is a collaborative art project for unyt.org trade shows and events.

The project is about creating a joint digital artwork with strangers.

In a transparent canvas each participant can color the pixels of a certain own area (30x30) with a 16-color palette.

The repository implements front-end rendering.

Installation

  1. Install the UIX command line tool following the Getting Started guide in our documentation.

  2. Clone this repository to your local machine:

    $ git clone https://github.com/unyt-org/example-artwall
  3. Run the project local

    $ uix -wlb --port 8000
  4. Navigate to your favourite web browser and open http://localhost:8000 to see everything in action.

Structure

This diagram outlines the UIX default project structure. We split our code base in back-end, front-end, and commons folder.

.
└── example-artwall/
    ├── backend/
    │   ├── .dx                 // Config file for deployment
    │   ├── Matrix.ts           // Artwall matrix storage
    │   ├── assets/             // Default assets
    │   └── entrypoint.tsx      // Back-end entrypoint
    ├── common/
    │   └── compoments/
    │       ├── res/            // Front-end assets
    │       ├── AreaHandler.ts  // Drawing area handler
    │       ├── Array2d.ts      // Custom DATEX type
    │       ├── DragTool.ts     // Drag tool class
    │       ├── DrawTool.ts     // Draw tool class
    │       ├── globals.ts      // Shared data class
    │       ├── map.dx          // Map file
    │       ├── Tool.ts         // Tool class
    │       ├── globals.ts      // Shared data class
    │       ├── GameView.scss   // Game style declaration
    │       ├── GameView.tsx    // Game component
    │       ├── Homepage.scss   // Homepage style declaration
    │       └── Homepage.tsx    // Homepage component
    ├── frontend/
    │   └── entrypoint.tsx      // Front-end entrypoint
    ├── app.dx                  // Endpoint config file
    └── deno.json               // Deno config file

Features

  • Multiplayer
  • Area handling
  • Artwall default images
  • Artwall persistent storage

Preview

Explanation

Concept of Pointers

In UIX, Pointers are a fundamental concept for managing shared data across different parts of your application. Pointers allow different components or endpoints to access and modify the same data. In the context of our game, a Pointer could represent the x,y and value of a pixel.

Pointers are synchronized over the Supranet, based on our powerful DATEX networking protocol that ensures real-time updates and consistency across endpoints. When one user draws a pixel, the changes are propagated to the other players through the Supranet, keeping the game state in sync.


© unyt 2023 • unyt.org

example-artwall's People

Contributors

jonasstrehle avatar

Stargazers

 avatar

example-artwall's Issues

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.