Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Danger Crew: Lessons Learned From Making a ...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Drew Conley
August 26, 2016
1
200
The Danger Crew: Lessons Learned From Making a Video Game in React
React Rally 2016
Drew Conley
August 26, 2016
Tweet
Share
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Paper Plane
katiecoart
PRO
0
46k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
120
Ethics towards AI in product and experience design
skipperchong
2
200
The SEO Collaboration Effect
kristinabergwall1
0
350
エンジニアに許された特別な時間の終わり
watany
106
230k
Color Theory Basics | Prateek | Gurzu
gurzu
0
200
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Speed Design
sergeychernyshev
33
1.5k
Transcript
LESSONS LEARNED FROM MAKING A VIDEO GAME IN REACT
DREW CONLEY Hello! I am
3 QUESTIONS
Chipotle
This game needs to be a “FULLY FEATURED” game, with
a deep experience and adventure The Vision
HESITATIONS • Big project. Complicated • Canvas? :/ • Deep
bugs in weird edge cases
TL;DR I was wrong.
Demo
THIS TALK IS ABOUT YOU MAKING GAMES
OVERWORLD
Maps are JSON { backgroundImage: ‘...’, walls: {...}, people: {...}
}
GRID
THE PLAYER CHARACTER <Person x={1} y={1}/>
<Person x={1} y={2}/> THE PLAYER CHARACTER
WALLS walls: {...}
jacob.svg
jacob.svg background-size background-position
jacob.svg animation: walkDown 0.4s steps(4)
None
SO LONELY :(
NPCs
overflow: visible
overflow: hidden
None
BATTLES
TURN BASED
3 STEP CYCLE 1. Players submit Actions 2. Actions are
processed by Rules -> new Game State is created 3. Players are notified of new Game State Repeat until winner is declared in new Game State
DEMONSTRATION rock, paper, scissors
State p1: { hp: 100} React Component p2: { hp:
90}
Actions are submitted p1 submits Action A p2 submits Action
B { damage: 30, accuracy: 80% } { damage: 20, accuracy: 99% }
State p1: { hp: 80} React Component p2: { hp:
90}
Rollout [ “Player A used Action A!”, “But it missed!!!”,
“Player B used Action B!”, “It did some damage!” ]
Rollout Rollout Message
It took a few tries…
It took a few tries…
It took a few tries…
Separate Application from Content
Application Consideration: What happens when a Character steps on an
icy spot?
Content Consideration: Where are the icy spots?
Benefits • Game state is perfectly recreatable • Saving/Loading •
Easy to iterate on levels design, puzzles storytelling
Demo
Go make a game!
[email protected]
thedangercrew.com @drewconley13