-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83b2acc
commit 06f110f
Showing
5 changed files
with
78 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
*.DS_Store | ||
.DS_Store | ||
gen | ||
out | ||
bin | ||
*.iml | ||
*.ipr | ||
*.iws | ||
target | ||
tmp | ||
~apklib* | ||
gen-external-apklibs | ||
atlassian-ide-plugin.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,68 @@ | ||
# stg-game-engine | ||
HTML5 browser stg engine and editor, shmup, javascript, mythical wings, text based levels | ||
|
||
MORE TO COME | ||
## Keywords | ||
|
||
http://shmups.system11.org/viewtopic.php?f=9&t=56179&p=1159267 | ||
HTML5 browser STG engine and editor, shmup, javascript, mythical wings, text based levels. | ||
|
||
## Intro | ||
|
||
The goal was: | ||
|
||
* to have a simple way to create a vertical shmup using text based levels on any platform | ||
* offline play support, nearly no special setup required ! | ||
* learn some HTML5 and JavaScript along the way | ||
|
||
The engine is not fully done, but has a lot of interesting features | ||
|
||
## Canvas vs WebGL | ||
|
||
Uses either canvas or webgl, I recommend canvas for pixel based games. | ||
Also note that some browsers still have poor webgl support. | ||
|
||
## Forum discussions | ||
|
||
Discuss on forum: http://shmups.system11.org/viewtopic.php?f=9&t=56179&p=1159267 | ||
|
||
## Running it | ||
|
||
It DOES NOT require a server to run locally | ||
Just open the `index.html` in order to run it will usually not be enough due to browser security restrictions. | ||
|
||
### Chrome | ||
|
||
`google-chrome --allow-file-access-from-files` | ||
|
||
### Firefox | ||
|
||
Type `about:config` in the browser url bar | ||
Find `security.fileuri.strict_origin_policy` parameter | ||
Set it to `false` | ||
|
||
## Using a gamepad or joystick | ||
|
||
The gamepads work in Chrome 21 or higher. | ||
|
||
As of Firefox 24, the Gamepad API is available behind a preference. You can enable it by loading about:config and setting the dom.gamepad.enabled preference to true. | ||
|
||
Unix: The `dmesg` command (gives you info about the connected devices, for example the device identifier) | ||
|
||
Unix: `sudo xboxdrv --silent --device-by-id 044f:b326 --type xbox360 --trigger-as-zaxis` | ||
|
||
## Level editor | ||
|
||
The first 'p' character found from top to bottom will be used. | ||
Place 'p' character anywhere you want to start/test, but... | ||
If you want to test a section make sure you place the 'p' character one screen before the section in order | ||
to simulate the proper loading of this section, because otherwise the enemy behavior will be different as | ||
everything gets loaded at once on the start screen. | ||
|
||
Example: | ||
Instead of these bullets (not synchronized because progressively loaded line by line): | ||
x | ||
x | ||
x | ||
You may get (synchronized because all enemies loaded a once): | ||
x | ||
x | ||
x | ||
To fix let the player start somewhere before the section you want to test. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
-- USER MANUAL -- | ||
|
||
Troubleshooting: | ||
---------------- | ||
* For local/offline play in Chrome you need this command: | ||
|