Allegro.cc - Online Community

Allegro.cc Forums » The Depot » [TINS2016] A nonamed point-and-click adventure.

This thread is locked; no one can reply to it. rss feed Print
[TINS2016] A nonamed point-and-click adventure.
Niunio
Member #1,975
March 2002
avatar

Finally, here you have my TINS 2016 entry.

{"name":"610371","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/3\/0390daa9ba6e33b6a0ae15740b9c9821.png","w":800,"h":600,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/3\/0390daa9ba6e33b6a0ae15740b9c9821"}610371

You're trapped in a laboratory cave in the South Pole, and you should escape. I had less time as expected (you know, real life) so the game is very, very, very short. Anyway, I created an almost full point-and-click game engine in about 16 hours. 8-)

The package I submitted has a really stupid bug, so you should use this one I uploaded to Dropbox. The source package includes the explanation of the stupid bug. Please, don't laugh too high. :-[

Source
Windows32 binaries

Windows binaries included full sources too, and should work using Wine in Linux and MacOS.

How to play

Just point and click with mouse. Note that the “use” verb is a bit tricky: Click “use”, then the first object, then the second object and don't move the mouse until the action is finished. If you move it, your avatar will forget what it should use. I know, pretty stupid, but I did the engine in two days.

[edit] I forgot that I titled the game "Snow Cave Scape". :-/

-----------------
Current projects: Allegro.pas | MinGRo

TinoR
Member #1,343
May 2001

I am impressed that you got a working point click engine in 1 day.

I was able to get out of the first room, but guess my character is still stuck
in the south pole haha.

Niunio
Member #1,975
March 2002
avatar

But you liked it, don't you?

I'm really tempted to extend and complete it to an actual engine.

-----------------
Current projects: Allegro.pas | MinGRo

GullRaDriel
Member #3,861
September 2003
avatar

I tried to build it under Linux, it somewhat built but I had no luck running it.
Here are the build logs:

gull@NiloreaDev:~/Téléchargements/TINS2016$ make
TINS 2016 -
fpc -gl -vh -vw -Mobjfpc -Sh -Si -Fusrc/ -Fusrc/* -FUobj/ src/prog.pas -obin/prog
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.0+dfsg-4 [2016/03/22] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling src/prog.pas
Compiling src/application.pas
Compiling src/engine.pas
Compiling ./src/Allegro5/allegro5.pas
Compiling ./src/Allegro5/al5base.pas
Compiling src/application.pas
Compiling ./src/Allegro5/al5font.pas
Compiling src/config.pas
Compiling src/logfile.pas
Compiling src/items.pas
Compiling ./src/Allegro5/al5image.pas
Compiling ./src/Allegro5/al5nativedlg.pas
Compiling ./src/Allegro5/al5ttf.pas
engine.pas(231,38) Hint: Parameter "aObject" not used
Linking bin/prog
/usr/bin/ld.bfd : avertissement : bin/link.res contient des sections de sortie; avez-vous oublié -T?
6214 lines compiled, 0.4 sec
3 hint(s) issued
bin/prog ready!
Finished TINS 2016
To create the documentation, run 'make docs'.

The error when launching prog:

prog: /build/allegro5-6JC_I6/allegro5-5.2.0/src/misc/vector.c:174: _al_vector_alloc_back: Assertion `vec->_itemsize > 0' failed.

I'll test the W32 binary @home this evening.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

TinoR
Member #1,343
May 2001

ya I would continue it if your into that type of game, they can take lot of time and be pretty fun to do if you make a big enough story. Im in the progress of a adventure game, that I use lua for the scripting and I hardly do changes to the c code now.

it has a interface like this and only uses still pictures you dont need to use mouse for the gameplay but you can,i might make it into a 3d game after i am done it.

bamccaig
Member #7,536
July 2006
avatar

I was able to build and run it in Linux. Wine did not care for the Windows binaries.

I like it. Great work!

Niunio
Member #1,975
March 2002
avatar

I tried to build it under Linux, it somewhat built but I had no luck running it.

What Linux are you using? What Allegro version? How did you installed Allegro? What Free Pascal compiler version?

I used Xubuntu 14.04, Allegro 5.2.0 compiled by myself and FPC 3.0.0 and have no problems.

@Tino Restivo: I like that interface. It remembers me some "Ultima" games.

bamccaig said:

I like it. Great work!

Thanks. :)

-----------------
Current projects: Allegro.pas | MinGRo

GullRaDriel
Member #3,861
September 2003
avatar

I'm using Debian 4.5.4-1 with allegro 5.2.0-1 and fpc 3.0.0+dfsg-4

Note that it didn't thrown an error when compiling, just a warning.

It just crash when launching it.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

bamccaig
Member #7,536
July 2006
avatar

amarillion
Member #940
January 2001
avatar

Windows binaries worked for me, I just needed to add some more dlls. I managed to solve the puzzle and get out of the snow. I think it's a nice engine for a point and click adventure. This type of game stands or falls with the story, puzzle and jokes, so it all depends on that whether you should continue. The readme didn't really tell me much more about your plans for the storyline, but if you have good ideas, then go for it.

--
Martijn van Iersel | My Blog | Sin & Cos | Tegel tilemap editor | TINS 2020

Bruce Perry
Member #270
April 2000

I liked it too - nice and colourful, and the art style has character :)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

GullRaDriel
Member #3,861
September 2003
avatar

Windows binaries worked for me. It was a nice play.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Niunio
Member #1,975
March 2002
avatar

Thanks. :D

I'm really tempted to fill the gaps in the engine, then do an actual game. Unfortunatelly I'm having some real-life(tm) issues right now. :/

I'm using Debian 4.5.4-1 with allegro 5.2.0-1 and fpc 3.0.0+dfsg-4

Note that it didn't thrown an error when compiling, just a warning.

It just crash when launching it.

I don't know what would be wrong with it. If it's only one warning it should be Ok (it did it in my computer too). But yes, it looks like it should be debugged to know whats happening...

-----------------
Current projects: Allegro.pas | MinGRo

GullRaDriel
Member #3,861
September 2003
avatar

I think it's related to my allegro version, because the backtrace was about al_vector_something and ttf funcs.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Go to: