![]() ![]() Import React from 'react' function Car ( props ) export default Car We’ll delegate all of our game logic to a component called Game: ![]() The next stage is to design the game layout because this is React, we’ll start with App.js. However, at this stage, all you’ll need is a square box and a green screen. ![]() If you want to use the same assets as me then feel free to pull my repository. Now we have the application, we’ll need some game assets. We’ll start by creating a new React Application (see here for details): The GitHub repository for this post can be found here. I’m not going to try and emulate this exactly, I thought I’d use it as a basis to make a multi-player car game. If you have no idea what I’m talking about then there’s a demo of the game here. Essentially, it marks the peak of car game development, and everything has been down hill ever since. I’m guessing most people reading this are not going to be old enough to remember this. The game would look a little like a Spectrum game that I used to play called: Trans-Am. Since I started looking at React, I’ve wondered whether it would be possible to create a multi-user game. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |