https://github.com/housamz/f-this-website
An ~4KB game for your website.
https://github.com/housamz/f-this-website
game space-invaders website
Last synced: 3 months ago
JSON representation
An ~4KB game for your website.
- Host: GitHub
- URL: https://github.com/housamz/f-this-website
- Owner: housamz
- Created: 2022-02-01T21:58:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T15:26:07.000Z (over 3 years ago)
- Last Synced: 2025-03-13T07:35:27.801Z (7 months ago)
- Topics: game, space-invaders, website
- Language: SCSS
- Homepage: https://www.hmz.ie/
- Size: 979 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# F This Website
An ~4KB game for your website.

These space invaders are coming to F your website.
Every word they pass over will turn into a word of your choice until you shoot them.Visit [my website](https://www.hmz.ie/) for a demo.
### How to Play
Use right and left arrow keys to move, and up arrow key to shoot.### Installation
Add the files `f-this-website.min.js` and `f-this-website.min.css`to your HTML, and then you can start by clicking F2 on the keyboard.### Settings
Call the class from your JavaScript as below
```js
new FThisWebsite();
```*Optional params:*
* container: The HTMl element where the game can change text. default: `document.body`
* word: The word you want to replace the page text when space invader passes over. default: `fudge`
* speed: The movement speed. default: `25`Full example:
```js
new FThisWebsite(document.body, " fudge ", 25);
```