Git Product home page Git Product logo

ceramicgame's Introduction

CeramicGame

Trying out ceramic by making a small game

Running the Project

Without ceramic vscode extension:

ceramic clay run web --setup --assets

With vscode extension:

CTRL + Shift + B (CMD + Shift + B on Mac)

Debugging

From NotBilly's ceramic discord bot:

This setup comes configured to allow full sys access, adjust if needed

  1. make sure you have a global electron installation (npm install -g electron if you use npm)

  2. grab the following files: main.js and preload.js

    1. place the files in .../projectroot/project/web
  3. grab launch.json

    1. place it in your .../projectroot/.vscode folder
  4. at the bottom of the vscode window

    1. change the build task to clay / Build Web
    2. change from variant: Release to variant: Debug
  5. go to vscode's Run and Debug tab, select Electron: All from the dropdown

  6. press Start Debugging (F5), debugging controls will appear (play, pause, step into ecc)

  7. wait for all adapters to connect, it will take a little bit of time on the first launch. A dropdown list will appear beside the controls when completed

  8. when the dropdown list has appeared, select Electron: Renderer

  9. now when you hit your Restart debug shortcut or button it will just reload inside of the window, rather than relaunch the entire electron instance

  10. add this nice shortcut to vscode's keybindings (File > Preferences > Keyboard Shortcuts > Open Keyboard Shortcuts (JSON)) if you want

    {
        "key": "ctrl+shift+b",
        "when": "!inDebugMode",
        "command": "workbench.action.tasks.build"
    },
    {
        "key": "ctrl+shift+b",
        "when": "inDebugMode",
        "command": "workbench.action.debug.restart"
    },

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.