Giter Site home page Giter Site logo

cartrell / listviewdemo Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 22.75 MB

A demo on creating a list view with Phaser Editor v3 using User Components.

License: MIT License

Batchfile 0.03% HTML 0.01% JavaScript 96.18% TypeScript 3.78%
phaser-editor demo listview phaser

listviewdemo's Introduction

List View Demo

This is a demo project that features a list view. A list view, also known as a list box, is a user interface control that allows you to select one or more items (usually lines of text) from a vertically aligned list of "list items".

If you'd prefer to run the demo without using this repo, it's available here

There is also a corresponding article on my website here

You've likely used list views many times. They are often presented in the form of a drop-down combo box, where you click on a box of text, and a list of items appears underneath, allowing you select one of them. Today, we're focusing on the actual list itself. I decided to make a test app to develop the list view component. Have a look below; it's a short clip of the demo app I've created.

List view example

Software Needed

To use this project, you'll need the following:

  • Node.js
  • npm (Included in the Node installation)
  • Phaser Editor 2D v3 (You'll need a premium version if you want to full editing functionality)
  • A coding editor of your choice. VS Code was used on this project.
  • Texture Packer Optional, but if you want to make changes to the spritesheets, you'll need this.

Installation

Note: I'm using Windows 10 for development. Your environment may be different, and if so, you'll need to adjust these steps accordingly.

  • Clone this repo.
  • Open a command prompt and change to the repo's folder.
  • Run the bundle-assets batch file. This will copy all the assets to the .build folder.
  • Run npm run dev. This will start up a webpack dev server and run the list view demo.

Any time you modify the index.html file or anything in the assets folder (graphics, audio, json, etc.), run the bundle-assets batch to update the build folder.

That's pretty much it! Explore the list view demo and source, and feel free to play around with it.

- C. out.

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.