- 1. Getting Started with OdyC
- 2. Naming Your Game
- 3. The Hero
- 4. How to Draw?
- 5. The Map
- 6. Dialogues
- 7. Sound in the Game
- 8. Advanced Template Parameters
- 9. Camera Control
- 10. Integrating Events
- 11. Event Target Manipulation
- 12. Dynamic Hero Modification
- 13. Modifying a Cell
- 14. Global Model Modification
- 15. Orchestration of Dialogues, Sounds, and Endings
- 16. Dynamically Loading Maps
Welcome to the OdyC tutorial! This guide is designed to teach you how to use OdyC, a JavaScript library for creating narrative games. Whether you’re a programming beginner or an experienced developer, OdyC offers the necessary tools to turn your ideas into interactive games.
The tutorial is divided into sections, each focusing on a key feature. You’ll learn step by step how to build a game, from setting up your project to adding complexity to your creation.
Note
This tutorial aims to cover the essential aspects of OdyC. However, it’s not necessary to master every detail to start creating your own game. Feel free to experiment on your own and return to the tutorial to deepen your knowledge whenever you need.
Creating a Game with createGame()
The first step in creating a game with OdyC is to use the createGame()
function. This function initializes your game, creating a new project ready to be customized with your own scenarios, characters, and game logic.
Here’s what your code should look like:
This simple line of code is the starting point for all games created with OdyC. It sets the stage for adding game elements, such as scenes, dialogues, and interactions.
Exercise
Your mission, should you choose to accept it, is to initialize your first game using createGame()
. Write the necessary code in the playground and observe how OdyC prepares your game’s environment. If everything is correct, you will see a basic game framework appear, ready to be enriched.
Remember: game development is a creative adventure. Don’t hesitate to experiment and play with the code to see what you can create!
Loading editor...
// Welcome to OdyC! Delete this line and start by creating your first game with OdyC.