Home

Awesome

screenshot

Dynamic Cubemapped Environment

screenshot

screenshot

screenshot

screenshot

screenshot

Click on the large 7z file under releases to download all source & binaries (Windows & Linux) or try this link:

https://github.com/fastrgv/AdaVenture/releases/download/v2.4.6/av15jul24.7z

Type "7z x filename" to extract the archive.

GitHub downloaders: Please ignore the "Source code" zip & tar.gz files. (They are auto-generated by GitHub). Click on the large 7z file under releases to download all source & binaries (Windows,Mac & Linux). Type "7z x filename" to extract the archive. Then you can compile your own binaries, or use the pre-built ones provided.

==============================================================

Video: Dynamic Cubemapped Reflections https://youtu.be/Op-x-58LiW8

Video: Wandering Toxic Swamp Gas: Minoan Labyrinth (please use earphones): https://youtu.be/C6AL2F2wrpQ

Video: New Open Doorways + Mamba: https://youtu.be/lXkuM0z0JqA

Video: Walkthru level 1: Spartan Temple https://youtu.be/FNE20lw1AZo

Long Video: Walkthru level 2: Minoan Labyrinth https://youtu.be/oVW205APsS0

Short Video: Charge of the Minotaur: https://youtu.be/iRj_SnqXbZc

Short Video: Omar escapes mamba thru moveable bridge: https://youtu.be/8qbAJ-JvvXs

Carnivorous Beetles: https://youtu.be/428fRdu-fZs

AdaVenture

using GLFW & OpenAL

Recent Changes

ver 2.4.6 -- 15jul2024

ver 2.4.5 -- 8jul2024

ver 2.4.4 -- 6apr2024

ver 2.4.3 -- 14mar2024

ver 2.4.2 -- 9mar2024

ver 2.4.1 -- 18feb2024

More change-history at end of file

AdaVenture Game Description

AdaVenture is a kid-friendly retro point & click game, a reincarnation in 3D of the original Atari game named "Adventure", with various artistic extrapolations. The mazes have interconnections that are impossible in 3 dimensions, but are painstakingly exact reproductions of those in the original game. In fact, the "mapRoom" subdirectory contains the original maps to help guide you.

Runs on Windows, OSX, and GNU/Linux. Includes all source code, build scripts & resources.


Featuring

* no installation
* no dependencies
* simply unzip in your Downloads directory, and run;
* or unzip onto a USB flash drive [w/same file format] and run.

AdaVenture Introduction

Set in ancient Persia, it begins outside the castle of the young King Xerxes, who inherited a magical golden chalice from his father, Darius the Great. Coveted by Greek foes King Leonidas of Sparta and King Minos of Crete, the chalice has been stolen.

Your quest is to seek and return the royal chalice to its pedestal within the castle of Xerxes...a stealth mission to preclude open hostilities. But, there will be obstacles to overcome. You must find the keys to various realms, defend yourself against dragons and the Minotaur, avoid snakes and pesky bats who steal things only to drop them in random locations, and survive the maze of the green mamba and crazed, flesh-eating scarabs. Finally, you must cross the invisible bridge over a killer pungee pit (think Indiana Jones & the Last Crusade).

AdaVenture Game Features

mouse/touchpad/keyboard controls

[You might need to disconnect unused gamecontrollers to prevent spinning!]

Look direction is controlled by touch pad or mouse;

The mouse wheel controls camera zoom. On laptops, a 2-finger swipe simulates the mouse wheel; Zoom can also be controlled with keys n, f, z [Nearer,Further,default]; Note that Zoom changes now show immediately, even when stopped, but Lazy Camera change does not show immediately.

Movement is controlled by the WASD keys or the arrow keys:

   (Up)

(Lt) (Dn) (Rt)


Game Notes:

joystick


gamecontroller

Note that regression testing of these controller functions has not been done for quite a while. Any volunteers?


controller settings

If the need arises, copy the file "default_settings.txt" to "./data/settings.txt". Then you can manually edit the floats that define the sensitivity for mouse, keyboard, gamepad & joystick, as well as forward speed of the avatar.



System Requirements for running delivered executables:

Notes on saved games:

Saved games are "txt" files named with the date & time of the save, followed by the chapter number 1..4. When resuming, the most recently saved games are at the top of the displayed list. If the list gets too long for the terminal window, then some older games are not shown. So delete or move very old game files periodically under the "savedGames" directory, if needed.

Setup & Running Adaventure:

The application's root directory [./avent/] contains files for deployment on 3 platforms: 1)windows (64 bit), 2)linux, 3)OSX, in addition to source code.

Mac users please read "osx-setup.txt". Windows users see "windows-setup.txt".

Unzip the archive.

After the archive is unzipped...

Open a commandline terminal, and cd to the install directory, and type:

adaventureW64.bat (Windows 64-bit)

adaventure_gnu (Linux)

adaventure_osx (Mac) [ "adaventure_osx 0" indicates forcing Low-Dpi video mode; default=High-Dpi ] note that Low-Dpi should be used if graphics are jerky.

OSX note: When resuming a game, there seems to be a quirk with window focus that requires a deliberate cursor-click on the saved-games window prior to selection. Not a big problem if you're expecting it.

The linux executable has been recently tested, and runs well on Trisquel, ScientificLinux, OpenSuse, and Mint.

If an older Linux system complains that /dev/dsp/ cannot be opened, prepend the command with "padsp",EG: "padsp (ExeName)".

Also, the Windows executable can be run on linux using wine thusly: * wine binw64/adaventure64.exe

Windows users note: DO NOT try running the linux executables under WSL [Windows Subsystem for Linux]; that mode is not supported. Simply use the windows version.

Remember to save the game [ v-key ] prior to risky behavior or quitting, in order to easily resume later. This writes enough information into a file to be able to resume later.

In case of trouble moving, switch to 1st person.

Note that adjustable OpenGL settings should favor performance. OTOH, this game runs fine on an Intel NUC with embedded Intel graphics, so the graphics demands are modest.


Included Open Source libraries that allow rebuilding:

Rebuild Requirements:

Build instructions for AdaVenture:

Three [pre-compiled] binary executables are delivered, two for Windows, & one for gnu/linux. I believe the Windows executables are fairly portable. They were built on Windows 10.

The distributed linux executable requires glibc v2.17 or newer. That means if your distribution is older than 2012, it may not run, and you might need to recompile. But if you have wine, you can simply run the Windows executables.

Build scripts for GNU Ada, which comes with its own g++ compiler, are provided.

Of course, the build scripts need to be adjusted to reference your actual installation directory for the Ada compiler.


msWin64 => setpathw64.bat + wcmp.bat (read ~docs\gnuAdaOnWindows.txt)


MacOSX => ocmp.sh


GNU/Linux => lcmp.sh:

uses dynamic linking for some common shared libraries that are delivered in this bundle under ./libs/gnu/. These are used to build the [gnu/linux] executable, which should run in the presence of ./libs/gnu/, whether or not your system has those shared libraries installed.

If the delivered linux binary does not run...

Fixable link problems during linux build:

On a linux build machine, you might get a few fixable link errors, depending on its configuration. If you are missing "libxxx.so", you might simply need to create a proper softlink so it can be found.


For Developers Only: Portable Avatar Using Shaders


For Developers Only: Fancy Shaders, FX

This app demonstrates how to use fancy fragment shaders from glslsandbox.com to make starry maze skies. See below (Media Files). It also demonstrates the use of coherent noise to create the rolling fireball in the labyrinth.


For Developers Only: OpenAL portable sound package

This app uses a cross-platform sound-playing package for Ada apps that can asynchronously start and stop music loops, as well as initiate transient sounds, allowing unlimited concurrency.

It plays WAV files, via OpenAL, on Windows, OSX and linux platforms.

It is suitable for <u>any</u> Ada application that needs music, sound loops or transient sound effects; eg. games.


What is special about this project?

The linux-build of this app is among very few modern OpenGL games with sound where a single pre-built executable can run on multiple Linux distros without any 3rd party add-ons! It is routinely tested on OpenSuse[2022], ScientificLinux[redhat derivative from 2012], & Mint.

For developers, this project can serve as a testbed for learning modern OpenGL and GLSL.

It uses the Ada programming language and modern OpenGL methods, with textures, shaders and uniforms. Compiles and runs on Windows, OSX, & GNU/Linux systems.

Focusing on portability, transparency, and open source freedom, this project relies exclusively on F.O.S.S. tools: a thin glfw3 binding, a thin OpenGL binding, a PNG reader by Stephen Sanguine and Dimitry Anisimkov, OpenAL-Audio with a homebrew binding, a FreeTypeAda binding by Felix Krause, plus string & table utilities by Dmitry Kazakov.

The Ada bindings are thin, so the relationship to C++ methodology is transparent. Developers should note that these Ada bindings can be used for your own OpenGL Ada project.

For the C++ programmer the code should be easy to comprehend; and for the experienced Ada programmer there are many ada-specializations yet to be made.

This game is a work in progress, so please excuse any scaffolding and debugging code has not been removed.

Open source Ada developers are welcome to help improve or extend this app. Developer or not, send comments, suggestions or questions to:

and please include the file gamestatex.txt from the data directory if you are reporting a freeze or abort.


License:

This app is covered by the GNU GPL v3 as indicated in the sources:

Copyright (C) 2024 fastrgv@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You may read the full text of the GNU General Public License at http://www.gnu.org/licenses/.

Media Files:

General Note

The particular choices of shaders, sounds & images are not essential to the function of the game and are easily replaced.

It is my intention to use media with copyrights or licenses that are compatible with GPLv3. Please notify me if you believe there is an incompatibility, and it will be removed ASAP, eg a CC-by-NC license is NOT GPL compatible.

SoundFiles

Most sounds are from freesound.org and are covered by the Creative Commons CC0 license. A few others with CC-by-3.0 license have accompanying text files with attributions. See ./docs/otherLicenses/. The small waterfall sound (CC4 license) was created by Giovanni Provenzale.

Others [eg. shriek] are from http://www.freesfx.co.uk, which have an attribution requirement, but no legal restrictions otherwise.

Some original Atari sounds [public domain] were also used.

Credit and thanks to Kevin Macleod [CC-by-3.0] for his great compositions Cephalopod, AngevinB, & Ibn-Al-Noor.

Credit and thanks to the Godfather of Exotica, Korla Pandit, for the excellent renditions of Turkish Dance and Miserlou...a song so old that its origins are vague, yet was known to have been popular in ancient Persia and the middle-east, as well as to all us fans of Dick Dale!

ImageFiles

ShaderFiles

Several fragment shader files used were downloaded from http://glslsandbox.com/ and put under ./data/. All frag. shaders from glslsandbox are under the MIT license (see ./docs/mit_license.txt). Existing comments or any identifying information was retained.

In order to make these usable, I had to modernize them to glsl version 330 specifications, and adapt them to utilize some programatic uniforms for input.

SkyBoxes

Bindings & Utilities

Thanks to Dmitry Kazakov, Dimitry Anisimkov, Stephen Sanguine and Felix Krause, for their software tools, as mentioned above.

Download Sites for my games:

Video Level 1:

https://youtu.be/Pr0IhvHXvFQ

Tags

kids,retro,adventure,dragon,castle,maze,labyrinth



Update History:

ver 2.4.0 -- 11feb2024

ver 2.3.9 -- 21oct2023

ver 2.3.8 -- 06oct2023

ver 2.3.7 -- 17sep2023

ver 2.3.6 -- 5sep2023

ver 2.3.5 -- 2sep2023

ver 2.3.4 -- 23feb2023

ver 2.3.3 -- 8feb2023