Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace HTTP urls with HTTPS where available, remove trailing trailing whitespaces #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
NetHack ported to the Web by Lu Wang

## [Play on Kongregate](http://www.kongregate.com/games/coolwanglu/browserhack)
## [Play on GitHub](http://coolwanglu.github.io/BrowserHack)
## [Play on GitHub](https://coolwanglu.github.io/BrowserHack)

### Screenshots
![Screenshot](https://raw.githubusercontent.com/coolwanglu/BrowserHack/master/screenshot.png)
![Screenshot2](https://raw.githubusercontent.com/coolwanglu/BrowserHack/master/screenshot2.png)
![Screenshot3](https://raw.githubusercontent.com/coolwanglu/BrowserHack/master/screenshot3.png)

Most porting stuffs go to `win/web/*` and `web/*`.
Most porting stuff goes to `win/web/*` and `web/*`.

To build the project, read and modify `build.sh` according to your environment, install dependencies, and use some good luck.

Expand All @@ -21,29 +21,29 @@ Need help for game testing, implementing more features and designing the interfa

### Tilesets
- `Default_32.png`
- The default tileset from vanilla NetHack
- http://nethackwiki.com/wiki/Default_tileset_scaled_to_32x32
- The default tileset from vanilla NetHack
- https://nethackwiki.com/wiki/Default_tileset_scaled_to_32x32
- `DawnHack_32.png`
- By DragonDePlatino
- Creative Commons Attribution 3.0 License
- http://dragondeplatino.deviantart.com/art/DawnHack-NetHack-3-4-3-UnNetHack-5-1-0-416312313
- https://dragondeplatino.deviantart.com/art/DawnHack-NetHack-3-4-3-UnNetHack-5-1-0-416312313
- `Absurd_32.png`
- By John Shaw
- http://nethackwiki.com/wiki/The_Absurd_NetHack_Tileset
- https://nethackwiki.com/wiki/The_Absurd_NetHack_Tileset
- `Nevanda_32.png`
- By Nevanda
- http://nevanda.deviantart.com/art/nethack-tiles-32x32px-416691316
- https://nevanda.deviantart.com/art/nethack-tiles-32x32px-416691316
- `Geoduck_40x24.png`
- By geoduck42
- http://geoduck42.deviantart.com/art/Geoduck-s-4-0-NetHack-Tiles-305559245
- https://geoduck42.deviantart.com/art/Geoduck-s-4-0-NetHack-Tiles-305559245
- `NethackModern_32.png`
- By Tower Hufham
- http://sourceforge.net/projects/nethackmodern/
- https://sourceforge.net/projects/nethackmodern/


### How to use number pad for movements?
Press `O` and set `number_pad` to 1. Make sure that NumLock is on.
You can make this permanent by setting it in options (the cog icon in the top-right corner), then reload the game.
You can make this permanent by setting it in options (the cog icon in the top-right corner), then reload the game.

### How to apply my tileset?
Run this in your browser console:
Expand All @@ -52,4 +52,4 @@ Run this in your browser console:
### Where is my favorite ASCII interface?
As a player of SuperZZT, yeah, I agree that ASCII is definitely important. But it might worth a separate port. Even if the characters are implemented as a special type of tilesets, you may not get the smooth input experience.

Checkout [nethack.alt.org (aka NAO)](http://alt.org/nethack/) where you can play the ASCII version online.
Checkout [nethack.alt.org (aka NAO)](https://alt.org/nethack/) where you can play the ASCII version online.
14 changes: 7 additions & 7 deletions web/browserhack.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

body,
#browserhack-loading {
/* http://philbit.com/svgpatterns/#crossstripes */
/* https://philiprogers.com/svgpatterns/#crossstripes */
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjNDAzYzNmIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDBMOCA4Wk04IDBMMCA4WiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiMxZTI5MmQiPjwvcGF0aD4KPC9zdmc+");
}

#browserhack-map-overlay,
.modal-content,
#browserhack-sidebar {
/* http://philbit.com/svgpatterns/#specklednoise */
/* https://philiprogers.com/svgpatterns/#specklednoise */
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCI+CjxmaWx0ZXIgaWQ9Im4iIHg9IjAiIHk9IjAiPgo8ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC43IiBudW1PY3RhdmVzPSIxMCIgc3RpdGNoVGlsZXM9InN0aXRjaCI+PC9mZVR1cmJ1bGVuY2U+CjwvZmlsdGVyPgo8cmVjdCB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgZmlsbD0iIzAwMCI+PC9yZWN0Pgo8cmVjdCB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjQiPjwvcmVjdD4KPC9zdmc+");
}

Expand All @@ -23,7 +23,7 @@ body {
.jumbotron a:link,
.jumbotron a:visited,
.footer a:link,
.footer a:visited {
.footer a:visited {
color: inherit;
outline: none;
}
Expand All @@ -35,7 +35,7 @@ body {
}

#browserhack-main {
border:1px solid;
border:1px solid;
padding:0;
width:800px;
height:600px;
Expand Down Expand Up @@ -94,7 +94,7 @@ body {
box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.025);
}

#browserhack-main.zoomed-out #browserhack-map-content {
#browserhack-main.zoomed-out #browserhack-map-content {
transform: scale(0.5);
}

Expand Down Expand Up @@ -390,7 +390,7 @@ body {
display: none;
}

.jumbotron {
.jumbotron {
padding-top: 32px;
padding-bottom: 16px;
margin-bottom: 0px;
Expand Down Expand Up @@ -489,7 +489,7 @@ a.list-group-item.group-header:hover {
outline: none;
}

.close,
.close,
.close:focus,
.close:hover {
/* solarized */
Expand Down
18 changes: 9 additions & 9 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<!-- vim: set sw=2 ts=2 et : -->
<!-- vim: set sw=2 ts=2 et : -->
<html>
<head>
<meta charset="utf-8">
Expand All @@ -20,7 +20,7 @@
<body>
<a href="https://github.com/coolwanglu/browserhack"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/c6286ade715e9bea433b4705870de482a654f78a/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f77686974655f6666666666662e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png"></a>
<div id="github-star">
<iframe src="http://ghbtns.com/github-btn.html?user=coolwanglu&repo=browserhack&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=coolwanglu&repo=browserhack&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
</div>
<div class="container">
<div class="jumbotron">
Expand Down Expand Up @@ -76,12 +76,12 @@ <h5>This may take a while for the first time.</h5>
<div id="browserhack-loading-progress-bar" class="progress-bar progress-bar-striped active" class="progress-bar" style="width: 0%;"></div>
</div>
</div>
</div>
<a target="_blank" href="http://www.kongregate.com/games/coolwanglu/browserhack"><img src="http://cdn1.kongcdn.com/images/sharedassets/badge_dev_220x25.png" width="220" height="25" alt="Kongregate Games logo" style="position:absolute;left:100.2%;bottom:100.2%;transform:rotate(90deg);transform-origin:0 100%;"></a>
</div>
<a target="_blank" href="http://www.kongregate.com/games/coolwanglu/browserhack"><img src="https://cdn1.kongcdn.com/images/sharedassets/badge_dev_220x25.png" width="220" height="25" alt="Kongregate Games logo" style="position:absolute;left:100.2%;bottom:100.2%;transform:rotate(90deg);transform-origin:0 100%;"></a>
</div>
<br/>
<div class="footer">
<p>© <a target="_blank" href="http://coolwanglu.github.io/">Lu Wang</a> 2015</p>
<p>© <a target="_blank" href="https://coolwanglu.github.io/">Lu Wang</a> 2015</p>
</div>
<!-- Preload images, use inline styles just in case the images are loaded before CSS -->
<div style="position:fixed;top:200%;left:200%">
Expand Down Expand Up @@ -125,13 +125,13 @@ <h5>This may take a while for the first time.</h5>
console.log(e);
}
},
print: function(text) {
print: function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
console.log(text);
console.log(text);
},
printErr: function(text) {
printErr: function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
console.error(text);
console.error(text);
}
};
})();
Expand Down
2 changes: 1 addition & 1 deletion web/nethackrc.default
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Changes will be applied after the game is reloaded (you can save & quit)
# To restore this file to default, clear everything and reload the game

# For a list of options, read http://nethackwiki.com/wiki/Options
# For a list of options, read https://nethackwiki.com/wiki/Options
# Note that not all the NetHack options are supported by BrowserHack

OPTIONS=number_pad:0, cmdassist, hilite_pet, !autopickup, autoquiver
Loading