Getting Started with Odyc.js
Want to create a game quickly? Here are three ways to start, depending on your preferences:
🧪 Use the Online Editor
The easiest way to get started is to use the online editor.
No setup required: just open the link and start coding your game directly in your browser.
📦 Use a CDN
If you prefer working locally without a complex setup, you can import Odyc.js from a CDN.
- Create an
index.html
file - Paste the following code:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://www.unpkg.com/[email protected]/dist/index.global.js"></script>
</head>
<body>
<script>
const game = odyc.createGame({
title: 'My Awesome Game'
})
</script>
</body>
</html>
- Open the file in your browser.
🔧 Use a Bundler (Vite, Webpack…)
For more advanced projects, you can install Odyc.js via npm:
npm install odyc
Then in your main JavaScript or TypeScript file:
import { createGame } from 'odyc'
const game = createGame({
title: 'My Awesome Game'
})