Skip to content

carlwillimott/cavecrusader

Repository files navigation

Build Status Coverage Status

Cave Crusader

A simple canvas game that involves moving a character around the map in order to collect randomly generated stars.

Demo

Usage

        <canvas id="cc" width="525px" height="550px"></canvas>
        
        <script type="module">

            import CaveCrusader from "./script.js";

            const map = [
                '##########################',
                '##########################',
                '##                      ##',
                '##         @            ##',
                '##  ##  ##  ##  ##  ##  ##',
                '##  ##  ##  ##  ##  ##  ##',
                '##                      ##',
                '##                      ##',
                '##  ##  ##  ##  ##  ##  ##',
                '##  ##  ##  ##  ##  ##  ##',
                '##                      ##',
                '##                      ##',
                '##  ##  ##  ##  ##  ##  ##',
                '##  ##  ##  ##  ##  ##  ##',
                '##                      ##',
                '##                      ##',
                '##########################',
                '##########################',
            ];

            new CaveCrusader('cc', map);

        </script>

Example

Cave Crusader

About

Example canvas game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published