Advertisement
Advertisement

More Related Content

Advertisement

Pacman Kata - Progressive F# Tutorials NYC 2013

  1. PACMAN KATA Progressive F# Tutorials NYC 2013 Brandewinder & Trelford
  2. PACMAN KATA Pacman finds himself in a grid filled with monsters. Will he be able to eat all the dots on the board before the monsters eat him? • pacman is on a grid filled with dots • pacman has a direction • pacman moves on each tick • user can rotate pacman • pacman eats dots
  3. SESSION OVERVIEW • Test Driven Pacman • Wrapping/Scoring • Cross Platform • .Net/Mono/JS • Game development 101 • Input/AI/Rendering • Tasks • Pacman has a direcation • Ghosts navigate maze
  4. TEST DRIVEN PACMAN Progressive F# Tutorials NYC 2013 Brandewinder & Trelford
  5. PACMAN WRAPS AROUND open NUnit.Framework [<Test>] let ``pacman should wrap from right to left`` () = // ... [<Test>] let ``pacman should wrap from left to right`` () = // ...
  6. PACMAN EATS STUFF Scenario: Pacman eats dots When pacman eats a pac-dot Then he scores 10 Scenario: Pacman eats power pellets When pacman eats a power pellet Then he scores 50 Scenario Outline: Pacman eats ghosts Given the ghosts are vulnerable When pacman eats <ghost> in succession Then he scores <points> Examples: | ghost | points | | 1 | 200 | | 2 | 400 | | 3 | 800 | | 4 | 1600 |
  7. CROSS PLATFORM F# Progressive F# Tutorials NYC 2013 Brandewinder & Trelford
  8. CROSS PLATFORM F# .Net • Windows • Windows Store • Windows Phone Mono • Mac • Linux • iOS • Android • Ouya • Playstation Vita JS • Chrome/IE • iOS • Android • Blackberry • Windows Phone • Windows Store
  9. APPS Path to Go | XBLA Pissed off Owls| iOS Pool | WebGL
  10. FRAMEWORKS FOR GAMES • .Net • WPF/Silverlight/WinRTXAML • .Net/Mono • XNA/MonoGameXNA • F# to JS Compilation • WebSharper/FunScriptHTML5
  11. GAME PROGRAMMING 101 Progressive F# Tutorials NYC 2013 Brandewinder & Trelford
  12. GAME LOOP User Input Logic Collision Detection Score Render
  13. GAME TASKS Progressive F# Tutorials NYC 2013 Brandewinder & Trelford
  14. TOO MUCH INPUT Event Sample
  15. EVERY WHICH WAY forward turn forward
  16. WHATEVER NEXT Progressive F# Tutorials NYC 2013 Brandewinder & Trelford
  17. MAKE GAMES Steps: 1. Enter game jams or join 1 game a month 2. Publish your indie game 3. Make $$$ 4. Go to 1
Advertisement