Новости сегодня на DirectAdvert

Новости сегодня от Adwile

Age of Empires developer confirms the game is mostly written in low-level Assembly code because 'we could scroll the screen and fill it with sprites as fast or faster' than competitors like Starcraft 'even though we had twice as many pixels'

Some of the greatest stories about games are simply about how developers made the thing work. Ask any developer for their favourite workarounds and you'll get a full evening's worth of entertainment about how a giant tram is actually an NPC with a hat on, or how rabbits are actually what makes Azeroth work, and so on.

This isn't quite on those lines, but a redditor recently noted that Chris Sawyer wrote Rollercoaster Tycoon 1 and 2 in Assembly language, and apparently Age of Empires was the same: "AoE is written in Assembly: is this actually TRUE?!" It's important to note that this wasn't uncommon back in the day, though it would still be pretty remarkable if an entire game was hard-coded this way. Assembly language, to be as brief as possible, is any low-level coding language that communicates more directly with a computer's architecture than high-level languages like C++.

The question about whether Age of Empires was coded in Assembly language hit gold in the replies thanks to Matt Pritchard, one of the founding members of Ensemble Studios, who's been the coding lead on the series from the very start.

"I guess I can clarify this, since I wrote all the assembly code used in Age of Empires and Age of Kings, along with many other parts of those games," says Pritchard. "There were about ~13,000 lines of x86 32-bit assembly code written in total."

Pritchard goes on to explain that the vast majority of this was in the "drawing core", which was compiled by Microsoft Macro Assembler 6.1 into a .obj file and in other cases Visual C++. In plain English, this was an extremely efficient way for the game to draw sprites, with Pritchard estimating it was around 10 times faster than standard C++ implementations.

"AoE's drawing core was notably faster than competitors like StarCraft, which is why the default resolution 'out of the box' for AoE was 800 by 600, when nearly all our competition was 640 x 480 resolution," says Pritchard. "We could scroll the screen and fill it with sprites as fast or faster even though we had twice as many pixels-ish in the game world area."

The Assembly code remained in use even by the time of Age of Kings: HD edition (a 32-bit game), but Pritchard "re-wrote the assembly functions into C++ for both Definitive Editions, as they are 64-bit programs and inline assembly was never supported by the 64-bit C++ compiler, and the vastly improved register sets and compiler optimizations made it unnecessary. Additionally, sprite drawing in the definitive editions is multi-threaded, and will use up to 4 cores for that task alone."

Part of why such a workaround was required is that both games were being developed at a time when standalone 3D cards were uncommon: "cutting edge was 2D with a separate 3D card like the Voodoo 1 & 2" says Pritchard. He goes into some detail on the technical restrictions of the time, noting that the Pentium 166 CPU in the machines most Ensemble developers were using "had 16K of cache... TOTAL." Or to put it in plainer terms, "You are probably working right now on a PC with more on-CPU Cache Memory than the PC I developed AoE on had in TOTAL." 

Pritchard's had quite the career but clearly has real affinity for Age of Empires, and mentions how the HD edition (not to be confused with the Definitive Edition) came about. "The HD edition came about after I had been knocking on doors at Microsoft for a few years trying to get someone interested, and the contract with Hidden Path (where I was at the time, working on CS:GO for my previous employer Valve) was rather small," says Pritchard.

"Microsoft did not think there was much interest in an all digital download version of a 2D game from the 1990s (the CD-ROM version of the original game was still on store shelves just a year or two prior). HD was done by a great team at HPE on a tiny budget (~5 people, ~ little less than a year), so changes were kept to the realm of 'absolutely necessary' rather than the more aspirational Definitive Editions."

There's also some amusing detail on the various console ports of the games. "Ensemble had nothing to do with the PS2 port," says Pritchard. "Microsoft negotiated the deal by themselves and gave them a code and asset drop on CD and said 'have at it'. Almost the same for the Dreamcast port, though for that one I did spend an hour drawing on a whiteboard and trying to explain graphics details to a Konami engineer who spoke no English while I spoke no Japanese."

Pritchard finishes up by saying, "I am very fortunate to have gotten to play an outsized role in those games from the very beginning and creation in 1996 to being the driving force behind the revival in 2010-11 to modern day, finishing my own journey with it once DE was released in 2019.

"I am both very fortunate to have been part of its creation and humbled to this day at all the enjoyment and more that it has brought to people. I would never have had the great career in game development that I had without all of the fans and supporters of those games."

Читайте на 123ru.net

Другие проекты от 123ru.net



Архангельск

Беспроводной сканер штрих-кодов SAOTRON P05i промышленного класса



Жизнь

Желдорреммаш определил лучших работников локомотиворемонтных заводов 2024 года






Новости 24 часа

Можно ли перевестись из одной автошколы в другую в процессе обучения?



Game News

Мультиплеерный данжен-кроулер Greedy Wizards: Speed Dungeon вышел в новой стране на iOS и Android



Москва

В Москве ежегодно состоялся юбилейный, всероссийский, патриотический гала-концерт «Проза и поэзия» «Россия - семья семей»



News Every Day

Marin schools proactive on state cellphone restrictions



Настроение

Колымская красненькая...



Москва

Пассажирские самолёты с русскими пригрозили расстрелять прямо в небе: Кто мог слить секретную частоту - версии и факты



Песня

Продвижение Музыки. Раскрутка Музыки. Продвижение Песни. Раскрутка Песни.



Москва

Алексей Оверчук заявил о слаженности сотрудничества России и Белоруссии



Хуберт Хуркач

Хуркач пожертвует по €100 за каждый эйс пострадавшим от наводнения



Москва

Подведены итоги конкурса «Мы верим твердо в героев спорта»



Игорь Ларионов

Легенда мирового хоккея Игорь Ларионов - амбассадор бренда "Лошадиная сила"



Симферополь

МВД: полиция в Симферополе задержала пенсионерку по подозрению в убийстве детей



Москва

Подведены итоги конкурса «Мы верим твердо в героев спорта»



Москва

«В ближайшие регионы»: Собянин анонсировал продление МЦД до четырёх областей



Москва

Подведены итоги конкурса «Мы верим твердо в героев спорта»



103news.com — быстрее, чем Я..., самые свежие и актуальные новости Вашего города — каждый день, каждый час с ежеминутным обновлением! Мгновенная публикация на языке оригинала, без модерации и без купюр в разделе Пользователи сайта 103news.com.

Как добавить свои новости в наши трансляции? Очень просто. Достаточно отправить заявку на наш электронный адрес mail@29ru.net с указанием адреса Вашей ленты новостей в формате RSS или подать заявку на включение Вашего сайта в наш каталог через форму. После модерации заявки в течении 24 часов Ваша лента новостей начнёт транслироваться в разделе Вашего города. Все новости в нашей ленте новостей отсортированы поминутно по времени публикации, которое указано напротив каждой новости справа также как и прямая ссылка на источник информации. Если у Вас есть интересные фото Вашего города или других населённых пунктов Вашего региона мы также готовы опубликовать их в разделе Вашего города в нашем каталоге региональных сайтов, который на сегодняшний день является самым большим региональным ресурсом, охватывающим все города не только России и Украины, но ещё и Белоруссии и Абхазии. Прислать фото можно здесь. Оперативно разместить свою новость в Вашем городе можно самостоятельно через форму.

Другие популярные новости дня сегодня


Новости 24/7 Все города России





Топ 10 новостей последнего часа




Новости России

В Москве ежегодно состоялся юбилейный, всероссийский, патриотический гала-концерт «Проза и поэзия» «Россия - семья семей»

Можно ли перевестись из одной автошколы в другую в процессе обучения?

Адвокат Блиновской заявила, что блогер обжаловала свой арест

Можно ли перевестись из одной автошколы в другую в процессе обучения?


Москва

В Москве ежегодно состоялся юбилейный, всероссийский, патриотический гала-концерт «Проза и поэзия» «Россия - семья семей»






Rss.plus

Можно ли перевестись из одной автошколы в другую в процессе обучения?

В Москве ежегодно состоялся юбилейный, всероссийский, патриотический гала-концерт «Проза и поэзия» «Россия - семья семей»

В Москве ежегодно состоялся юбилейный, всероссийский, патриотический гала-концерт «Проза и поэзия» «Россия - семья семей»

Обзор известных приложений, созданных на iOS

Moscow.media
Москва

Сергей Собянин заявил о продлении наземного метро Москвы в Тульскую область



103news.comмеждународная интерактивная информационная сеть (ежеминутные новости с ежедневным интелектуальным архивом). Только у нас — все главные новости дня без политической цензуры. "103 Новости" — абсолютно все точки зрения, трезвая аналитика, цивилизованные споры и обсуждения без взаимных обвинений и оскорблений. Помните, что не у всех точка зрения совпадает с Вашей. Уважайте мнение других, даже если Вы отстаиваете свой взгляд и свою позицию. 103news.com — облегчённая версия старейшего обозревателя новостей 123ru.net.

Мы не навязываем Вам своё видение, мы даём Вам объективный срез событий дня без цензуры и без купюр. Новости, какие они есть — онлайн (с поминутным архивом по всем городам и регионам России, Украины, Белоруссии и Абхазии).

103news.com — живые новости в прямом эфире!

В любую минуту Вы можете добавить свою новость мгновенно — здесь.

Музыкальные новости

Игорь Бутман

Радио Jazz представило Игоря Бутмана в составе жюри премии «Все цвета джаза»




Спорт в России и мире

Алексей Смирнов – актер, которого, надеюсь, еще не забыли

Подведены итоги конкурса «Мы верим твердо в героев спорта»

Подведены итоги конкурса «Мы верим твердо в героев спорта»

Подведены итоги конкурса «Мы верим твердо в героев спорта»


WTA

Рахимова обыграла Биррелл и вышла во второй круг WTA 1000 в Пекине



Новости Крыма на Sevpoisk.ru


Москва

В Москве ежегодно состоялся юбилейный, всероссийский, патриотический гала-концерт «Проза и поэзия» «Россия - семья семей»



Частные объявления в Вашем городе, в Вашем регионе и в России