Code Monkey home page Code Monkey logo

glider's Introduction

This repository contains a Javascript port of John Calhoun's excellent classic Mac game Glider 4.0. The original Pascal source files for this game can be found here: https://github.com/softdorothy/glider_4 The Javascript version is more or less a staight copy of the Pascal code. I have not bothered with the demo mode and have added some features such as a cheat mode with infinite lives etx and initial room selection. There will be some subtle differences caused by timing - the JS version relies on requestAnimationFrame for timing, whereas the Pascal version uses TickCount() and busy waiting in many places. Also, the Quickdraw and HTML5 Canvas primitives have some subtle differences at the edges. Houses from John Calhoun's repo can be selected. The Hands of house does not work as designed, probably because of timing differences which I have not bothered to track down. The original made extensive use of offscreen bitmaps for moving around things like balloons, toast, and fish. I tried to replicate this using an offscreen canvas, but it actually turned out to be slower than re-drawing the entire frame every time, especially in Safari, so I ended up doing this instead. The original makes extensive use of Pascal with statements for structure members. I have tried to specify member variables explicitly, but may have missed a few, resulting in inadvertent creation of global variables. I have also had some problems caused by assigning reference variables such as Rect rather than taking a copy. A few of these may remain.

glider's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

glider's Issues

Does your code have an MIT license?

Since the original code from SoftDorothy has an MIT license, I assume that your JS port also has an MIT license, but it isn't explicitly stated. Can you please add a license to your repo for clarity?

I am hoping to fork your code and make some improvements and then ultimately make the game playable on my website (for free). I would also gladly submit my improvements back to this repo, if desired.

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.