Git Product home page Git Product logo

hgktb's Introduction

hgktb

heaps ghetto komodo transaction blaster - html5 game and nodejs web socket server for really basic comms (like it's the 80s).

tl;dr;

  • git clone
  • cd nodejs
  • IMPORTANT change the send to address from RSitGaknVxZrJ5n6kqKAjSXhoezteGXnpA to one you own!!!!
  • change index.js AGAMAUSER and AGAMAPASSWORD to what is in your ~/.komodo/komodo.conf rpcuser and rpcpassword settings.
  • npm install
  • nodejs

Then browse to /kinvadors/index.html

  • space to shoot
  • arrows left and right
  • mobile has button onscreen

Notes

Fairly easy to abuse and requires some integration with firewalls, predefined transactions etc. to prevent abuse. Alternatively implement some JWT auth before loading.

Remote

  • Client side (game): Just change the game.js file connection from localhost to your ip address of installation.
  • Server side: change username/password and Asset Chain port number for rpc if not using KMD.

Shoot directly from Agama

Only use this to test.

In the nodejs file, change AGAMAUSER and AGAMAPASSWORD to what Agama uses for komodo-cli stuff.

  • go into the nodejs dir
  • npm install
  • node index.js This will start a web socket server listening on port 12345.

Can be run on a remote node. Further design required to stop abuse.

Go to the html kinvaders dir (browse from your local machine) and on connection it will get a game id from the web socket server. It could link to anything you really wanted to.

Have UTXOs ready because the server will call sendtoaddress with 0.005

  • Missles send 1
  • Frag send 1
  • Lose send 1
  • Win send 1

Change these to sendtomany or sendrawtransaction or other implementations adding whatever hooks you need, i.e. twitter, and email, or some other REST service.

hgktb's People

Contributors

imylomylo avatar

Watchers

 avatar

Forkers

ptyx11

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.