Giter VIP home page Giter VIP logo

mininim's Introduction

MININIM

The Advanced Prince of Persia Engine (a childhood dream)

MININIM

Building

To build MININIM from this Git repository you'll need to have installed in your machine Automake, Autoconf, GCC, GNU Make, gnulib, CMake, Lua 5.0, Readline and MININIM's fork of Allegro. For apt based GNU/Linux distributions (Ubuntu, Debian, ...):

sudo apt-get remove liballegro5-dev liballegro-image5-dev \
  liballegro-audio5-dev liballegro-acodec5-dev liballegro-dialog5-dev
sudo apt-get install automake autoconf gcc make gnulib cmake lua50 \
  liblua50-dev liblualib50-dev libreadline-dev
sudo apt-get build-dep allegro5
git clone https://github.com/oitofelix/allegro5.git
cd allegro5
cmake
make
sudo make install
cd ..
git clone https://github.com/oitofelix/mininim.git
cd mininim
./bootstrap
./configure LUA_LIB="-llua50 -llualib50"
make
./mininim

To build MININIM's documentation you'll need Texinfo, TeX Live and help2man. For apt based distributions:

sudo apt-get install texinfo texlive texlive-generic-recommended \
  help2man
cd mininim/doc
make mininim.pdf

mininim's People

Contributors

allisson128 avatar oitofelix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mininim's Issues

Cannot execute

Hi,
After build I get this error when I try to execute the program:

./mininim: create_bitmap (320, 200): cannot create bitmap

Using "al_get_errno()" in the code I get the value "0x02" but I don't know what it means :(

I don't know how to get more information about this issue to help you, if you have an idea, I'm happy to help you with this awesome project... ;)

Debian sid build

Hi!
I'm trying to build your program in my Debian and I have a problem with "./configure":

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ALLEGRO... no
configure: error: MININIM requires Allegro 5.0.9 (or superior)

Allegro is installed (obviously) the problem is the name in pkg-config: in Debian sid is "allegro-5" instead of "allegro-5.0":

tobias@ontable:~/Games/mininim/mininim-0.10$ pkg-config --list-all | grep allegro | sort
allegro-5 allegro - Allegro game programming library
allegro_acodec-5 allegro_acodec - Allegro game programming library, audio codec addon
allegro_audio-5 allegro_audio - Allegro game programming library, audio 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_font-5 allegro_font - Allegro game programming library, font addon
allegro_image-5 allegro_image - Allegro game programming library, image I/O addon
allegro_main-5 allegro_main - Allegro game programming library, magic main addon
allegro_memfile-5 allegro_memfile - Allegro game programming library, memory files addon
allegro_physfs-5 allegro_physfs - Allegro game programming library, PhysicsFS addon
allegro_primitives-5 allegro_primitives - Allegro game programming library, primitives addon
allegro_ttf-5 allegro_ttf - Allegro game programming library, TrueType fonts addon
allegro_video-5 allegro_video - Allegro game programming library, video player addon

bye!

requires allegro 5.0.9

The code seems to be using many functions from
allegro-5.1, that are not available in 5.0. But only
version 5.0 is checked in configure. As a result,
the following link errors:

anim.c:(.text+0x916): undefined reference to al_set_display_flag' anim.c:(.text+0xad4): undefined reference toal_set_display_flag'
src/kernel/video.o: In function init_video': video.c:(.text+0x365): undefined reference toal_create_builtin_font'
src/kernel/audio.o: In function enable_audio': audio.c:(.text+0x142): undefined reference toal_set_mixer_gain'
audio.c:(.text+0x1a6): undefined reference to al_set_mixer_gain' src/kernel/audio.o: In functionset_mixer_gain':
audio.c:(.text+0x200): undefined reference to al_set_mixer_gain' src/kernel/dialog.o: In functioninit_dialog':
dialog.c:(.text+0x7): undefined reference to al_init_native_dialog_addon' src/kernel/dialog.o: In functionfinalize_dialog':
dialog.c:(.text+0x43): undefined reference to `al_shutdown_native_dialog_addon'

It would be nice if allegro-5.0 is properly supported, rather
than to tighten the version check. fedora-23 only has 5.0.

not paused when saving

When you press Ctrl-g, game is not paused.
While you select the file to save, the guard can
come close and you save in a very bad position.
All games I know of, freeze during the save dialog.

Btw, how is to restore?

install-data-hook makefile rule uses absolute paths

When make install DESTDIR="..." was executed by emerge, access was denied to /usr/share/mininim in make rule install-data-hook. This was caused by $(MKDIR_P) "${pkgdatadir}"
line.

I am not sure, this issue may be gentoo-specific, but I patched Makefile.am to use
"${DESTDIR}${pkgdatadir}" instead of "${pkgdatadir}". Luckily only one rule needed to be changed.

Makeinfo version is determined incorrectly

In configure.ac texinfo version is parsed out by sed:

texinfo_version=`$MAKEINFO --version | $SED -n 's/^makeinfo.* \(@<:@@<:@:digit:@:>@.@:>@*\)$/\1/p'`

In my gentoo with texinfo v6.1 makeinfo binary is symlink to texi2any and --version string is:

$ makeinfo --version
texi2any (GNU texinfo) 6.1

Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

To configure without fails I changed sed line to

$SED -n '1s/^.* \(@<:@@<:@:digit:@:>@.@:>@*\)$/\1/p'

sword doesn't work

In original game, the sword is taken on-guard
automatically when the guard is seen. But minimim
doesn't take the sword out, so guard just kills me.

sword should be automatically awarded

If you cheat the guard and enter the second
level without taking the sword, you should be
awarded with the sword automatically. Otherwise
there is no way to go any further. Original game
did exactly that. There was no dead-end if you
enter level2 without a sword.

Enemies see main character between screens

I played original game many years ago and cannot be entirely sure here.
When player gets to second screen(below first room) soldier from the right screen immediately start charging and eventually moves to current screen. In original game all positions in this screen were safe.

Seg fault.

Hi! :-)

Running the game with the --start-time=N switch (eg. mininim --start-time=7200), do the game to start and playing the introduction, but when pressing Enter the game starts but returns a segmentation fault and aborts.

I'm on Mint 17.3 x64 KDE and i installed the 0.10 version from homepage.

Bye! :-)
G.

Unable to compile on MacOs

When trying to compile branch next

on ./configure LUA_LIB="-llua50 -llualib50" I got:

checking for a Lua interpreter with version >= 5.0, < 5.1... none
configure: error: MININIM requires Lua 5.0 (or superior)

on lua -v :

Lua 5.3.4  Copyright © 1994-2017 Lua.org, PUC-Rio

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.