1 of 25

Jorge Rubiano.

@ostjh

1

🇨🇴

2 of 25

Game Development with ReactJS, CSS, and React Three Fiber

2

3 of 25

Agenda.

  1. ReactJS.
  2. Types of games that I have developed with reactjs and css
    1. Puzzle Games
    2. Isometric Games
    3. Board Games
  3. ThreeJS - R3F
  4. Games with R3f
  5. Demo.

3

4 of 25

1. ReactJS

4

5 of 25

ReactJS

React is an open-source front-end JavaScript library for building user interfaces based on components. It is maintained by Meta and a community of individual developers and companies

With React it is possible to create encapsulated components that handle their own state, and turn them into complex user interfaces.

5

6 of 25

2. Types of games that I have developed with ReactJS and css

6

7 of 25

8 of 25

Puzzle Games

8

A puzzle game is a type of interactive entertainment that challenges players to solve various mental challenges, often involving logic, pattern recognition, and critical thinking. These games present players with puzzles or problems that need to be solved in order to progress.

9 of 25

Puzzle Games

9

10 of 25

Isometric Games

10

An isometric game is a type of video game that employs an isometric projection for its graphics, presenting a three-dimensional environment in a two-dimensional plane.

This perspective creates the illusion of depth and allows players to navigate and interact with the game world from a fixed, diagonal viewpoint.

11 of 25

Isometric Games

11

12 of 25

Board Games

12

A board game is a tabletop game typically played on a flat surface, often with a pre-designed board and pieces.

Board games offer the opportunity to engage in strategic gameplay, often involving dice rolls and card management.

13 of 25

Board Games

13

14 of 25

ThreeJS

14

15 of 25

ThreeJS

15

Three.js is a cross-browser JavaScript library and application programming interface (API) used to create and display animated 3D computer graphics in a web browser using WebGL

16 of 25

React Three Fiber

16

17 of 25

React Three Fiber

17

React Three Fiber is what is referred to as a React renderer. The concept behind a renderer is that we write code in JSX, and then the data is transformed into something else (in our case, a Three.js scene).

R3F was created by Paul Henschel, also known as 0xca0a:

Paul is the founder and manager of Poimandres (PMNDRS), a collective of open-source developers

18 of 25

4. Games with R3f

18

19 of 25

This site up

19

The world spins when you fall off the edge! And the boxes must be placed on the green tiles!

20 of 25

Color IT

20

Move the cube by swiping your finger (or using arrow keys on desktop). The cube has one side to color the blocks and another to turn them white. Color all the blocks to win!

21 of 25

5. DEMO - Bowling 🎳

21

22 of 25

Bowling R3F

22

23 of 25

Conclusions.

23

  • This kind of games can be developed using various libraries, not exclusively ReactJS.
  • Before diving into r3f, it's recommended to familiarize yourself with how ThreeJS works, as they share similar concepts.
  • R3F is emerging as a promising option for game development.

24 of 25

Resources.

24

25 of 25

Jorge Rubiano.

@ostjh

25

🇨🇴