Add version string

pull/2/head
Andreas Gysin 2020-12-05 12:23:37 +01:00
rodzic 4f17b0fa4f
commit 67e88755a1
4 zmienionych plików z 15 dodań i 5 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
/**
FPS
Frames-per-second-counter class.
Can exist on mutliple instances of the runner because of inner state.
@module fps
@desc Frames-per-second-counter class.
@cathegory core
*/
export default class FPS {

Wyświetl plik

@ -0,0 +1,7 @@
/**
@module version.js
@desc Runner version string
@cathegory core
*/
export const VERSION = '1.0'

Wyświetl plik

@ -32,8 +32,8 @@ const numbers = [
488080430
]
const numX = 5 // number width
const numY = 6 // number height
const numX = 5 // number width
const numY = 6 // number height
const spacingX = 2 // spacing, after scale
const spacingY = 1

Wyświetl plik

@ -7,6 +7,9 @@ import { textRenderer } from './core/textrenderer.js'
import { canvasRenderer } from './core/canvasrenderer.js'
import FPS from './core/fps.js'
import storage from './core/storage.js'
import { VERSION } from './core/version.js'
console.log('Runner version: ' + VERSION)
// Default settings for the program runner.
// They can be overwritten by the parameters of the runner