mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-16 12:53:38 +00:00
linting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// recreation of psn_client.cpp example from https://github.com/vyv/psn-cpp
|
||||
const dgram = require('dgram');
|
||||
const { Decoder } = require('../dist/cjs');
|
||||
const dgram = require('node:dgram');
|
||||
const { Decoder } = require('@jwetzell/posistagenet');
|
||||
|
||||
const client = dgram.createSocket('udp4');
|
||||
const decoder = new Decoder();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// recreation of psn_server.cpp example from https://github.com/vyv/psn-cpp
|
||||
const dgram = require('dgram');
|
||||
const { Encoder, Tracker } = require('../dist/cjs');
|
||||
const dgram = require('node:dgram');
|
||||
const { Encoder, Tracker } = require('@jwetzell/posistagenet');
|
||||
|
||||
const client = dgram.createSocket('udp4');
|
||||
const encoder = new Encoder('Test PSN Server', 2, 0);
|
||||
@@ -25,7 +25,7 @@ const distFromSun = [
|
||||
|
||||
let timestamp = 0;
|
||||
setInterval(() => {
|
||||
orbits.forEach((orbit, index) => {
|
||||
orbits.forEach((_, index) => {
|
||||
const a = 1.0 / orbits[index];
|
||||
const b = distFromSun[index];
|
||||
const x = timestamp;
|
||||
|
||||
Reference in New Issue
Block a user