I am creating a game using Typescript, react and Styled-components. Help me build a map…
Jump to turn (23)
- 1I am creating a game using Typescript, react and Styled-components. Help me buil
- 2Each map tile can have multiple (in eamxaple 3) states, that changes on click on
- 3Tile state should be a string, not a number. It also should change the picture o
- 4Add prop "bilidng" to tile styled compoent
- 5Lets change it. Map tile shoud get currentType from localstorage when it will be
- 6Change handleClick function, so it gets current localStorage item when funciton
- 7Lets write another componet. It will be SVG buttons, and on click on each one of
- 8Create SVG paths for each icon
- 9write a switch that returns a color based on each resource ( water, energy, iron
- 10Creat a resources componets, that export incrementation function to the window,
- 11To increment function, add a string parameter and change value state from number
- 12inside return itearate over key of the value. Change the name of the value to En
- 13When map state is diffrent than idle, every second evoke increment function
- 14Put it outside of use effect, so it changes when currentBuilding is changing
- 15Now create a Prompt component, that shows a prompt at the bottom side of the scr
- 16Make prompt to disapear after you press a "finish" button, that is inside the pr
- 17Not the text, but the whole Prompt component. Use CSS hidden for that. Also, mak
- 18In the buildingsMenu, create a state (numOfAvalableBuildings) for each type (wat
- 19Inside of the return of this method, itearate through numOfAvalablebuildings. Re
- 20Container and Text is not defined
- 21Create new componet Called "RocketManager" At the top there is a timer set to 30
- 22Only launch the timer after the button is pressed. Disable other buttons when ti
- 23I provide Resources component. Iniside of it, change modifier from a number, to
- User
I am creating a game using Typescript, react and Styled-components. Help me build a map generator with specifed size (use 20x20 in example). Each map tile should be a saparate component
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.