Skip to content

A techdemo showing an AI friendly destructible terrain for side-scrolling games. It works by using a waypoint net that is both used for AI players and rendering the landscape.

License

772/waypoint_based_destructible_terrain

Repository files navigation

waypoint_based_destructible_terrain

waypoint_based_destructible_terrain is a small techdemo showcasing an artificial intelligence (AI)-compatible destructible terrain designed for side-scrolling games. The functionality is achieved through the implementation of a dynamic waypoint network, utilized concurrently for AI player navigation and landscape rendering. The landscape allows no modification other than the creation of new tunnels (waypoints).

Why? In the context of destructible two-dimensional (2D) landscapes, conventional approaches involve the usage of either a vast grid comprising individual pixels (bitmap) or a polygon-based approach. Advanced techniques such as marching squares or quadtrees are often employed to enhance these approaches. However, both approaches (bitmaps and polygons) encounter big challenges when moving AI players within an unstable environment. Waypoints are usually only used in games with static landscapes.

video.mp4

Build

git clone https://github.com/772/waypoint_based_destructible_terrain
pip install pygame
python waypoint_based_destructible_terrain/waypoint_based_destructible_terrain.py

About

A techdemo showing an AI friendly destructible terrain for side-scrolling games. It works by using a waypoint net that is both used for AI players and rendering the landscape.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published