Recent

Author Topic: Game Contest 2018  (Read 111115 times)

mrguzgog

  • Jr. Member
  • **
  • Posts: 71
Re: Game Contest 2018
« Reply #45 on: January 14, 2018, 04:50:30 pm »
I'd like to enter something - no idea what yet though!

I use Linux but do have access to a Windows machine so could maybe compile for the 97% of folk who use that OS. I'm looking for the easiest game library to use... I've dabbled with SDL (pointers - how quaint!) and Allegro (seems ok) but would like to look into SFML. Does anyone have experience of using this on Linux or cross-platform? I couldn't figure out where to start with it on Linux and asked in the general section of the forum but got no answers... https://forum.lazarus.freepascal.org/index.php/topic,39209.0.html

I don't really want the hassle of building any sort of installer - especially for Windows - is it possible to distribute a game as an executable alongside the necessary libraries and resources in a single folder if using any of the mentioned libs?

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Game Contest 2018
« Reply #46 on: January 14, 2018, 07:38:57 pm »
Quote
I'd like to enter something - no idea what yet though!

There is enough time to think!

Quote
I don't really want the hassle of building any sort of installer - especially for Windows - is it possible to distribute a game as an executable alongside the necessary libraries and resources in a single folder if using any of the mentioned libs?

Sure, you can give just the executables and libraries used.

mrguzgog

  • Jr. Member
  • **
  • Posts: 71
Re: Game Contest 2018
« Reply #47 on: January 14, 2018, 09:03:17 pm »
I think I'll stick with Allegro.pas after all, it seems to work just fine (although the instructions on the wiki http://wiki.freepascal.org/Allegro.pas_tutorial_0 aren't quite right/up to date for Linux). Time for some thinking while I cobble together a framework/state machine...

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Game Contest 2018
« Reply #48 on: January 15, 2018, 10:46:39 am »
I think I'll stick with Allegro.pas after all, it seems to work just fine (although the instructions on the wiki http://wiki.freepascal.org/Allegro.pas_tutorial_0 aren't quite right/up to date for Linux). Time for some thinking while I cobble together a framework/state machine...
I know documentation isn't complete but I'm still working on Allegro.pas.  Of course, I'll be glad to help answering any question here or at Pascal Game Development forum.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Game Contest 2018
« Reply #49 on: January 15, 2018, 11:54:14 am »
I think I'll stick with Allegro.pas after all, it seems to work just fine (although the instructions on the wiki http://wiki.freepascal.org/Allegro.pas_tutorial_0 aren't quite right/up to date for Linux). Time for some thinking while I cobble together a framework/state machine...

Allegro is strong and a very stable library and a large number of projects are made using this library. You cannot be wrong at this side-

mrguzgog

  • Jr. Member
  • **
  • Posts: 71
Re: Game Contest 2018
« Reply #50 on: January 15, 2018, 04:54:57 pm »
I know documentation isn't complete but I'm still working on Allegro.pas.  Of course, I'll be glad to help answering any question here or at Pascal Game Development forum.
[/quote]

Well I do have a question you might be able to help with :D - how would I statically link so I could just distribute a single executable with assets etc? I tried fpc -k-static (as per this thread: http://forum.lazarus.freepascal.org/index.php?topic=15712.0) but it throws out an error message

Code: Pascal  [Select][+][-]
  1. /usr/bin/ld: cannot find -lallegro
  2.  

If I just compile and run my program normally everything works fine. I'm not too familiar with the compiling/linking business!

This probably isn't the right thread to ask this question so feel free to point me to the right place :D

@turrican Yes, I've used allegro before with C years ago, and D more recently but I'd prefer use Pascal.


Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Game Contest 2018
« Reply #51 on: January 16, 2018, 01:37:49 pm »
I know documentation isn't complete but I'm still working on Allegro.pas.  Of course, I'll be glad to help answering any question here or at Pascal Game Development forum.

Well I do have a question you might be able to help with :D - how would I statically link so I could just distribute a single executable with assets etc? I tried fpc -k-static (as per this thread: http://forum.lazarus.freepascal.org/index.php?topic=15712.0) but it throws out an error message

Code: Pascal  [Select][+][-]
  1. /usr/bin/ld: cannot find -lallegro
  2.  

If I just compile and run my program normally everything works fine. I'm not too familiar with the compiling/linking business!
You need Allegro development libraries (the ".a" ones) to compile it statically. It is possible, but Allegro.pas expects it dynamically linked so you'll need to modify Allegro.pas to accomplish it. I never tried so I have no idea how hard it can be.

This probably isn't the right thread to ask this question so feel free to point me to the right place :D
A new thread here or at PGD should be the best option.  ::)
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

mrguzgog

  • Jr. Member
  • **
  • Posts: 71
Re: Game Contest 2018
« Reply #52 on: January 16, 2018, 03:27:30 pm »
You need Allegro development libraries (the ".a" ones) to compile it statically. It is possible, but Allegro.pas expects it dynamically linked so you'll need to modify Allegro.pas to accomplish it. I never tried so I have no idea how hard it can be.
I have the 'dev' libraries installed already and it doesn't work.

If I use the default dynamic linking, that means the user will have to install allegro themselves on Linux (not a big deal except the version in their repo may not be up to date) but what about on Windows - is an installer needed or can the libraries just be shipped in the application directory?

EDIT: I want to keep things as simple as possible so I can concentrate on the game  :D

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Game Contest 2018
« Reply #53 on: January 16, 2018, 06:01:13 pm »
If I use the default dynamic linking, that means the user will have to install allegro themselves on Linux (not a big deal except the version in their repo may not be up to date)

linux is always like that, users must know how to install things

but what about on Windows - is an installer needed or can the libraries just be shipped in the application directory?

just copy the dll to the exe folder

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Game Contest 2018
« Reply #54 on: January 17, 2018, 11:09:17 am »
You need Allegro development libraries (the ".a" ones) to compile it statically. It is possible, but Allegro.pas expects it dynamically linked so you'll need to modify Allegro.pas to accomplish it. I never tried so I have no idea how hard it can be.
I have the 'dev' libraries installed already and it doesn't work.
So, download sources and compile yourself.  Changing the CMAKE configuration you can build the libraries the way you want (static, dynamic, debugging, monolithic...) but you would need some time and tries to learn how to do what you want.

About the other questions, just what lainz said. ;)
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

mrguzgog

  • Jr. Member
  • **
  • Posts: 71
Re: Game Contest 2018
« Reply #55 on: January 17, 2018, 04:37:04 pm »
Don't really have the time for learning how to reconfigure/recompile when I'm learning Allegro, re-learning Pascal and trying to figure out a game at the same time! :D I'll stick with dynamic linking ;)

I've just got my basic framework up and running with a simple menu implemented - good start but still no idea what I'll be making LOL. Need some advice on timing though.... new thread for that.


Paul_

  • Full Member
  • ***
  • Posts: 143
Re: Game Contest 2018
« Reply #56 on: January 19, 2018, 09:34:08 pm »
This will be my "beautiful" retro entry :)

https://imgur.com/a/SeVyt

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Game Contest 2018
« Reply #57 on: January 20, 2018, 11:49:49 am »

mrguzgog

  • Jr. Member
  • **
  • Posts: 71
Re: Game Contest 2018
« Reply #58 on: January 20, 2018, 01:19:13 pm »
Does the 'modern game' have to be a remake of an old game just with modern graphics etc or does it encompass any type of game? I've got an idea but it's not based on an old game AFAIK.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Game Contest 2018
« Reply #59 on: January 20, 2018, 01:27:12 pm »
Does the 'modern game' have to be a remake of an old game just with modern graphics etc or does it encompass any type of game? I've got an idea but it's not based on an old game AFAIK.

Anything. I changed the rules so anyone can enter with his ideas.

 

TinyPortal © 2005-2018