New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sinix

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinix

[Letter to SLoP Contributors](https://github.com/sinix-dev/sinix/wiki/Letter-to-SLoP-Contributors)

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Sinix

Letter to SLoP Contributors

Build games for Sinix with Joystick support

Installation and Setup

$ npm install sinix --save

Add script in package.json

"scripts": {
  "sinix": "sinix",
}

Initialize a Sinix project

$ npm run sinix init

This will create sinix.config.js in the current directory. By default, sinix packages the content of dist/ directory, update the distDir value in sinix.config.js as per your project.

Communication Interface

You can use remote to listen for events happening on Joysticks

import { remote } from "sinix"

remote.listen("STICK1", (payload) => {
  console.log(payload)
  
  /*
  {
    "user": "nickname",
    "x": 35.09090909090909,
    "y": -48.36363636363637}
  }
  */
})

remote.listen("BUTTON", (payload) => {
  console.log(payload) // { "user": "nickname", "val": "A" }
  
  if(payload.val === "A"){
    // do something
  } else if(payload.val === "B"){
    // do something
  }
})

Build and Publish

Generates app.dext file in release folder, which you can open in Sinix or publish on Sinix.

$ npm run sinix build

It is also possible to publish directly from the command-line using following command.

$ npm run sinix publish

will prompt for token and password which can be retrieved from the account created on sinix.dev. The application will go live in under 24 hours on Sinix Store.

FAQs

Package last updated on 06 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc