undefined

 AI in Games

Imagine video game characters who don't just follow pre-programmed routines, but react and adapt to your choices. This is the power of artificial intelligence (AI) in gaming. AI breathes life into non-playable characters (NPCs) by giving them the ability to make decisions, strategize, and even learn from their encounters with the player. It's like giving NPCs a virtual mind, making the game world feel more immersive and the challenges more dynamic.

While they don’t use generative or modern AI, the four ghosts in Namco’s Pacman are each programmed to simulate intelligent behaviors. The game’s designer, Toru Iwatani, wanted each ghost to behave differently. To do this, each ghost calculates a different target, relative to Pacman’s position and other rules ghosts must follow. This programmed artificial intelligence relies on the state of the ghosts and the player’s choices throughout the game.

As generative AI systems improve, it’s likely that non-player characters will simulate more realistic behaviors, like adjusting movements and behaviors by learning and predicting player behaviors.

For a closer look at the ghost AI system in Pacman, check out this awesome video by Retro Game Mechanics Explained.

🔴 Connect Four JS Project

In this project, students build a digital version of the classic game Connect Four. In this game, two players take turns dropping colored discs into a rack. The first one to connect four of their discs in a row wins!

Students should have moderate proficiency with coding in JavaScript to complete this project. Students enrolled in our Introduction to Computer Science in JavaScript or Video Game Design in JavaScript courses may enjoy completing this project in the second-half of the curriculum.


undefined

🎮 Unity Tip

Want to snap 3D objects in a Unity scene to a grid? As you move, rotate, or scale a GameObject, hold down your CTRL (PC) or CMD (Mac) key. This will snap your model to a predetermined grid interval.

To change the snap interval distance, adjust the x-, y-, and z-axis units under Edit > Snap Settings in Unity’s main toolbar.

Watch Unity’s video tutorial for snapping GameObjects.


undefined

🖥️ 2024 Virtual Teacher Conference

Registration for the CodeHS Virtual Teacher Conference is now open! We have an amazing lineup of speakers, including CS teachers from across the country and experts from CodeHS. Some session topics you may find interesting are:

  • Effective Use of AI for CS Teachers
  • College Student Panel
  • Ignite Classroom Collaboration

Attendees will receive a CodeHS Pro Trial through June 30th, 2024, a $20 Amazon gift card, and a digital swag bag! Explore session topics and register at codehs.com/virtualcon2024-register.


undefined

🎓 CodeHS Scholarship Program

Calling All High School Seniors - Now Accepting Applications!

CodeHS is proud to invite all eligible students to apply for the CodeHS Scholarship! We will award $1,000 grants to 10 students who plan to study computer science and related fields at the post-secondary level.

Review the scholarship eligibility requirements and learn how your students can apply today.
All applications are due by May 20th, 2024 @ 11:59 PM CT.


undefined

Academic Integrity

CodeHS has developed a new suite of Academic Integrity tools to help teachers ensure authentic learning and ethical conduct in the classroom.


undefined

CodeHS in Spanish

Spanish curriculum is available for Video Game Design in JavaScript, in addition to other courses, across languages.


Stay connected

💬 Stay Connected

  1. Follow us on Twitter and Instagram
  2. Chat with others in the CodeHS Educators Facebook Group
  3. Explore the CodeHS Game Design Hub

Happy Coding, 

Matt Arnold
Curriculum Developer, CodeHS

Interested in learning more about CodeHS Pro? Request a quote.