To execute, developers shall use the latest version of Egretia engine and Egretia Launcher
Egretia Compiler
In this case, developers only need to install the latest version of Launcher and download Egretia Compiler in the [Tools] tab, which can be used more easily without executing the npm install command in each project.
Besides, here is an update on webpack:
• legacy mode
o Fix the decorator sorting problem;
o Fix the error of namespace;
o Fix the problem that the global enumeration cannot be accessed;
o Add sourcemap;
o Fix the compilation error caused by .d.ts in the src folder;
o Modify the .ts matching rules in legacy mode and adopt the configuration in tsconfig.json instead of hard-coded the src folder;
• Linux platform support;
• Fix the problem that Egretia.is returns incorrect results after compilation;
• Optimize the output volume which has been reduced about 20%
• Add typescript.tsconfigPath;
Egretia UI Editor
• Add right click to resource library -> copy resource name;
• Exml source code supports formatting;
• Support drag the skin by pressing the right button;
• The resource manager supports deleting files through the Delete key;
• The right-click menu item displays the corresponding shortcut keys;
• The interface can be zoomed by the mouse wheel in the preview state;
• Adjust the step length of the size & position part of the attribute item to 1, which is more user-friendly;
•To change the shortcut skin of Button by dragging and dropping resources to the input box
• The custom components are sorted alphabetically for easy search;
• The component frame is drawn by canvas, and the skin editing is smoother;
• Fix that clicking may cause the component level to be changed in some cases
• Fix that frequent changes to the component location may cause the editor to crash;
• Fix the issue that the list in the Ctrl+P shortcut to open the file is not updated synchronously after the file is changed
• Fix the problem that the interface is not updated in real time after changing the component skin;
Document
• Optimize the page loading speed from an average of 2 seconds to an average of 300 milliseconds
• Upload multiple documents and remove some outdated documents
All the sample codes in the document are written in ES2015 version, e.g. declare Variables with let and const
Stay tuned for updates from the Egretia official channels below so that you can be involved in all the exciting things to come!
// add the loading interface to scene this.stage.addChild(this.main.loadingView); //read the resources await RES.loadGroup(“game”, 0, this.main.loadingView); //remove the interface this.stage.removeChild(this.main.loadingView);
>Add the images in interfaces
Create LoadingUI2
Main
loadResource()
this.loadingView = new LoadingUI2();
MainMenu
> Singleton Pattern and Create JSON
An implementation of the singleton pattern must:
ensure that only one instance of the singleton class ever exists;
and provide global access to that instance.
JSON is an open standard file format, and data interchange format, that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value). It is a language-independent data format and a very common data format, with a diverse range of applications.
> Basic concepts of game design and game development:Separate data and logic
//shoot once every pass of main loop, the distance is 80
this.vy = -80; //-80 upwards
this.vx = 0 ;
this.dx = this.dy = 0 ;
this.n = 0;
break;
update():
//the special one will be scheduled in advance and automatically executed. The “return” will show up when it finishes.
if(this.id == 10){
//the distances between planes and them
this.dx +=this.vx;
this.dy +=this.vy;
//offset value:base value+offset
// coordinates of laser is base coordinates and changes
this.x = this.game.player.x + this.dx;
this.y = this.game.player.y + this.dy;
// test whether it’s off-screen
if(this.y < -100 ){
this.vis = false;
}
return;
}
>Tracking bullet
Demonstration
Version:1.0
StartHTML:000000275
EndHTML:000053955
StartFragment:000021508
EndFragment:000053873
StartSelection:000021508
EndSelection:000053869
SourceURL:https://medium.com/egretia/create-a-space-shooter-game-egretia-engine-tutorial-for-beginners-part-6-a93d80fc08de
Create A Space Shooter Game | Egretia Engine Tutorial For Beginners Part 6 | by Egretia Io | Egretia | Aug, 2020 | Medium
1)NPC:
NPCManager
//obtain NPC
public getNPC():NPC{
//length>0,NPC exists; if no, bounce off
if(this.nm.length > 0 ){
//if there is npc, choose one randomly
let npc = this.nm[Math.floor(Math.random()* this.nm.length)]
Egretia Engine Upgrade! A big boost in compiling speed!
Here we will introduce some features, including JavaScript Module Support, upgraded EUICompiler and Inspector updates
JavaScript Module Support (beta)
We allow developers to use JavaScript module and meanwhile provide a webpack packager which can package the multiple files of JavaScript module into one file so that it can run on the previous browser without supporting JavaScript.
The Upgraded EuiCompiler (beta)
The UI and related logic are one of the most workload-intensive parts in games developed by Egretia Engine. In the new version, we have comprehensively improved the UI development experience and upgraded UIEditor whose internal code structure is much clearer and more extensible.
Inspector Updates
1.Fix the error that TOUCH_END event doesn’t work
2.Fix the issue that selection is still available when it shows visible=false
3.Fix the problem that it cannot be parsed correctly when there are special symbols in the URL path of the game.
Community
EGT Bounty Campaign
To celebrate Bitcoin Pizza Day, Egretia has given away 18,888 EGT *1 and 8,888 EGT *2 which attracted many participants to share their bitcoin stories in our telegram community. In the coming future, Egretia will adopt the incentive mechanism to encourage more people to interact with us and foster a robust gaming ecosystem.
The report on Egretia from one of the Russian Youtubers. Thanks for sharing! We are looking forward to connecting with more people in the world!
Всем привет! в этом видео посмотрим, как там поживает сильно нашумевший в своё время проект Egretia. Те кто следят за крипто рынком, помнят монетку этого проекта EGT, которая показала просто сумасшедший рост.компания продолжает развиваться и команда не так давно, выкатила новый роадмап. Об этом мы сегодня и поговорим!
Для начала, я в кратце расскажу чем занимается команда Egretia и тут нужно сказать пару слов про HTML5. Это технология — признанное во всё мире кросс платформенное решение. Она охватывает интернет, игры на мобильных телефонах, видео контент, рекламу и другие сферы цифрового рынка, капитализация которого составляет сотни миллиардов долларов.
Платформа Эгретия сочетает в себе технологию HTML5, набор инструментов SDK и собственный уникальный движок, чтобы предоставить полный функционал для разработки игр на блокчейне. С помощью набора инструментов Egretia, разработчики со всего мира могут быстро и легко создавать игры на блокчейне не обращая внимания на сложные базовые реализации технологии. При этом с помощью блокчейна они могут открывать свободный поток обмена, виртуальными ресурсами между разными играми.
В сотрудничестве с компанией Egret Technology, мировым лидером в индустрии HTML5, команда Egretia разрабатывает первый в мире движок и платформу, для создания HTML5 совместимого блокчейна. Таким образом соединив технологию блокчейна с проверенными временем инструментами, сообществом, контентом и партнерами, с целью направить 250 000 разработчиков и 1 миллиард мобильных устройств — в мир блокчейна.
Среди основных преимуществ платформы можно выделить:
● Самостоятельно разработанный Блокчейн на открытом коде;
● Удобный пакет разработки;
● Умная помощь при кодировании;
● Наличие цифрового кошелька для каждого пользователя платформы;
● Устойчивая экосистема для пользователей платформы.
Токен EGT
Для обслуживания экосистемы Egretia выпущена криптовалюта Egreten, которая будет соединена со всеми играми, а также будет использоваться игроками для обмена виртуальными игровыми товарами. Также есть и другие способы использования этого токена:
● Рекламодатели могут заказывать рекламу;
● Разработчики могут создавать объявления через инструменты Egretia и SDK№
● Игроки будут зарабатывать токены за время, проведенное в играх.
Токен был выпущен на криптовалютный рынок 4 июля 2018 года, сейчас стоимость монет составляет 11 сатош, а капитализация в районе 4 млн долларов. Купить токены Egretia можно на криптовалютных биржах Okex, Huobi и других площадках.
Обновленный роадмап
27 апреля команда представила обновленную дорожную карту. Основной упор представители Эгретия делают в сторону нидустрии блокчейн игр. Как игровая блокчейн экосистема, Эгретия уже выпустила полный рабочий процесс по разработке игры на блокчейне.
В этом году Egretia планирует реализовывать стратегию более активного взаимодействия с успешными предприятиями в сфере гейминг контента, стремясь найти и запустить более качественные игры.
С тех пор, как стартовал Egretia Global DApp Contest, Egretia выбрала множество отличных игр. Победителям будет предложено щедрое вознаграждение и бонусы, в том числе дальнейшая поддержка развития проекта, инкубация и потенциальные инвестиции.
Чтобы расширить каналы маркетинга и подготовить почву для открытой платформы, Egretia предпринимает инициативы по поиску потенциального сотрудничества со сторонними платформами с высоким трафиком, а также с различными крипто кошельками.
Egretia обладает потенциалом стать ведущей в мире игровой блокчейн экосистемой, позволяя ежедневным активным пользователям — быть на передовой, игровой индустрии мирового уровня.
Теперь что касается технологий! В 2019 году Egretia добилась некоторых успехов в технической части, включая обновление рабочих процессов разработки блокчейн игры, запуск Testnet, выпуск Blockchain Browser, бета-тестирование собственного кошелька, первичное открытие игры Football Blockchain Game, а также техническое сотрудничество с несколькми известными компаниями в блокчейн индустрии.
В этом году команда планирует значительно расширится на Азиатский рынок, проводя конференции и обучающие митапы по тематике блокчейн игр.
Также планируется начать проводить АМА сессии с командами Эгретии и других крипто проектов работающих в этом направлении.
К концу 2020 года, судя по роадмапу команда предоставит для разработчиков ещё больше всевозможных гайдов, как пользоваться инструментами Эгретия для создания блокчейн игр. При этом обновленные инструкции будут учитывать работу с ETH 2.0
Заключение
Проект Эгретия работает в перспективной сфере блокчейн игр. Однако это направление привлекает лучшие умы со всего мира, а значит будет высокая конкуренция. Поэтому команде придётся усердно работать чтобы плотно закрепится на этом рынке. Будем наблюдать за проектом, быть может команда добьётся успеха!
Stay tuned for updates from the Egretia official channels below so that you can be involved in all the exciting things to come!