| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Kodu Code Examples

Page history last edited by DustinWindsor 11 years ago

Here are some code examples to get you started with Kodu. For more examples, see the Planet Kodu Code Questions Forum. It's a great place to look for ideas on how to solve common problems like countdown timers, etc

 

Examples and In-Class Demos:

 

  1. Controlling a Character
  2. Collecting Objects
  3. Following Paths
  4. Enemy Shooting
  5. Player Shooting
  6. Switching Pages
  7. Scoring
  8. Health Damage
  9. Countdown Timer
  10. Score Demo
  11. Pages Demo
  12. Power-ups and Store Demo
  13. Levels and Transporting Demo
  14. Sounds and Random Items Transporting Demo

 

 

 

Controlling a Character

 

Collecting Objects

 

Following Paths

 

Enemy Shooting

 

Player Shooting

 

Switching Pages

 

Scoring

 

Health Damage

 

Countdown Timer

To create a countdown timer for 10 seconds use the following kode to an object that won’t be destroyed during the game! Also set the red score to Quiet.

  

 

Score Demo

To open this demo in Kodu, simply save the file and then double click on it to load it within Kodu. Note: Kodu must be closed for this to work

Score Demo.kodu

 

Pages Demo

To open this demo in Kodu, simply save the file and then double click on it to load it within Kodu. Note: Kodu must be closed for this to work

Pages Demo.kodu

 

Power-ups and Store Demo

To open this demo in Kodu, simply save the file and then double click on it to load it within Kodu. Note: Kodu must be closed for this to work

Power Up and Store Demo.kodu

 

Levels and Transporting Demo

To open this demo in Kodu, simply save the file and then double click on it to load it within Kodu. Note: Kodu must be closed for this to work

Levels and Teleporting Demo.kodu

 

Sounds and Random Items Transporting Demo

To open this demo in Kodu, simply save the file and then double click on it to load it within Kodu. Note: Kodu must be closed for this to work

Sounds and Random Items Demo.kodu

 

 

Comments (0)

You don't have permission to comment on this page.