Skip to content

drhuffman12/example-opal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Based on

Starter Example Conway's Game of Life in Opal:

... This is a good start, but since (https://www.sitepoint.com/opal-ruby-browser-basics/) apparently didn't add a follow-up article for the actual game implementation, I added a "Custom Steps" section and will look into adding the actual implementation of the game.

Fix for Rakefile:

(RE-)Build

manually:
rake build
automatially (via Guard):
bundle exec guard

(Pressing will force a re-build.)

(RE-)Run

Open index.html in browser.

Tutorial Steps

Initial Setup & 'Sum of Cubes':

A simple Hello World via outputting a sum of cubes to the JS console.

See files under doc/example_steps/0_sum_of_cubes

Sum of Cubes

Drawing a Blank Grid

Grid lines to cover entire growser viewport.

See files under doc/example_steps/1_drawing_blank_grid

Drawing a Blank Grid

Adding Some Interactivity

Click a cell to fill or clear it.

See files under doc/example_steps/2_click_to_toggle

Drawing a Blank Grid

Custom Steps

Simple Drawing Pad

Click a cell to fill or clear it.

See files under doc/example_steps/3_draw_modes_and_colors

Simple Drawing Pad


See also:

About

Example Opal app based on https://www.sitepoint.com/opal-ruby-browser-basics/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages