nodegamesjs
Advanced tools
+1
-1
| { | ||
| "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", |
+14
-5
@@ -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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
182166
1.89%1653
2.67%410
2.24%