Implementing Horizontal Character Movement with Keyboard Controls in Cocos Creator

Horizontal character movement represents one of the most fundamental mechanics in 2D game development. This implementation demonstrates how to capture keyboard input, apply acceleration-based movement, enforce velocity limits, and constrain characters within screen boundaries using Cocos Creator's component system. Component Implementation The ...

Posted on Tue, 07 Jul 2026 16:47:40 +0000 by kmussel

Developing a Modular Snake Game in C++ Using Windows Console API

System Architecture and Global State Creating a robust console-based Snake game requiers efficient state management and a rendering system that avoids the flickering associated with standard system("cls") calls. The following implementation utilizes the Windows API for double buffering and direct console buffer manipulation. We begin ...

Posted on Sun, 28 Jun 2026 16:00:29 +0000 by Gighalen

Understanding the Unity Editor Interface and Core Concepts

Project Architecture The fundamental structural hierarchy of a Unity project follows a specific order: Project contains Scenes, Scenes contain Game Objects, Game Object are constructed from Components, and Components possess specific Properties. Main Toolbar and Shortcuts The top menu bar provides access to essential editor functions. Below is ...

Posted on Sat, 27 Jun 2026 17:08:16 +0000 by runthis

Unity3D Coroutines: Advantages and Implementation Considerations

Unity3D Coroutines: Advantages and Implementation Considerations Unity3D provides developers with powerful features for creating high-quality games, one of which is coroutines. Coroutines are special functions that can pause execution and resume at a later time. This article explores the advantages and disadvantages of using coroutines in Unit ...

Posted on Thu, 25 Jun 2026 17:55:22 +0000 by quintus

Creating Interactive Games with Python's Turtle Graphics Library

Introduction to Turtle Graphics Game Development The Python turtle library provides a simple yet powerful way to create interactive graphical applications and games. This tutorial explores ten engaging games that deomnstrate various programming concepts while being fun to play and modify. 1. Classic Snake Game Rules: Control the snake using arr ...

Posted on Wed, 24 Jun 2026 16:41:46 +0000 by birdie

Implementing a Terminal-Based Gomoku Game in C on Linux

Terminal-based board games in C require direct manipulation of standard I/O, raw input processing, and efficient state evaluation. The architecture for a 15x15 Gomoku game on Linux centers on a matrix for piece tracking, POSIX terminal configuration for instant key capture, and directional scanning for win validation. Board State and Cursor Tra ...

Posted on Tue, 23 Jun 2026 16:41:09 +0000 by angulion

Implementing Tic-Tac-Toe Game Logic in C Using Arrays

Modular Program Structure Tic-tac-toe implementation folllows modular design principles, separating code into distinct files for better organization: game.h: Contains header inclusions, constant definitions, and function declarations game.c: Implements all game-related functions test.c: Contains main program logic and testing routines // game ...

Posted on Sun, 21 Jun 2026 16:57:30 +0000 by kenle

Unity Animation System: Core Principles and Practical Techniques

Unity provides two distinct animation systems: the modern Mecanim system (simply called the Animation system) and the Legacy system. The Mecanim system, driven by the Animator component, Animator Controller, and Animation Clips, is the recommended choice for most projects, especially those requiring complex blending and state machines. The Lega ...

Posted on Tue, 09 Jun 2026 17:25:03 +0000 by digibrain

Refactoring a Console C++ RPG: From Raw Pointers to Robust Design

This article walks through modernizing a simple C++ console RPG game. The original implementation, commonly found in beginner tutorials, had several issues: manual memory management, weak input validation, a rogue class with a non-functional dodge ability, and verbose conditional logic for character classes. We'll address each flaw step by step ...

Posted on Sat, 06 Jun 2026 17:31:45 +0000 by visualed

Mastering Unity AnimationCurve for Procedural Motion

Overview The AnimationCurve class in Unity provides a powerful way to define custom data transformations over time or space. It is widely used for creating non-linear movement, custom easing functions, terrain modulation, and parametric animation behaviors. By utilizing the built-in editor, developers can visually design curves that influence g ...

Posted on Thu, 04 Jun 2026 16:39:30 +0000 by lorne17