Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
The Danger Crew: Lessons Learned From Making a ...
Search
Drew Conley
August 26, 2016
210
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Danger Crew: Lessons Learned From Making a Video Game in React
React Rally 2016
Drew Conley
August 26, 2016
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Six Lessons from altMBA
skipperchong
29
4.5k
Google's AI Overviews - The New Search
badams
0
1.6k
Speed Design
sergeychernyshev
33
2.2k
From π to Pie charts
rasagy
1
400
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Tell your own story through comics
letsgokoyo
1
1.1k
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