Skip to content
Example code from "Foundation HTML5 Animation with JavaScript" ported to C++ and SFML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_Template
ch02-02-event-demo
ch02-03-mouse-events
ch02-04-mouse-position
ch02-06-keyboard-events
ch02-07-key-codes
ch02-08-key-names
ch03-01-rotate-to-mouse
ch03-02-bobbing-1
ch03-03-bobbing-2
ch03-04-wave-1
ch03-05-pulse
ch03-06-random
ch03-07-wave-2
ch03-08-circle
ch03-09-oval
ch03-10-distance
ch03-11-mouse-distance
ch04-01-drawing-app
ch04-02-drawing-curves
ch04-03-curve-through-point
ch04-04-multi-curve-1
ch04-05-multi-curve-2
ch04-06-multi-curve-3
ch04-07-gradient-fill-1
ch04-08-gradient-fill-2
ch04-09-gradient-fill-radial
ch04-10-load-image
ch04-12-video-frames
ch04-13-invert-color
ch04-14-grayscale
ch04-15-pixel-move
ch04-16-spray-paint
ch05-01-velocity-1
ch05-02-velocity-2
ch05-03-velocity-angle
ch05-04-follow-mouse-1
ch05-05-rotational-velocity
ch05-06-acceleration-1
ch05-07-acceleration-2
ch05-08-acceleration-3
ch05-09-gravity
ch05-10-follow-mouse-2
ch05-11-ship-sim
ch06-01-removal
ch06-02-fountain
ch06-03-ship-sim-2
ch06-04-bouncing-1
ch06-05-bouncing-2
ch06-06-friction-1
ch06-07-friction-2
ch06-08-ship-sim-friction
ch07-01-mouse-events
ch07-03-mouse-move-drag
ch07-04-drag-and-move-1
ch07-05-drag-and-move-2
ch07-06-throwing
ch08-01-easing-1
ch08-02-easing-2
ch08-03-easing-off
ch08-04-ease-to-mouse
ch08-05-spring-1
ch08-06-spring-2
ch08-07-spring-3
ch08-08-spring-4
ch08-09-spring-5
ch08-10-chain
ch08-11-chain-array
ch08-12-multi-spring
ch08-13-offset-spring
ch08-14-double-spring
ch08-15-triple-spring
ch09-01-object-hit-test
ch09-02-boxes
ch09-03-point-hit-test
ch09-04-distance-1
ch09-05-distance-2
ch09-06-bubbles-1
ch09-07-bubbles-2
ch09-07-bubbles-3
ch10-01-rotate-1
ch10-02-rotate-2
ch10-03-rotate-3
ch10-04-angle-bounce
ch10-05-angle-bounce-opt
ch10-06-angle-bounce-rotate
ch10-07-angle-bounce-hit-test
ch10-08-angle-bounce-bounds
ch10-09-angle-bounce-final
ch10-10-multi-angle-bounce
ch11-01-billiard-1
ch11-02-billiard-2
ch11-03-billiard-3
ch11-04-billiard-4
ch11-05-multi-billiard-1
ch11-06-multi-billiard-2
ch12-01-gravity
ch12-02-gravity-bounce
ch12-03-gravity-random
ch12-04-orbit
ch12-05-orbit-draw
ch12-06-node-garden
ch12-07-node-garden-lines
ch12-08-nodes-mass
ch13-01-segment
ch13-02-single-segment
ch13-03-two-segments-1
ch13-04-two-segments-2
ch13-05-walking-1
ch13-06-walking-2
ch13-07-walking-3
ch13-08-walking-4
ch13-09-walking-5
ch13-10-real-walk
ch14-01-one-segment
ch14-02-one-segment-drag
ch14-03-two-segment-drag
ch14-04-multi-segment-drag
ch14-05-two-segment-reach
ch14-06-multi-segment-reach
ch14-07-play-ball
ch14-08-cosines-1
ch14-09-cosines-2
ch15-01-perspective-1
ch15-02-perspective-2
ch15-03-velocity-3d
ch15-04-bounce-3d
ch15-05-multi-bounce-3d
ch15-06-z-sort
ch15-07-bouncy-balls
ch15-08-trees-1
ch15-09-trees-2
ch15-10-easing-3d
ch15-11-spring-3d
ch15-12-rotate-y
ch15-13-rotate-xy
ch15-14-collision-3d
ch16-01-lines-3d-1
ch16-02-lines-3d-2
ch16-03-square-3d
ch16-04-spinning-e
ch16-05-filled-e
ch16-06-triangles
ch16-07-cube
ch16-08-pyramid
ch16-09-extruded-a
ch16-10-cylinder
ch16-11-move-cube-1
ch16-12-move-cube-2
ch17-01-extruded-a
ch17-02-extruded-a-depth
ch17-03-extruded-a-light
ch18-01-rotate-xy
ch18-02-matrix-rotate
ch18-03-skew-x
ch18-04-skew-xy
ch19-01-brownian-1
ch19-02-brownian-2
ch19-03-random-1
ch19-04-random-2
ch19-05-random-3
ch19-06-random-4
ch19-07-random-5
ch19-08-random-6
ch19-09-random-7
ch19-10-random-8
ch19-11-timer
ch19-12-time-based-1
ch19-13-time-based-2
ch19-14-time-based-3
ch19-15-same-mass
ch19-16-sound-events
shared-deps/SFML-2.4.2
.gitignore
CMakeLists.txt
LICENSE
README.md
pulpobot_BuildsRemover.bat
pulpobot_CMakeList_Replacer.bat
pulpobot_SFMLRemover.bat
pulpobot_TemplateAdder.bat

README.md

Sample code from https://github.com/lamberta/html5-animation ported to C++ and SFML.

State: In-Progress.

SFML Version: 2.4.2

Folder Structure:

  • chapter#-example#-examplename

    • CMakeList.txt
    • /deps: Any libraries required by the example (except for SFML)
    • /src: Source Code.
    • /res: stores any assets required by the example (e.g fonts or images).
    • /build: Precompiled Windows Executable x86 File.
  • shared-deps

    • /SFML-x.x.x: Current SFML Version being used by all the examples

Note 1: If you want to build any example, just run CMake on their own root folder.

Note 2: I have built all the examples on Windows with CMake; eventually will try to add Linux and OSx support, but I'll be more than happy to recieve any help with this in the meantime :)

Note 3: Example ch04-12-video-frames uses Visual Studio temporarily.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.