forked from solar2d/Solar2D.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
445 lines (397 loc) · 19.6 KB
/
index.html
File metadata and controls
445 lines (397 loc) · 19.6 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Solar2D - Awesome 2D game engine">
<title>Solar2D Game Engine</title>
<meta charset="utf-8">
<meta property="og:type" content="article">
<meta property="og:title" content="Solar2D">
<meta property="og:description" content="Solar2D - Awesome 2D game engine">
<meta property="og:image" content="https://solar2d.com/images/logo.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Solar2D">
<meta name="twitter:description" content="Solar2D - Awesome 2D Game Engine">
<meta name="twitter:image" content="https://solar2d.com/images/logo.png">
<link rel="apple-touch-icon" sizes="57x57" href="https://solar2d.com/images/icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="https://solar2d.com/images/icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="https://solar2d.com/images/icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="https://solar2d.com/images/icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="https://solar2d.com/images/icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="https://solar2d.com/images/icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="https://solar2d.com/images/icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="https://solar2d.com/images/icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://solar2d.com/images/icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="https://solar2d.com/images/icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://solar2d.com/images/icon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="https://solar2d.com/images/icon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://solar2d.com/images/icon-16x16.png">
<link rel="icon" href="/images/logo.png" type="image/png">
<link rel="preload" href="./fonts/SourceSansPro-Light.ttf" as="font" type="font/ttf" crossorigin>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="nav-wrapper">
<nav class="container">
<div class="nav-overlay">
<button class="nav-overlay-close">×</button>
</div>
<button class="nav-toggle">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="32" height="32">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"></path>
</svg>
</button>
<div class="nav-left">
<a class="icon-play" href="https://playground.solar2d.com" target="_blank"><span>Try Now!</span></a>
<a class="icon-plugins" href="https://plugins.solar2d.com" target="_blank"><span>View Plugins</span></a>
<a class="icon-code" href="https://code.solar2d.com" target="_blank"><span>Code Exchange</span></a>
<a class="icon-donate" href="#support"><span>Support</span></a>
</div>
<div class="nav-right">
<a class="icon icon-discord" href="https://discord.gg/WMtCemc" target="_blank"></a>
<a class="icon icon-discourse" href="https://forums.solar2d.com/" target="_blank"></a>
<a class="icon icon-github" href="https://github.com/coronalabs/corona" target="_blank"></a>
</div>
</nav>
</header>
<div class="hero">
<div class="inner container">
<img src="images/logo-banner.svg" height="145px" alt="Solar2D Logo" class="logo" />
<h1>Awesome 2D Game Engine</h1>
<h2>Solar2D is a Lua based game engine with focus on ease of iterations and usage</h2>
<p class="description">
This is a fully open source project that is forked of the well established and widely used Corona SDK game engine, which is no longer commercially supported. Development is lead by Vlad Shcherban, former technical lead engineer at
Corona Labs Inc. If you are using this engine, consider <a href="#support">supporting</a> its development.
</p>
<a class="button button-secondary icon-docs" href="https://playground.solar2d.com" target="_blank">Documentation</a>
<a class="button icon-download" onclick="showDownloadOverlay()" href="#download">Download</a>
</div>
<a class="demo-info" href="#">
<strong class="demo-info-name"></strong> by <strong class="demo-info-author"></strong>
</a>
</div>
<div class="content">
<div class="advantages">
<h1 class="section-title">Advantages</h1>
<div class="inner container">
<!--<div class="point">
<p class="icon-multiplatfrom"></p>
<h3>Cross-platform</h3>
<p class="point-info">Develop for mobile, desktop, and connected TV devices with just one code base: iOS, tvOS, Android, Android TV, macOS, Windows, Linux or HTML5.</p>
</div>-->
<div class="point">
<p class="icon-fast"></p>
<h3>Build Fast</h3>
<p class="point-info">
Update your code, save the changes, and instantly see the results in our instant-update Simulator. When you're ready to test on real devices, build and deploy your app just once and then see code/assets update automatically,
all over your local network. It's like magic.
</p>
<a class="button icon-play" onclick="showVideoOverlay()" href="#liveBuilds">Live Builds in actions</a>
</div>
<div class="point">
<p class="icon-plugin"></p>
<h3>Plugins for all needs</h3>
<p class="point-info">
Select from numerous plugins which extend the Solar2D core for features like in-app advertising, analytics, media, and much more. A vast variety of plugins is available via
<a href="https://plugins.solar2d.com">Solar2D free directory</a> or third party stores, like <a href="http://solar2dmarketplace.com">Solar2D Marketplace</a> and <a href="https://www.solar2dplugins.com">Solar2D Plugins</a>.
</p>
</div>
<div class="point">
<p class="icon-native"></p>
<h3>Call any native library</h3>
<p class="point-info">If it’s not already in the core or supported via a plugin, you can call any native (C/C++/Obj-C/Java) library or API using Solar2D Native.</p>
</div>
<div class="point">
<p class="icon-production"></p>
<h3>Production ready</h3>
<p class="point-info">Solar2D is official fork of Corona SDK, which has been in active development for over 10 years, and used by hundreds of thousands of apps and developers.</p>
</div>
<div class="point">
<p class="icon-lua"></p>
<h3>Lua-based</h3>
<p class="point-info">
Lua is an open source scripting language designed to be lightweight, fast, yet also powerful. Lua is currently the leading scripting language in games and has been utilized in Warcraft ™, Angry Birds ™, Civilization ™ and many
other popular franchises.
</p>
</div>
<div class="point">
<p class="icon-code"></p>
<h3>Beginner friendly</h3>
<p class="point-info">Solar2D is a beginner-friendly game engine due to its easy-to-learn Lua scripting language, extensive documentation, live device testing, and free and open-source nature.</p>
</div>
<!-- <div class="point">
<p class="icon-free"></p>
<h3>Completely free</h3>
<p class="point-info">No hidden fees, charges, or royalties. No matter if you are an indie developer or a large publisher, you will never pay for using the engine.</p>
</div> -->
<!-- <div class="point">
<p class="icon-lock"></p>
<h3>Privacy aware</h3>
<p class="point-info">Solar2D would not track your users. No anonymized data gathering, no server calls. Nothing. Games you build only make network requests you asked for.</p>
</div> -->
<!-- <div class="point">
<p class="icon-people"></p>
<h3>Community</h3>
<p class="point-info">
Join a vibrant community of thousands developers using Solar2D for live games on <a href="https://forums.solar2d.com" target="_blank">Forums</a> or <a href="https://discord.gg/WMtCemc" target="_blank">Discord</a> chat.
</p>
</div> -->
<!-- <div class="point">
<p class="icon-opensource"></p>
<h3>Open Source</h3>
<p class="point-info">All source code and resources are available under <a href="https://opensource.org/licenses/MIT" target="_blank">MIT license</a>.</p>
</div> -->
</div>
</div>
<section class="cross-platform">
<h2 class="section-title">Cross Platform</h2>
<div class="container">
<div class="info">
<p>Develop with just one code base, publish your game to all of the major platforms:</p>
<p><strong>Desktop;</strong> Windows, MacOS, Linux</p>
<p><strong>Mobile;</strong> Android, IOS</p>
<!-- <p><strong>Console;</strong> ?</p> -->
<p><strong>TV;</strong> AndroidTV, tvOS</p>
<p><strong>and;</strong> Web</p>
</div>
<div class="visual">
<img src="images/platform/windows.webp">
<img src="images/platform/macos.webp">
<img src="images/platform/linux.webp">
<img src="images/platform/android.webp">
<img src="images/platform/ios.webp">
<img class="androidtv" src="images/platform/androidtv.webp">
<img src="images/platform/appletv.webp">
<img src="images/platform/web.webp">
</div>
</div>
</section>
<section class="community">
<h2 class="section-title">Community</h2>
<div class="container">
<p>Join a vibrant community of thousands developers using Solar2D for live games on <a href="https://forums.solar2d.com" target="_blank">Forums</a> or <a href="https://discord.gg/WMtCemc" target="_blank">Discord</a> chat.</p>
<h3 class="made-with-pre-title">Made with Solar2D!</h3>
<p>Discover what people are building.</p>
<div class="made-with">
<a class="made-with-item" href="https://play.google.com/store/apps/details?id=com.suiarts.DenturesAndDemons" target="_blank">
<img src="images/demo/denturesanddemons.png">
<div class="made-with-item-content">
<h4>Dentures and Demons</h4>
<p>Sui Arts</p>
<p class="download-count"><span class="icon-download"></span>1M+</p>
</div>
</a>
<a class="made-with-item" href="https://play.google.com/store/apps/details?id=com.orange.word.puzzle.connect.crossword" target="_blank">
<img src="images/demo/findwords.png">
<div class="made-with-item-content">
<h4>Find Words</h4>
<p>Orange Studios Games</p>
<p class="download-count"><span class="icon-download"></span>1M+</p>
</div>
</a>
<a class="made-with-item" href="https://play.google.com/store/apps/details?id=com.zutgames.ilovehue" target="_blank">
<img src="images/demo/ilovehue.png">
<div class="made-with-item-content">
<h4>I Love Hue</h4>
<p>Zut</p>
<p class="download-count"><span class="icon-download"></span>10M+</p>
</div>
</a>
<a href="https://madewithsolar2d.com" target="_blank" class="more-link">Explore more</a>
</div>
<!-- <a class="button">Explore more</a> -->
</div>
</section>
<section class="open-source">
<h2 class="section-title">Open Source</h2>
<div class="container">
<p class="chip">
<span class="icon icon-opensource"></span>
<span><strong>Open Source: </strong>All source code and resources are available under <a href="https://opensource.org/licenses/MIT" target="_blank">MIT license</a>.
</span>
</p>
<p class="chip">
<span class="icon icon-lock"></span>
<span><strong>Privacy aware: </strong>Solar2D would not track your users. No anonymized data gathering, no server calls. Nothing. Games you build only make network requests you asked for.</span>
</p>
<p class="chip">
<span class="icon icon-github"></span>
<span><strong>Contribute: </strong>Follow the development of Solar2D on <a href="https://github.com/coronalabs/corona" target="_blank">GitHub</a> and contribute.</span>
</p>
<p class="chip">
<span class="icon icon-free"></span>
<span><strong>Completely Free: </strong>No hidden fees, charges, or royalties. No matter if you are an indie developer or a large publisher, you will never pay for using the engine.</span>
</p>
</div>
</section>
<section class="cta">
<div class="cta-content container">
<h2 class="section-title">Start Your Journey Today!</h2>
<button class="button button--large icon-download" onclick="showDownloadOverlay()">Download</button>
</div>
</section>
<div class="support">
<a id="support"></a>
<div class="inner">
<h2>Support the Project</h2>
<p>Solar2D development is sponsored by its users. Support the project on <a href="https://github.com/sponsors/shchvova" target="_blank">GitHub Sponsors</a> or <a href="https://patreon.com/shchvova" target="_blank">Patreon</a>.</p>
</div>
</div>
<div id="overlay" onclick="hideDownloadOverlay();hideVideoOverlay();">
<div id="downloadOverlay" onclick="window.event.stopPropagation();">
<a href="#" onclick="hideDownloadOverlay();" id="closeOverlay"></a>
<p style="font-size: 35px;">Download Lastest Solar2D Simulator</p>
<div class="button icon-download" style="height: 70px; margin-bottom: 5px; font-size: 25px;">
<a id="mainSimDownloadLink" href="https://github.com/coronalabs/corona/releases">Download Now</a>
</div>
<p id="mainSimDownloadInfo" style="margin-top: 5px; margin-bottom: 30px;"></p>
<p>
<a class="button icon-play" href="https://docs.coronalabs.com/guide/programming/index.html" target="_blank"> Read Getting Started Guide</a>
</p>
<div id="secondaryDownload" style="display: none; margin-top: 40px;">
<p id="secondarySimDownloadInfo">Also Available:</p>
<p></p>
<div class="button icon-download" style="height: 40px; font-size: 15px;">
<a id="secondarySimDownloadLink" href="https://github.com/coronalabs/corona/releases" target="_blank">Download Now</a>
</div>
</div>
</div>
<div id="videoOverlay" onclick="window.event.stopPropagation();">
<a href="#" onclick="hideVideoOverlay();" id="closeOverlay"></a>
<iframe
style="padding-top: 50px;"
width="80%"
height="80%"
src="https://www.youtube.com/embed/peyo_97BOmI"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;"
allowfullscreen
></iframe>
</div>
</div>
</div>
<footer class="footer">
<div class="links">
<a class="icon icon-facebook" href="https://fb.com/solar2d" target="_blank"></a>
<a class="icon icon-patreon" href="https://patreon.com/shchvova" target="_blank"></a>
<a class="icon icon-github" href="https://github.com/coronalabs/corona" target="_blank"></a>
</div>
<div class="copyright">
Released under the <a href="/LICENSE.txt" target="_blank">MIT license</a><br />
<hr />
<!-- Solar2D LLC <br/>
30 N Gould St Ste R Sheridan, WY 82801 <br/>
solar2d@solar2d.com; <a href="tel:530-586-8546">(530) 586-8546</a><br/> -->
</div>
</footer>
<script>
//Download Window
if (window.location.hash === "#download") {
showDownloadOverlay();
}
var macOSDownloadLink = "https://github.com/coronalabs/corona/releases",
windowsDownloadLink = "https://github.com/coronalabs/corona/releases";
function getOS() {
var userAgent = window.navigator.userAgent,
platform = window.navigator.platform,
macosPlatforms = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"],
windowsPlatforms = ["Win32", "Win64", "Windows", "WinCE"],
os = "other";
if (macosPlatforms.indexOf(platform) !== -1) {
os = "Mac OS";
} else if (windowsPlatforms.indexOf(platform) !== -1) {
os = "Windows";
}
return os;
}
fetch("https://api.github.com/repos/coronalabs/corona/releases/latest")
.then(res => res.json())
.then(release => {
var windowsAsset = release.assets.filter((asset) => asset.name.includes("msi"))[0];
windowsDownloadLink = windowsAsset.browser_download_url;
var macOSAsset = release.assets.filter((asset) => asset.name.includes("dmg"))[0];
macOSDownloadLink = macOSAsset.browser_download_url;
if (getOS() === "Mac OS") {
document.getElementById("mainSimDownloadLink").innerText = " Download For MacOS";
document.getElementById("mainSimDownloadLink").href = macOSDownloadLink;
document.getElementById("mainSimDownloadInfo").innerText = release.name;
document.getElementById("secondaryDownload").style.display = "block";
document.getElementById("secondarySimDownloadLink").innerText = " Download For Windows";
document.getElementById("secondarySimDownloadLink").href = windowsDownloadLink;
} else if (getOS() === "Windows") {
document.getElementById("mainSimDownloadLink").innerText = " Download For Windows";
document.getElementById("mainSimDownloadLink").href = windowsDownloadLink;
document.getElementById("mainSimDownloadInfo").innerText = release.name;
document.getElementById("secondaryDownload").style.display = "block";
document.getElementById("secondarySimDownloadLink").innerText = " Download For MacOS";
document.getElementById("secondarySimDownloadLink").href = macOSDownloadLink;
}
});
function showDownloadOverlay() {
document.getElementById("overlay").style.display = "flex";
document.getElementById("downloadOverlay").style.display = "inline";
}
function hideDownloadOverlay() {
document.getElementById("overlay").style.display = "none";
document.getElementById("downloadOverlay").style.display = "none";
}
//Live Builds Video
if (window.location.hash === "#liveBuilds") {
showVideoOverlay();
}
function showVideoOverlay() {
document.getElementById("overlay").style.display = "flex";
document.getElementById("videoOverlay").style.display = "inline";
}
function hideVideoOverlay() {
document.getElementById("overlay").style.display = "none";
document.getElementById("videoOverlay").style.display = "none";
}
</script>
<script defer>
const demoApps = [
{
name: "Puzzles for Clef",
author: "Weasel Token",
imgId: "puzzlesforclef",
link: "https://store.steampowered.com/app/1802190/Puzzles_For_Clef",
},
{
name: "Infinity",
author: "Jaguar Studios",
imgId: "infinity",
link: "https://play.google.com/store/apps/details?id=jaguargames.infinity",
},
{
name: "Thinkrolls Play",
author: "Avokiddo",
imgId: "thinkrollsplay",
link: "https://avokiddo.com/thinkrolls-play-and-code",
},
{
name: "Zombie Escape",
author: "Famous Dogg Studios",
imgId: "zombieescape",
link: "https://play.google.com/store/apps/details?id=com.famousdoggstudios.pg",
},
];
const { name, author, imgId, link } = demoApps[Math.floor(Math.random() * demoApps.length)];
const header = document.querySelector(".hero");
header.style.backgroundImage = `var(--gradient), url("images/demo/${imgId}.webp")`;
header.querySelector(".demo-info").href = link;
header.querySelector(".demo-info-name").textContent = name;
header.querySelector(".demo-info-author").textContent = author;
const nav = document.querySelector("nav");
const navOverlay = document.querySelector(".nav-overlay");
const navWrapper = document.querySelector(".nav-wrapper");
const navToggle = document.querySelector(".nav-toggle");
navToggle.onclick = () => {
const state = nav.classList.toggle("visible");
navWrapper.style.zIndex = state ? 1 : -1;
document.body.style.overflowY = state ? "hidden" : "";
};
navOverlay.onclick = () => navToggle.onclick();
</script>
</body>
</html>