1 / 17

BoardgameMaster G2 chapter 1

BoardgameMaster G2 chapter 1. Технологии Архитектура Клиент-Сервер Архитектура BGM Инструменты Dominion. PHP + MySQL. Веб-сервер. Файловая система. Запрос страницы. HTTP- сервер. Ответ сервера( HTML). MySQL. PHP. PHP + MySQL источники : . http://www.php.ru http://www.phpclub.ru

turi
Download Presentation

BoardgameMaster G2 chapter 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BoardgameMaster G2chapter 1 • Технологии • Архитектура Клиент-Сервер • Архитектура BGM • Инструменты • Dominion

  2. PHP + MySQL Веб-сервер Файловая система Запрос страницы HTTP-сервер Ответ сервера(HTML) MySQL PHP

  3. PHP + MySQLисточники: • http://www.php.ru • http://www.phpclub.ru • http://php.net • http://www.phpfaq.ru • PHP Manual : http://www.php.ru/manual • Котеров Д., Костарев А. «PHP5 в подлиннике» • O’Reilly PHP Cookbook (Сборник рецептов) 8. http://www.denwer.ru

  4. PHP - пример <?php include (“first.inc.php”); require (“second.inc.php”); function calculateSumm($a, $b, $c) { return $a + $b + $c; } $t1 = 20; $t2 = 200; $t3 = 10; $r = rand(1,1000); if (calculateSumm($t1,$t2,$t3) > $r) echo ‘Calculated summ is greater than ’.”$r”; else echo ‘<HTML><BODY><H1>Random number is greater</H1></BODY></HTML>’; ?>

  5. FLEX mxmlc Flash player or Air runtime MXML Action Script AS -Compiler Flash bytecode (swf, swc) Action Script

  6. ActionScript, Flex источники: • http://www.adobe.com/ru/products/flex/ • O'Reilly Getting Started with Flex 3 • O'Reilly Programming Flex 3 (Программирование на Flex) • O'Reilly Flex 3 Cookbook • http://blog.flexexamples.com/

  7. Flex example <?xml version="1.0" encoding="utf-8"?> <mx:Applicationxmlns:mx="http://www.macromedia.com/2003/mxml" pageTitle="Fahrenheit to Celsius converter"  marginTop="125" marginBottom="5" marginLeft="5" marginRight="5" >     <mx:Script>         function convert():Void {                           celsius.text=frmt.format((fahrenheit.text-32)/1.8);         }    </mx:Script>   <mx:NumberFormatter id="frmt" precision="2"/>    <mx:Label text="Temperature in Fahrenheit:" fontSize="24" color="#003366" />    <mx:TextInput id="fahrenheit" width="200" fontSize="24" />    <mx:Button label="Convert" click="convert()" fontSize="24" />    <mx:Label text="Temperature in Celsius:" fontSize="24" />   <mx:Label id="celsius" width="250" fontSize="24" color="#003366" /> </mx:Application>

  8. Инструменты • DENWER – www.denwer.ru • Apache, PHP, MySQL • Heidi SQL – www.heidisql.com • Tortoise SVN – www.tortoisesvn.net • Flex SDK + FlashDevelop / FlexBuilder 3

  9. SVN – система версионирования • Хранит все версии всех файлов • 1 «корневой» каталог = 1 версия репозитория • «Помнит» историю изменений • Показывает «диффы» • Алгоритм работы: • Checkout • Update • Добавить/исправить файл • Commit • Не забыть Commit message • Настройки для клиента в Google Code в разделе Source

  10. Поле игры Dominon Общая часть монеты земли (очки) мусор действия рука сброс колода

  11. Прототип интерфейса

  12. Карты действий Dominion

  13. Специальные Карты Dominion

  14. Задачи • Просмотреть информацию о технологиях • Получить доступ в группу и репозиторий • Установить SVN • Создать в репозитории каталог с логином и текстовый файл в нем.

More Related