GithubHelp home page GithubHelp logo

ia-coche's Introduction

A* Pathfinder

ULL Project. The player sprite will use A* to find the shortest path to the destination. Monsters have not been implemented and they are only aesthetic. Controls:

  • W, A, S, D: Move camera
  • Scroll: Zoom
  • Mouse click: Remove tile contents
  • Mouse click while pressing key 1: Add wall to tile
  • Mouse click while pressing key 2: Move player sprite
  • Mouse click while pressing key 3: Move treasure sprite
  • Mouse click while pressing key 4,5,6,7: Add monster to tile

Menu controls:

  • Top eye button: Track player (currently not working)
  • Vertical bar: Click on any position of the vertical bar to set a simulation speed (0 for step by step)
  • Step by step: Click to run a single step (speed must be 0)
  • Run/Pause: Run/pause simulation (speed must be > 0)
  • Restart
  • Randomize map

Check the video, docs/ia-coche.mp4 !

Compilation

Make file should be ready to compile on linux and windows. Allegro 5 must be installed, compilation is made with shared libraries. To install on Linux:

~$ sudo add-apt-repository ppa:allegro/5.2
~$ sudo apt update

# The core library.
~$ sudo apt install liballegro5-dev

# The addons.
~$ sudo apt install liballegro-acodec5-dev liballegro-audio5-dev \
       liballegro-image5-dev liballegro-dialog5-dev liballegro-ttf5-dev \
       liballegro-physfs5-dev

# Check that it is installed with:
~$ pkg-config --list-all | grep allegro
allegro_ttf-5                  allegro_ttf - Allegro game programming library, TrueType fonts addon
allegro_color-5                allegro_color - Allegro game programming library, colors addon
allegro_dialog-5               allegro_dialog - Allegro game programming library, native dialog addon
allegro_video-5                allegro_video - Allegro game programming library, video player addon
allegro_acodec-5               allegro_acodec - Allegro game programming library, audio codec addon
allegro_main-5                 allegro_main - Allegro game programming library, magic main addon
allegro_font-5                 allegro_font - Allegro game programming library, font addon
allegro_memfile-5              allegro_memfile - Allegro game programming library, memory files addon
allegro_image-5                allegro_image - Allegro game programming library, image I/O addon
allegro-5                      allegro - Allegro game programming library
allegro_physfs-5               allegro_physfs - Allegro game programming library, PhysicsFS addon
allegro_primitives-5           allegro_primitives - Allegro game programming library, primitives addon
allegro_audio-5                allegro_audio - Allegro game programming library, audio addon

ia-coche's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.