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
Drew Conley
August 26, 2016
200
1
Share
The Danger Crew: Lessons Learned From Making a Video Game in React
React Rally 2016
Drew Conley
August 26, 2016
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
220
Build your cross-platform service in a week with App Engine
jlugia
234
18k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
210
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
How to train your dragon (web standard)
notwaldorf
97
6.6k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
260
BBQ
matthewcrist
89
10k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
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