-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (70 loc) · 14.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Zerker</title>
<meta name="generator" content="VuePress 1.9.9">
<script src="/zerkerdocs/jquery.min.js"></script>
<script src="/zerkerdocs/main.js"></script>
<meta name="description" content="A flutter canvas graphics animation library.">
<link rel="preload" href="/zerkerdocs/assets/css/0.styles.c3a2f041.css" as="style"><link rel="preload" href="/zerkerdocs/assets/js/app.39553074.js" as="script"><link rel="preload" href="/zerkerdocs/assets/js/2.4518a77b.js" as="script"><link rel="preload" href="/zerkerdocs/assets/js/7.3bb23e93.js" as="script"><link rel="prefetch" href="/zerkerdocs/assets/js/10.076ee115.js"><link rel="prefetch" href="/zerkerdocs/assets/js/11.5dcb8335.js"><link rel="prefetch" href="/zerkerdocs/assets/js/12.1745e864.js"><link rel="prefetch" href="/zerkerdocs/assets/js/13.38a0e631.js"><link rel="prefetch" href="/zerkerdocs/assets/js/14.10d36605.js"><link rel="prefetch" href="/zerkerdocs/assets/js/15.35c7353e.js"><link rel="prefetch" href="/zerkerdocs/assets/js/16.c887f0b1.js"><link rel="prefetch" href="/zerkerdocs/assets/js/17.4bde84fa.js"><link rel="prefetch" href="/zerkerdocs/assets/js/18.46a9fbf0.js"><link rel="prefetch" href="/zerkerdocs/assets/js/3.a87ea640.js"><link rel="prefetch" href="/zerkerdocs/assets/js/4.a90bce8c.js"><link rel="prefetch" href="/zerkerdocs/assets/js/5.969c1ebb.js"><link rel="prefetch" href="/zerkerdocs/assets/js/6.0fab0e66.js"><link rel="prefetch" href="/zerkerdocs/assets/js/8.5ff38ebc.js"><link rel="prefetch" href="/zerkerdocs/assets/js/9.17cb0308.js">
<link rel="stylesheet" href="/zerkerdocs/assets/css/0.styles.c3a2f041.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/zerkerdocs/" aria-current="page" class="home-link router-link-exact-active router-link-active"><img src="/zerkerdocs/images/mini-logo.png" alt="Zerker" class="logo"> <span class="site-name can-hide">Zerker</span></a> <div class="links"><!----> <nav class="nav-links can-hide"><div class="nav-item"><a href="/zerkerdocs/guide/" class="nav-link">
Guide
</a></div><div class="nav-item"><a href="/zerkerdocs/api/node/" class="nav-link">
API
</a></div><div class="nav-item"><a href="https://pub.dev/packages/zerker#-installing-tab-" target="_blank" rel="noopener noreferrer" class="nav-link external">
Installing
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://github.com/flutterkit/zerker" target="_blank" rel="noopener noreferrer" class="nav-link external">
Changelog
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/flutterkit/zerker" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/zerkerdocs/guide/" class="nav-link">
Guide
</a></div><div class="nav-item"><a href="/zerkerdocs/api/node/" class="nav-link">
API
</a></div><div class="nav-item"><a href="https://pub.dev/packages/zerker#-installing-tab-" target="_blank" rel="noopener noreferrer" class="nav-link external">
Installing
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://github.com/flutterkit/zerker" target="_blank" rel="noopener noreferrer" class="nav-link external">
Changelog
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/flutterkit/zerker" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <!----> </aside> <main aria-labelledby="main-title" class="home"><header class="hero"><img src="/zerkerdocs/images/top.png" alt="hero"> <h1 id="main-title">
Zerker
</h1> <p class="description">
A flutter canvas graphics animation library.
</p> <p class="action"><a href="/zerkerdocs/guide/" class="nav-link action-button">
Get started
</a></p></header> <div class="features"><div class="feature"><h2>Simple and lightweight</h2> <p>Using Zerker is very simple, it has very simple api and operation methods, anyone can quickly learn to use, and you will also like Zerker.</p></div><div class="feature"><h2>Various animation effects</h2> <p>Use Zerker to achieve a variety of animation effects, such as the like effect, admission animation, pop-up effect, etc.</p></div><div class="feature"><h2>Develop 2d games</h2> <p>Zerker is also very good at developing games, supporting spritesheets, atals and many other assets, making it easy to create a variety of small games.</p></div></div> <div class="theme-default-content custom content__default"><h2 id="introduction"><a href="#introduction" class="header-anchor">#</a> Introduction</h2> <p>Zerker is a flexible and lightweight flutter canvas graphic animation library.</p> <p>With Zerker, you can create a lot of seemingly cumbersome animation effects, such as animated animations, pop-up animations, scene transitions, icon effects, and more.</p> <img align="center" src="/zerkerdocs/images/fp.png" alt=""> <p>At the same time, you can create a lot of simple games with Zerker. Zerker contains elements such as sprites, scrolling backgrounds, and atlases, making it easy to create game worlds with them.</p> <h2 id="getting-started"><a href="#getting-started" class="header-anchor">#</a> Getting Started</h2> <div class="language-dart extra-class"><pre class="language-dart"><code><span class="token keyword">class</span> <span class="token class-name">MyZKApp</span> <span class="token keyword">extends</span> <span class="token class-name">ZKApp</span> <span class="token punctuation">{</span>
<span class="token class-name">ZKSprite</span> _sprite<span class="token punctuation">;</span>
<span class="token metadata function">@override</span>
<span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
<span class="token keyword">super</span><span class="token punctuation">.</span><span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
_sprite <span class="token operator">=</span> <span class="token class-name">ZKSprite</span><span class="token punctuation">(</span>key<span class="token punctuation">:</span> <span class="token string-literal"><span class="token string">"boy"</span></span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token punctuation">.</span>animator<span class="token punctuation">.</span><span class="token function">make</span><span class="token punctuation">(</span><span class="token string-literal"><span class="token string">"run"</span></span><span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string-literal"><span class="token string">"Run ({1-15}).png"</span></span><span class="token punctuation">]</span><span class="token punctuation">)</span>
<span class="token punctuation">.</span><span class="token punctuation">.</span>animator<span class="token punctuation">.</span><span class="token function">play</span><span class="token punctuation">(</span><span class="token string-literal"><span class="token string">"run"</span></span><span class="token punctuation">,</span> <span class="token number">25</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
stage<span class="token punctuation">.</span><span class="token function">addChild</span><span class="token punctuation">(</span>boy<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token metadata function">@override</span>
<span class="token function">update</span><span class="token punctuation">(</span>int time<span class="token punctuation">)</span> <span class="token punctuation">{</span>
<span class="token keyword">super</span><span class="token punctuation">.</span><span class="token function">update</span><span class="token punctuation">(</span>time<span class="token punctuation">)</span><span class="token punctuation">;</span>
_sprite<span class="token punctuation">.</span>position<span class="token punctuation">.</span>x<span class="token operator">++</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token metadata function">@override</span>
<span class="token function">customDraw</span><span class="token punctuation">(</span><span class="token class-name">Canvas</span> canvas<span class="token punctuation">)</span> <span class="token punctuation">{</span>
<span class="token comment">/// custom draw method</span>
<span class="token punctuation">}</span>
<span class="token metadata function">@override</span>
<span class="token keyword">void</span> <span class="token function">dispose</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
<span class="token keyword">super</span><span class="token punctuation">.</span><span class="token function">dispose</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre></div><h2 id="license"><a href="#license" class="header-anchor">#</a> License</h2> <p>Zerker is licensed under MIT license. View license. <a href="https://github.com/flutterkit/zerker/blob/master/LICENSE" target="_blank" rel="noopener noreferrer">https://github.com/flutterkit/zerker/blob/master/LICENSE<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></div> <div class="footer">
MIT Licensed | Copyright © 2019-present
</div></main></div><div class="global-ui"></div></div>
<script src="/zerkerdocs/assets/js/app.39553074.js" defer></script><script src="/zerkerdocs/assets/js/2.4518a77b.js" defer></script><script src="/zerkerdocs/assets/js/7.3bb23e93.js" defer></script>
</body>
</html>