Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

How to Create a Basic City Builder Game in Unity

97.3K views
•
January 9, 2022
by
Blackthornprod
YouTube video player
How to Create a Basic City Builder Game in Unity

TL;DR

To create a basic city builder game in Unity, set up a grid system for building placement and manage resources with a game manager script. Players can click to place buildings, their gold is updated dynamically, and a custom cursor enhances gameplay experience.

Transcript

in this black thumb pro tutorial we will show you how to set up the basics of a city builder game using unity and c-sharp you'll learn how to place buildings on a grid-like map and have those buildings generate any resource you want so we have this very simple scene set up basically there's an empty game object called grid that holds a bunch of til... Read More

Key Insights

  • 👾 This tutorial provides a step-by-step guide on creating a basic city builder game in Unity, making it suitable for beginners in game development.
  • 😒 The use of C# scripts allows for efficient and organized management of game logic, such as resource tracking, building placement, and UI updates.
  • 👾 The demonstration of creating a custom cursor provides a more immersive experience for players, helping them visualize and interact with the game environment.
  • 👾 The grid-based system simplifies the placement and organization of buildings in the game, ensuring a structured and visually appealing city layout.
  • 👾 The tutorial's inclusion of on-click events and UI elements showcases how to incorporate user interactions and feedback into game development.
  • 👻 The ability to customize variables, such as building costs and resource generation, allows for flexibility in game design and balancing.
  • 👾 The tutorial encourages experimentation and creativity by inviting viewers to suggest tutorial topics and promoting engagement within the game development community.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the purpose of the "game manager" script in this tutorial?

The game manager script keeps track of the player's gold resource, updates the UI text to display the current gold amount, handles the purchase of buildings, and toggles the grid visibility.

Q: How does the custom cursor script work?

The custom cursor script ensures that the custom cursor sprite follows the mouse position on the screen, allowing the player to visualize the building they are about to place.

Q: How are buildings placed on the grid?

When the player clicks on a building to buy, the game manager script checks if there is enough gold to purchase it. If so, it decreases the gold amount, activates the grid, and sets the selected building as the custom cursor sprite. Placing the building is done by clicking on an unoccupied tile.

Q: How are resources generated in the game?

Each building has a "gold increase" variable and a "time between increases" variable. The game manager script increments the player's gold based on the gold increase value at regular intervals defined by the time between increases.

Key Insights:

  • This tutorial provides a step-by-step guide on creating a basic city builder game in Unity, making it suitable for beginners in game development.
  • The use of C# scripts allows for efficient and organized management of game logic, such as resource tracking, building placement, and UI updates.
  • The demonstration of creating a custom cursor provides a more immersive experience for players, helping them visualize and interact with the game environment.
  • The grid-based system simplifies the placement and organization of buildings in the game, ensuring a structured and visually appealing city layout.
  • The tutorial's inclusion of on-click events and UI elements showcases how to incorporate user interactions and feedback into game development.
  • The ability to customize variables, such as building costs and resource generation, allows for flexibility in game design and balancing.
  • The tutorial encourages experimentation and creativity by inviting viewers to suggest tutorial topics and promoting engagement within the game development community.
  • The consistent upload schedule for game development videos indicates the tutorial creator's commitment to sharing knowledge and fostering a supportive learning environment.

Summary & Key Takeaways

  • The tutorial explains how to set up a grid-like map for the city builder game, allowing players to place buildings on tiles.

  • It demonstrates how to track and update the player's gold resource using a game manager script and a UI text element.

  • The tutorial teaches how to create a custom cursor that follows the mouse position and changes based on the building selected by the player.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Blackthornprod 📚

Learn C# with these 9 LINES OF CODE - Unity Tutorial! thumbnail
Learn C# with these 9 LINES OF CODE - Unity Tutorial!
Blackthornprod
100 DEVS Make a GAME without COMMUNICATING! (51-75) thumbnail
100 DEVS Make a GAME without COMMUNICATING! (51-75)
Blackthornprod

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.