Command and Construct RTS game

Follow me as I make an open-development multiplayer real-time strategy (RTS) game with JavaScript coding in Construct!
0 comments
12 entries
Advertisement
AshleyScirra
February 22, 2023
RTS devlog #10: Following paths

In the last devlog I came up with a decent system for finding paths to a destination, producing a series of nodes for units to follow with path smoothing and spreading. An example of such a path, using the debug visualization of yellow squares for nodes joined by blue lines, is shown below.

A path f…
5,285 views
AshleyScirra
January 18, 2023
RTS devlog #9: Extreme pathfinding

It's been a few weeks since the last devlog. However I've spent a fair bit of time working on pathfinding and path following - and improving Construct along the way! This is a complex part of the project and will take multiple blog posts, so here I'm going to focus on just pathfinding. It gets tric…

7,065 views
AshleyScirra
December 23, 2022
RTS devlog #8: How to beat lag

It's time to deal with the bane of online multiplayer games: lag. Previously Command & Construct just displayed raw network updates - as soon as a message arrived it would update units accordingly. However with my low-bandwidth design on a (simulated) really terrible network, that ends up looki…

7,750 views
AshleyScirra
December 07, 2022
RTS round-up: Improving Construct through game development

I started this part-time RTS game development project back in September. This post is a round-up of the development so far, and also covers some of the improvements made to Construct along the way.

Goals

This project aims to highlight the impressive JavaScript coding capabilities of Construct, as the…

6,696 views
AshleyScirra
November 30, 2022
RTS devlog #7: Optimizing performance for 1000 units

In the previous devlog I focused on getting intense multiplayer combat with 1000 units to use just 50kb/s bandwidth. Now it's time to turn to the CPU performance! You can see the results now on the freshly updated CommandAndConstruct.com.

Extraordinary JavaScript performance

In my previous post I not…

7,998 views
AshleyScirra
November 16, 2022
RTS devlog #6: 1000 units bandwidth

After the last devlog I had the basic controls for scrolling and zooming a larger level. Mostly for a laugh, I threw in 1000 units and set up a huge battle. That's where things start to get interesting.

Performance

First of all I assumed performance would pretty much grind to a halt at this point, as…

6,267 views
AshleyScirra
November 07, 2022
RTS devlog #5: input and gestures

In the week or so since the last devlog I've mostly been working on mouse and touch input, as you can see from the commit history. The player can now drag a selection box to select multiple units, as well as scroll around a small level with both mouse and touch input.

Dragging a selection box to mas…
6,600 views
AshleyScirra
October 27, 2022
RTS devlog #4: Collision detection and combat

Since the last devlog I've been working to get to a minimally playable game. Units now have turrets, they can fire at each other, and get blown up when they take too much damage. If one player wins, it's game over! And it all works multiplayer online at CommandAndConstruct.com.

Unit combat, with mul…
9,236 views
AshleyScirra
October 20, 2022
RTS devblog #3: Minimal multiplayer milestone

You can now play a minimally multiplayer version of the RTS live online at CommandAndConstruct.com! It's an unoptimized export running on a cheap web host so it might take a moment to load. (I can improve that later - I'm just doing whatever is quickest to set up at this point.) However the multipl…

6,243 views
AshleyScirra
October 13, 2022
RTS devlog #2: Classes

Since the last blog I've added some very basic interactivity. You can click to select units, and click somewhere else to move the selected units there. They just move directly there in a straight line at the moment, but everything like pathfinding, crowd control and so on can come later down the li…

7,390 views
AshleyScirra
October 06, 2022
RTS devlog #1: Architecture

Since my first blog I've been putting together the overall architecture of the game. You can see some of the initial work in the commit log on GitHub. This can be slow going at the start: these initial decisions are very important and can end up very difficult to change later on. In this post I'll …

8,145 views
AshleyScirra
October 03, 2022
I'm going to make a multiplayer RTS game!

I'm going to make a game in Construct! This is going to be a bit of an experimental part-time project with the aims of showing how far Construct can go, providing a big example of JavaScript coding, "dogfooding" Construct (as I am also the lead Construct developer), and hopefully even ending up wit…

18,258 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
10 Followers
15 Entries
11 Followers
johnhattan
Programmer
1,277 Entries
48 Followers
ApochPiQ
Generalist
628 Entries
44 Followers
dgreen02
Generalist
338 Entries
56 Followers
Advertisement