Giter Site home page Giter Site logo

camhardy.github.io's Introduction

CamHardy.github.io

To record a gif for the thumbnail:

Put this in the html header:

<script src="js/util/gif.js"></script>
<script src="js/util/renderGif.js"></script>

If using p5.js:

Put this at the bottom of setup() (optional argument num_frames_rendered will only render a set amount of frames, otherwise infinite until stopped):

setupGif(num_frames_rendered);

Put this at the bottom of draw():

drawGif();

Put this in keyPressed():

keyPressedGif();

Put startGif() and endGif() wherever appropriate to start and stop rendering, respectively. Alternatively use keyPressedGif() to toggle the recording on/off.

Status messages will be logged to the console. The finished gif will open in a new tab. Ad blockers are eager to kill it, consider turning them off. Sometimes the rendering step can be slow, just give it a moment.

TODO:

  • General
    • COMMENT YOUR CODE, DUDE
    • tidy up the website
      • add content to about.html, contact.html
      • adapt existing single-post.html/single-project.html templates to display sketches
      • remove any remaining links/css for parts of the template that I gutted
    • add functionality to renderGif.js for three.js and phaser.js
    • add little blurbs to each sketch to explain what they do, how to interact with them, why they're neato, etc.
    • add functionality to the prev/next sketch buttons
    • adding sound effects to some of these sketches might be cool (use p5.sound)
  • Snake
    • add score/gui
    • fix bug where food sometimes spawns under the tail of the snake
  • Space Invaders
    • fix bullet flickering
    • add enemy behavior
  • Maze Generator
    • add a third dimension to the mazes
    • integrate with OpenJSCAD to generate 3d-printable stl model of the maze

camhardy.github.io's People

Contributors

camhardy 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.