Git Product home page Git Product logo

test's Introduction

Gams

Online Preview

GitHub stars

GitHub forks

This repository contains a collection of offline games that can be played when you have limited or no internet connection. The games are tested to 100% work with Chromebook and Windows platforms, but it should work on most modern browsers. To get started, follow the instructions below:

Quick Start

  1. Click the green 'Code' button, and click 'Download Zip' in the dropdown. Or here: Download Zip
  2. Download the entire repository as a zip file.
  3. Extract the contents of the zip file.
  4. Copy all the extracted content and paste it into a new folder.
  5. Open the file named Gams.html located in the new folder.
  6. This will give you access to a wide range of games, including Flash games.

Credits

  • The offline Flash games utilize the Ruffle Flash Player emulator.
  • The clean and stylish user interface of the site is made possible by the new.css classless css library.

Features

The offline games repository offers the following features:

  • Opening games in an about blank page.
  • Customizable title and favicon settings.
  • Dark and light mode options.

Fun Game List

Here are some of the most fun games available in this repository:

  1. Cookie Clicker
  2. Slope
  3. Tube Jumpers
  4. Super Mario 64 ...and more!

For Coders :)

Making games available offline can be a challenging task due to security restrictions. When running games locally using the file:// protocol, fetching external resources is not allowed for security reasons. However, there is a workaround that enables loading JavaScript files locally.

To make the games in this repository playable offline, a method utilizing data URLs was employed. The game data is embedded directly into JavaScript files using data URLs. This approach allows the games to be self-contained within the page, eliminating the need for external resource fetching.

The JavaScript files in this repository contain the game data encoded as data URLs. When the page is loaded, these data URLs are converted to blob URLs using a conversion function. Blob URLs can be fetched locally since they are generated within the page itself.

By using this technique, the repository includes various games, including those built with Flash. The Flash games utilize the Ruffle Flash Player emulator, allowing them to be played offline without requiring an internet connection.

I that this approach provides an enjoyable offline gaming experience for coders and gamers alike.

Repository created by mountain658 this README, with the assistance of ChatGPT.

test's People

Contributors

mountain658 avatar breadcrumbsgames avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.