New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nodegamesjs

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

nodegamesjs - npm Package Compare versions

Comparing version
1.1.4
to
1.1.5
+1
-1
package.json
{
"name": "nodegamesjs",
"version": "1.1.4",
"version": "1.1.5",
"description": "Nodegames is a node.js game engine inspired by Pygame",

@@ -5,0 +5,0 @@ "main": "nodegames.js",

@@ -1,2 +0,2 @@

# Nodegames 1.1.4 by willmil11
# Nodegames 1.1.5 by willmil11
## Installation

@@ -302,8 +302,15 @@ 1. You will be required to have node.js and npm installed as well as having an internet connection.

To play a sound you can do the following:
```js
game.playSound(id)
//
//Syntax: game.playSound(id:string, loop:boolean/null, volume:int(0-100)/null)
//
//Examples:
game.playSound("My_sound") //Play sound with id "My_sound" once at volume 100%
game.playSound("My_sound", true) //Play sound with id "My_sound" in loop at volume 100%
game.playSound("My_sound", false) //Play sound with id "My_sound" once at volume 100%
game.playSound("My_sound", true, 50) //Play sound with id "My_sound" in loop at volume 50%
game.playSound("My_sound", false, 50) //Play sound with id "My_sound" once at volume 50%
```
This should begin playing the sound.
<br>
<br>
To stop a sound you can do the following:

@@ -391,2 +398,4 @@ ```js

## Changelog
### 1.1.5
- Edited readme and added a minor feature: before it was not shown that you can play a sound in loop. And the minor feature is that now you can choose the volume of a sound when playing it.
### 1.1.4

@@ -393,0 +402,0 @@ - Changed readme to indicate that nodegamesjs-forge is released and added a link to the npm page.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display