JSPM

@noelspace/game-utilities

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q13032F
  • License ISC

Utilities for Javascript game

Package Exports

  • @noelspace/game-utilities
  • @noelspace/game-utilities/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@noelspace/game-utilities) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Game-Utilities

Utilities for Javascript game

Jeśli chcesz mieć funkcje Game-Utilities w swojim kodzie podązaj za krokami:

  1. Wejdź do katalogu w którym masz pliki

  2. Otwórz terminal w tym katalogu

  3. Napisz npm install @LenoYT/game-utilities (jeśli nie działa zainstaluj node z strony https://nodejs.org/)

Functions

background

Funckcja pozwala na stworzenie tła

Usage: game-utilities.background(ścieżka/do/obrazu_tła)

Funkcja ta wyszukuje w html'u div'a o id bg (div#bg)

background

Funckcja pozwala na skakanie czegokolwiek

Usage: game-utilities.jump(sprite, pixels)

Funkcja ta bierze sprite'a i przesuwa go do góry o ${pixels} pikseli