------

[ AD ] Port Monitor ( Try to use a Best WebSite Monitoring Tool )

------
HTML
Touch button

CSS :
.btn {
   text-indent: -9999px;
   display: block;
   width: 200px; /* 버튼 넓이 */
   height: 50px; /* 버튼 높이 */
   background: transparent url(img/button.png) no-repeat;
}
.btn:active {
   background: transparent url(img/button_press.png) no-repeat;
}


jQuery(JS)
.btn { /* 위와동일 */
   text-indent: -9999px;
   display: block;
   width: 200px;
   height: 50px;
   background: transparent url(img/button.png) no-repeat;
}
.btn.active { /* :active를 .active로 수정 */
   background: transparent url(img/button_press.png) no-repeat;
}


http://goo.gl/86fR  WebDevMobile 웹 개발 모바일
HTML 5 규격 과 특징 ( 샘플 코드 ) in BADA / Webkit

HTML5는 

그것의 특징들은 HTML, CSS, DOM과 JavaScript을 기반을 두고 있고
외부 플러그인을 위한 필요한것들을 감소 시키며 ,
더 나은 에러 처리, 스크립을 감소 시켜주는 더 많은 마크업,
장치에 비의존적 ,
개발 과정이 눈으로 확인하며 공개
 

How HTML5 makes easy?

HTML5 makes easy because its features are based on HTML, CSS, DOM, and JavaScript, reduces the need for external plug-ins (like Flash), better error handling, more markup to replace scripting , device independent, the development process should be visible to the public


새로운 특징

- 그리는 것을 위한 캔버스 요소
- 미디어 실행을 위한 비디오 와 오디오 요소
- 지연 비연결 저장소를 위한 더 나은 지원
- 새로운 컨텐츠 특정 요소, 기사와 같이, 꼬리말, 머리말, nav, section
- 새로운 폼 컨트롤, 달력과 같은 , 일자, 시간, 이메일, URL, 검색

New Features
•The canvas element for drawing
•The video and audio elements for media playback
•Better support for local offline storage
•New content specific elements, like article, footer, header, nav, section
•New form controls, like calendar, date, time, email, URL, search


New Markup Elements

Tag
Description

<article>
For external content, like text from a news-article, blog, forum, or any other content from an external source
<aside>
For content aside from the content it is placed in. The aside content should be related to the surrounding content
<command>
A button, or a radio button, or a checkbox
<details>
For describing details about a document, or parts of a document
<summary>
A caption, or summary, inside the details element
<figure>
For grouping a section of stand-alone content, could be a video
<figcaption>
The caption of the figure section
<footer>
For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
<header>
For an introduction of a document or section, could include navigation
<hgroup>
For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
<mark>
For text that should be highlighted
<meter>
For a measurement, used only if the maximum and minimum values are known
<nav>
For a section of navigation
<progress>
The state of a work in progress
<ruby>
For ruby annotation (Chinese notes or characters)
<rt>
For explanation of the ruby annotation
<rp>
What to show browsers that do not support the ruby element
<section>
For a section in a document. Such as chapters, headers, footers, or any other sections of the document
<time>
For defining a time or a date, or both
<input type=’file’>
file browsing


New Media Elements 미디어 요소 / 오디오, 비디오

Tag
Description
<audio>
For multimedia content, sounds, music or other audio streams
<video>
For video content, such as a movie clip or other video streams
<source>
For media resources for media elements, defined inside video or audio elements
<embed>
For embedded content, such as a plug-in


<VIDEO width="640" height="360" preload="none" controls>

<SOURCE type="video/mp4" src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" />
<SOURCE type="video/webm" src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" />
<SOURCE type="video/ogg" src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" />

<object width="640" height="384" type="application/x-shockwave-flash" data="/code/video_for_everybody/player.swf">

<param name="movie" value="/code/video_for_everybody/player.swf" />
<param name="flashvars"
value="image=/code/video_for_everybody/poster.jpg&amp;file=http://clips.vorwaerts-mbh.de/big_buck_bunny.mp4" />
<img src="/code/video_for_everybody/poster.jpg" width="640" height="360" alt="Big Buck Bunny"
title="No video playback capabilities, please download the video below" />

</object>

The Canvas Elements / 캔버스

Tag
Description

<canvas>
For making graphics with a script

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;">
Your browser does not support the canvas element.
</canvas>

<input type="button" value="Create Graphics" onclick="draw();"/>
<script type="text/javascript">
 function draw(){
    var canvas=document.getElementById("myCanvas");
    if(!canvas.getContext){return;}

    var ctx=canvas.getContext("2d");

    ctx.beginPath();
    ctx.arc(75,75,50,0,Math.PI*2,true); // Face 얼굴
    ctx.moveTo(110,75);

    ctx.arc(75,75,35,0,Math.PI,false); // Mouth
    ctx.moveTo(65,65);

    ctx.arc(60,65,5,0,Math.PI*2,true); // Left eye
    ctx.moveTo(95,65);

    ctx.arc(90,65,5,0,Math.PI*2,true); // Right eye
    ctx.stroke();}
</script>


New Form Elements

Tag
Description

<datalist>
A list of options for input values
<keygen>
Generate keys to authenticate users
<output>
For different types of output, such as output written by a script

New Input Type Attribute values
Tag

Description
tel
The input value is of type telephone number
search
The input field is a search field
url
The input value is a URL
email
The input value is one or more email addresses
datetime
The input value is a date and/or time
date
The input value is a date
month
The input value is a month
week
The input value is a week
time
The input value is of type time
datetime-local
The input value is a local date/time
number
The input value is a number
range
The input value is a number in a given range
color
The input value is a hexadecimal color, like #FF8800

<script type="text/javascript">
    function write_sum(){
      x=5;
      y=3;
      document.forms["sumform"]["sum"].value=x+y
    }
</script>

</head>

<body bgcolor="#DEB887">
<div style="overflow:scroll;height:400px;width:350px;">

<article>
    <a href="http://blog.netscape.com/2007/12/28/end-of-support-for-netscape-web-browsers">
    Netscape is dead</a>
    <br />
     AOL has a long history on the internet, being one of
     the first companies to really get people online.....
</article>

<aside>
    <h4>Epcot Center</h4>
           The Epcot Center is a theme park in Disney World, Florida.
</aside>

<menu>
     <command type="command">Click Me!</command>
</menu>

<details>
       <summary>HTML 5</summary>
        This document teaches you everything you have to learn about HTML 5.
</details>

<figure>
    <h1>WWF</h1>
    <p>The World Wildlife Foundation was born in 1961...</p>
</figure>

<figure>
     <figcaption>WWF</figcaption>
     <p>The World Wildlife Foundation was born in 1961...</p>
</figure>

<footer>This document was written in 2009</footer>

<header>
     <h1>Welcome to my homepage</h1>
     <p>My name is Donald Duck</p>
</header>

<hgroup>
     <h1>Welcome to my WWF</h1>
     <h2>For a living planet</h2>
</hgroup>

<p>Do not forget to buy <mark>milk</mark> today.</p>
     <meter min="0" max="10">2</meter><br />
      <meter>2 out of 10</meter><br />
     <meter>20%</meter>

<nav>
     <a href="default.asp">Home</a>
     <a href="tag_meter.asp">Previous</a>
     <a href="tag_noscript.asp">Next</a>
</nav>

The object's downloading progress:
<progress>
     <span id="objprogress">76</span>%
</progress>

<section>
     <h1>WWF</h1>
     <p>The World Wildlife Foundation was born in 1961...</p>
</section>

<p>We open at <time>10:00</time> every morning.</p>

<p>I have a date on <time datetime="2008-02-14">Valentine’s day</time></p>

<input list="cars" />
    <datalist id="cars">
        <option value="BMW">
        <option value="Ford">
        <option value="Volvo">
     </datalist>

<form action="form_action.asp" method="get" name="sumform">
     <output name="sum"></output>
</form>

<keygen type="rsa"></keygen>
</div>

<body>
</html>


Geo-location using HTML5


function showMap(position) {
     alert(position.coords.latitude, position.coords.longitude);
    document.getElementById('latitude').innerHTML = position.coords.latitude;
    document.getElementById('longitude').innerHTML = position.coords.longitude;
}

// One-shot position request.

navigator.geolocation.getCurrentPosition(showMap);

Web Storage
•Local Storage - Stores data with no time limit
•Session Storage - Stores data for one session

Local Storage Method:
Local Storage sets fields on the domain. Even when you close the browser, reopen it, and go back to the site. The values are stored in the local storage.

Session Storage Method:
The Session Storage sets fields on the window. When the window is closed, the session fields are lost, even if the site remains open in another window.

Local Storage
localStorage.lastname="Smith";
document.write(localStorage.lastname);

Session Storage
sessionStorage.lastname="Smith";
document.write(sessionStorage.lastname);




Drag and Drop


var eat = ['yum!', 'gulp', 'burp!', 'nom'];

var yum = document.createElement('p');
var msie = /*@cc_on!@*/0;
yum.style.opacity = 1;
var links = document.querySelectorAll('li > a'), el = null;

for (var i = 0; i < links.length; i++) {
    el = links[i];
    el.setAttribute('draggable', 'true');
    addEvent(el, 'dragstart', function (e) {
    e.dataTransfer.effectAllowed = 'copy'; // only dropEffect='copy' will be dropable
    e.dataTransfer.setData('Text', this.id); // required otherwise doesn't work
});
}
var bin = document.querySelector('#bin');

addEvent(bin, 'dragover', function (e) {
    if (e.preventDefault) e.preventDefault(); // allows us to drop
    this.className = 'over';
    e.dataTransfer.dropEffect = 'copy';
    return false;
});

// to get IE to work
addEvent(bin, 'dragenter', function (e) {
    this.className = 'over';
    return false;
});

addEvent(bin, 'dragleave', function () {
    this.className = '';
});

addEvent(bin, 'drop', function (e) {
    if (e.stopPropagation) e.stopPropagation(); // stops the browser from redirecting...why???
    var el = document.getElementById(e.dataTransfer.getData('Text'));
    el.parentNode.removeChild(el);
    // stupid nom text + fade effect
    bin.className = '';
    yum.innerHTML = eat[parseInt(Math.random() * eat.length)];


var y = yum.cloneNode(true);
bin.appendChild(y);

setTimeout(function () {
    var t = setInterval(function () {
     if (y.style.opacity <= 0) {
        if (msie) { // don't bother with the animation
            y.style.display = 'none';
        }
        clearInterval(t);
      } else {
        y.style.opacity -= 0.1;
      }
     }, 50);
   }, 250);
   return false;
});



크롬의 개발자 도구를 활용해서 0에서부터 라이브 코딩으로 파티클 시스템을 만드는 것을 시연함.

HTML 5 CANVAS
< LIVE_CODING_PRACTICE />

A SIMPLE PARTICLE SYSTEM - seung joon choi

Developer Tools http://www.chromium.org/devtools


canvas = document.createElement('canvas')
ctx = canva.getContext('2d')

document.body.appendChild(canvas)
canvas.width = 400
canvas.height=400

ctx.fillRect(0,0,400,400)
Ptcl = new function() {}

Object() {
x=0
y=0
vx=0
vy=0
r=0
dt=0.1
}



Introduction to some of the network features of Rocket Engine. Built by and for professional game developers, Rocket Engine is the only fully integrated solution for plugin-free browser game development. Read more at http://rocketpack.fi/engine/ ! Follow us on Twitter: http://twitter.com/rocketpackgames


 

Supports IE8, iDevices, Android...

Works in every major browser

Flash doesn't run on the iPhone or the iPad.
The browser with the largest market share doesn't support the HTML5 Canvas element.
Don't panic.
The Rocket Pack Engine runs smoothly in every major browser, no plugins required.

  • Works in every major browser
  • No plugin or installation required
  • No Canvas tag support required
  • Built-in Web Application support
  • Can be packaged as a native application

Everything You Need to Get Started

Wide selection of bundled components

Have a great game idea?
With the bundled components,
you'll have the first prototype running the same afternoon.

  • Animated sprites
  • Orthographic and isometric tile rendering
  • Audio playback
  • Collision detection
  • Pathfinding
  • AI state machines
  • ...and many many more

Professional Editing Tools

Real-time multi-user editing

With Rocket Builder, you can easily edit your game on-the-fly,
wherever you are, no coding required.
Need to tweak some viral activities while fishing in the Mediterranean?
Now you can.

  • Level editor with live preview
  • Integrated source and asset editing
  • Real-time multi-user support
  • No installation required
  • Edit anywhere (works on your desktop browser, phone, etc.)

 



Rocket Network
Scalable MMO services

Developing an MMO or a multiplayer game?
Rocket Network takes care of your server-side troubles.

  • Identity handling
  • Socially connected (Facebook, Twitter...)
  • Common services required by MMOs
  • MMO-grade scaling
  • Virtual currencies
  • Tracking and reporting for custom metrics
  • In-depth analytics for all RPN services

Modern Extendable Architecture

  • Component-based
  • Focus on rapid development and deployment
  • Design based on years of experience working
    with professional game development tools


Future-proof

When the glorious day arrives when HTML5 is widely supported,
you can literally just plug in a Canvas-based renderer and enjoy the results.

  • Canvas support
  • WebGL support


 

Transparent Client-Server Model

  • Supports multiple fallback transports
  • Run the same code on both client and server
  • Transparent RPCs and reflection


Easy Deployment

  • Per-user sandboxes
  • Deployment to cloud services
  • Support for multiple concurrent versions
  • Easy A/B testing




 

Feature Comparison

  Rocket Engine HTML5 Flash Unity3D
No plugin required X X    
No canvas support required X   X X
Designer & Artist Tools X   X X
Transparent Client-server Integration X     *
Deployment as Web App X X    
Hardware accelerated 3D ** **   X
Built-in Cloud Deployment X      
Built-in Analytics X      
Source Available X X    
Server-side Services for Social Apps X      

* Partial (non-MMO) support  
** Coming with WebGL support




Note: Higher quality version on Vimeo: http://vimeo.com/6691519

Are you interested in HTML 5 and what's coming down the pipeline but haven't had time to read any articles yet?

Brad Neuberg has put together an educational Introduction to HTML 5 video that goes over many of the major aspects of this new standard, including:

* Web vector graphics with the Canvas tag and Scalable Vector Graphics (SVG)
* The Geolocation API
* HTML 5 Video
* The HTML 5 Database and Application Cache
* Web workers

In the video we also crack open the HTML 5 YouTube Video prototype to show you some of the new HTML 5 tags,
such as nav, article, etc.
 
It's chock full of demos and sample source code.

E3 2010 Aves Engine Prototype "Suburban World" - all HTML, CSS and JavaScript



Released at E3 2010, this second sneak preview of the Aves Engine, shows our new prototype "Suburban(교외) World".

The Aves Engine is a professional game engine to build any type of web based 2D or 2.5D game by only using HTML, CSS and JavaScript, giving game studios the power to deliver stunning games for all kinds of genres on multiple platforms.

It's in a way similiar to Game Engines on PC or Console systems but utilizes many important patterns you need to consider when working in the web environment.

HQ: www.dextrose.com
Updates: twitter.com/dextrose_inc
Contact: contact@dextrose.com


http://goo.gl/hGbf 징가가 HTML5 게임엔진 제작회사를 사버렸네요.

엔진데모: http://goo.gl/4gH2 스크린 사이즈에 대한 솔루션이 멋지네요.

국내에도 이정도엔진 개발중인 팀이 있나요

'0.일반개발 > html5' 카테고리의 다른 글

Rocket Engine Networking  (0) 2010.09.27
Introduction to HTML 5  (0) 2010.09.27
Building a JavaScript-Based Game Engine for the Web  (0) 2010.09.27
HTML5  (0) 2010.09.20
HTML5 from google  (0) 2010.09.08
징가에 팔린 html5게임엔진제작인 Dextrose의 game engine for the web 강의입니다

Google Tech Talk
June 11, 2010

ABSTRACT

Presented by Paul Bakaus.

There are many professional game engines out there for consoles, PCs, and mobile handhelds.
많은 전문 게임 엔진이 콘솔 pc 그리고 모바일 용으로 나와 있다
However, there is one big empty gap, even in 2010: 
그러나 2010임에도 큰 공간 갭이 있다
     Not a single game engine targets desktop and mobile browsers natively without the use of plugins.
     단일 게임 엔진 데스크답과 모바일 브라우저를 목표로 플러그인 사용없이 주어진 그대로 만들어 진것은 없다.

In this session, Paul will talk about the challenges of building a pure browser-based gaming engine,
이 세션에서는, 폴이 순수 브라우저 기반 게임 엔진을 만드는 것에 도전하는 것을 이야기 한다,
how web programming concepts like event-driven architecture need to be considered,
어떻게 웹 프로그밍 컨셉을 이벤트 기반 아케텍쳐처럼 생각되게 할 것인가
and what it means to fully utilize the open web stack—HTML5,
그리고 HTML5의 개방 웹 스택을 최대한 사용하는 것의 의미는 무엇인가
client- and server-side JavaScript, external Stylesheets,
클라이언트 측과 서버 측 자바 스크립트, 외부 스타일시트
server-side JavaScript and, of course, Canvas—to squeeze every millisecond of rendering time.
서버측 자바스크립과 물론 랜더링 시간의  매 1/1000 시간에 캔버스를 멈추고.

We will go into the details of our own upcoming Aves Engine for isometric real-time games 
등속 실시간 게임을 위한 우리가 가질 다가오는 Aves 엔진에 대한 자세한 것으로 들어간다
and will give you a very solid idea of what needs to be done
to build graphically rich, real-time, full featured games for the web.
웹을 위한 모든 기능을 가지 게임 , 실시간, 그래픽으로 풍부한 것을 만들기 위한
해결하기위해 필요한 매우 고지식한 아이디어를 제공한다.

Paul Bakaus is the CTO of the Germany-based startup Dextrose AG,
and his corporate work mostly focuses on UX, UI and tricky JavaScript challenges.
폴 바카우스는 독일에 위치한 신생 Dextrose AG의 기술이사 이고,
그의 회사 업무는  대부분이 까다로운 자바스크립트 도전 UX,UI에 집중되어 있다

He is best known for creating jQuery UI,
그는 jQuery UI를 만드는 것에 대한 최고의 지식을 갖고 있고,
the popular official UI framework for jQuery, 
jQuery를 위한 가장 잘 맞는 공식적인 UI 전체 업무 구조
where he was the driving force behind many of its plugins.
매우 많은 플러그인 뒤에
Canvas CSS3 HTML5 3D HTML5 기반의 모바일 웹 개발에 대한 발표를 하면서 데모로 만들어 본 3D 치아 모델링에 대한 동영상이다. HTML5 Canvas와 CSS3 Transition 효과를 이용한 것


HTML5에서 개발할 준비가 되었지만 IE의 옛버젼들이 지원하는 것에 대한 걱정할 것인가?
Ready to develop in HTML5 but worried about supporting older versions of Internet Explorer?

구글 크롬 프레임


Learn how Google Chrome Frame can help.

It's easy to include on your site: 당신의 사이트에 포함하는 것은 간단하다.

<meta http-equiv="X-UA-Compatible" content="chrome=1"

http://code.google.com/chrome/chromeframe/

IE에서 개방 웹 기술을 가능하게 할때...
Enable open web technologies in Internet Explorer

구글 크롬 프레임은 개방 소스 플러그인은 구글 크롬의 오픈 웹 기술과 빠른 자바스크립엔진을  IE에 끊김없이 가져온다
Google Chrome Frame is an open source plug-in that seamlessly brings Google Chrome's open web technologies and speedy JavaScript engine to Internet Explorer.

IE6,7또는 8에서  아직도 지원하지 않은  기술까지도 - HTML5의 canvas tag와 같은- 개방 웹기술을 바로 사용하려 한다면
Start using open web technologies - like the HTML5 canvas tag - right away, even technologies that aren't yet supported in Internet Explorer 6, 7, or 8. 

당신 어플을 빠르게 하고 좀더 빠른 반응을 보이게 하는 자바스크립 성능개선의 이점을 갖고자 한다면
Take advantage of JavaScript performance improvements to make your apps faster and more responsive. 
   
구글 HTML5 사이트

http://www.html5rocks.com/

구글은 “HTML5와 관련 기술은 매우 폭넓은 영역을 커버하는 기술이기 때문에 이를 단기간에 완성시켜 나가는 것은
정말 어려울 수 있다”라고 밝히며 “이것이 우리가 HTML5ROCKS 사이트를 통해 많은 정보를 공유하려는 이유”라고 설명했다.

또한 “앞으로 지속적인 업데이트를 통해 개발자들에게 HTML5의 다양한 기능에 대한 상세한 정보를 계획”이라고 밝혔다.

2010 6월 초


http://www.apple.com/html5/

모든 새로운 애플 모바일 장치와 모든 새로운 맥 - 애플 사파리 웹 브라우저의 마지막 버젼에 따라서 -
Every new Apple mobile device and every new Mac — along with the latest version of Apple’s Safari web browser —
HTML5,CSS3와 자바스크립트를 포함한 웹 표준을 지원한다.
supports web standards including HTML5, CSS3, and JavaScript.

이 웹표준들은 개방, 신뢰성, 높은 안전 그리고 능률적이다.
These web standards are open, reliable, highly secure, and efficient.

그들은 웹 디자이너와 개발자에서 ( 향상된 그래픽, 활자체, 애니메이션과 변형꾸미기를 만드는 것을 ) 허용한다.
They allow web designers and developers to create advanced graphics, typography, animations, and transitions.

표준들은 웹에 추가할 것들이 없다
Standards aren’t add-ons to the web.
그들은 웹이다.
They are the web.
그리고 오늘 그들을 사용해서 시작할 수 있다.
And you can start using them today.


HTML5 Showcase



http://developer.apple.com/safaridemos/

아래 예제를  보고 배워라 어떻게 웹사이트에 HTML5,CSS3와 JavaScript로 풍부한 경험 전달하는지.
View the examples below and learn how to use web standards such as HTML5, CSS3, and JavaScript to deliver rich experiences in your website.

Video Effects 비디오 효과
Perspective On/Off원근법 / 투시 화법
Scale
Web Typography 웹 활자(폰트체)
Web Gallery 웹 갤러리
Horizontal 2D
Vertical 2D
Horizontal 3D
Vertical 3D
Grid
Photo Transition 포토 꾸미기
오디오
360도

VR 가상현실

HTML,CSS와 JavaScript를 사용해서  추가적인 플러그인 소프트웨어 없이
작동하는  가상화면을 웹페이지에 만들수 있다.
You can use HTML, CSS, and JavaScript to create virtual scenes in your web pages that work
without any additional plug-in software. 

CSS 변형은  사용자의 시선안쪽에 여섯개의 이미지를  3차원 공간에 정육면체를
구성하기위해 위치시킨다
CSS transforms are used to position six images in 3D space to form a cube 
with the user's viewpoint inside. 

당신이 조종함에 따라 정육면체는 새로운 정확한 위치를 반사하기위해 회전한다.
As you navigate, the cube is rotated to reflect the new appropriate position.

어떤표준 웹브라우저는 행동은 경험을 붕괴한다.
Any standard web browser behaviors that would disrupt the experience
데스크탑위에 사파리에서 선택된 색상을 보여주고 iOS위의 사파리안의 이미지 판넬을 저장하고
— such as showing a selection color in Safari on the desktop, or the Save Image panel in Safari on iOS —
약간 추가된 CSS특성으로 불가능하게 할 수 있다
can be disabled with a few additional CSS properties

Pixel Manipulation 픽셀 처리 ( HTML5 Cavas Elements )
- Color Effects : Grayscale , Invert , watermark
- Edge Detection : Detect Edges , Highlight Edges , Black & White Edges
- Displacement Maps : ripples(물결), bulge , glass boxes(유리컵 표면 효과)
- Export to : png / gif / jpg / tiff


참조 :
http://www.bloter.net/archives/33656

'0.일반개발 > html5' 카테고리의 다른 글

E3 2010 Aves Engine Prototype "Suburban World" - all HTML, CSS and JavaScript  (0) 2010.09.27
Building a JavaScript-Based Game Engine for the Web  (0) 2010.09.27
HTML5  (0) 2010.09.20
HTML5 from google  (0) 2010.09.08
HTML 5  (0) 2010.09.08

+ Recent posts