Skip to content

OpenAlice is a open source game written in C++ that is heavily inspired by the 2007 game Alice Greenfingers

License

Notifications You must be signed in to change notification settings

SeanTheSheepCS/OpenAlice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

223 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Displays the title OpenAlice

What is OpenAlice?

OpenAlice is a open source game written in C++ that is heavily inspired by the 2007 game Alice Greenfingers. In OpenAlice you control Alice, a scarecrow who wants to plant crops and watch them grow. Once they mature, Alice can sell her produce at the market.

How To Play

  • Pressing the Q key picks up an item.
  • Pressing the E key uses said item. You can refill your watering can when it is empty by clicking E next to the well while you are holding it. You can go to sleep by pressing E next to Alice's house while you have no items in your hands.
  • You can till soil by using the hoe on grass and plant seeds by using them on tilled dirt.
  • Water your plants every day so that they grow big and produce lots of crops!
  • Harvest your crops by placing them in crates to be sold! Crates fill once they have 10 vegetables inside.
  • Going to sleep saves your progress, so don't quit without going to sleep first!

Windows 10 (64 Bit) Installation

Simple Installation

First, clone the repository to your computer. Navigate to the folder where you want to keep the OpenAlice files and run the following command.

Second, navigate into the OpenAlice directory.

cd OpenAlice

Third, move to the Windows 10 Release 64 bit branch.

git checkout windows_10_64_bit_v1

Lastly, go to the folder called game and click on alice_game.exe.

Compile-It-Yourself Installation

To compile the code yourself, please install Make along with the following two zipped files and extract them.

By this step, you should have two files, one called "mingw64" and one called "SFML-2.5.1". Place those two folders wherever you please, but remember where you put them. Next, clone this repository to your computer by running the following command.

Next, go to the build_windows_10 folder and open the Makefile because we will need to make modifications to it.

  • Modification 1: Change the first line of the Makefile to reflect the location of your SFML installation. For example, if you downloaded SFML to the folder C:/Users/Tom/Desktop/, you would change the first line to "IPATH=C:/Users/Tom/Desktop/SFML-2.5.1/include"
  • Modification 2: Change the seventh line of the Makefile to reflect the location of your SFML installation. For example, if you downloaded SFML to the folder D:/Libraries/, you would change the seventh line to "LPATH=D:/Libraries/SFML-2.5.1/lib"
  • Modification 3: Change the ninth line of the Makefile to reflect the location of your MINGW64-GCC7.3.0 installation. For example, if you downloaded MINGW64-GCC7.3.0 to the folder C:/BigFolder/SmallFolder/, you would change the ninth line to "CXX=C:/BigFolder/SmallFolder/mingw64/bin/g++.exe"

Next, navigate to the bin folder inside the SFML-2.5.1 folder and copy all of the .dll files there into the build_windows_10 directory of OpenAlice.

After these changes, please run the following command inside the build_windows_10 directory.

make alice_game

After the code has compiled, run alice_game.exe.

Ubuntu 20 (64 Bit) Installation

Simple Installation

First, you need to install SFML to your computer. You can do that by running the following command:

sudo apt-get install libsfml-dev

Then, you need to clone the repository and switch to the correct branch by running the following commands:

cd OpenAlice
git checkout ubuntu_20_64_bit_v1

To run the game afterwards, all you have to do is type the following command

./game/alice_game

Compile-It-Yourself Installation

You need to install three things to make the compile-it-yourself version work.

  • SFML, we will install it once for it's headers and so that we can link to it, and then once more for usage after we no longer need to compile our code.

    Install one can be installed from https://www.sfml-dev.org/download/sfml/2.5.1/ by choosing the "Linux GCC-64 bit" option. Please extract this file and put it in a place that you will remember, we will need to know it's path for later steps. After you can run OpenAlice successfully, feel free to remove this install, we will only need the second one.

    Install two can be installed by running the following command:

    sudo apt-get install libsfml-dev
  • Make, which can be installed by running the following command:

    sudo apt-get install make
  • G++, which can be installed by running the following command:

    sudo apt-get install g++

After all the installations, please clone the OpenAlice repository by running the following command

Navigate to the build_ubuntu_20 folder by running the following command:

cd OpenAlice/build_ubuntu_20

There is a Makefile in that folder. Please make the following modifications to the Makefile.

  • Modification 1: Change the first line of the Makefile to reflect the location of your SFML installation. For example, if you downloaded SFML to the folder ~/Desktop/MyFolder, you would change the first line to "IPATH=~/Desktop/MyFolder/SFML-2.5.1/include"
  • Modification 2: Change the seventh line of the Makefile to reflect the location of your SFML installation. For example, if you downloaded SFML to the folder ~/Desktop/, you would change the seventh line to "LPATH=~/Desktop/SFML-2.5.1/lib"

After these modifications, please run the following command.

make alice_game

Lastly, OpenAlice can be started by running the following command.

./alice_game

What Libraries Does OpenAlice Use?

OpenAlice uses SFML for graphics and audio. The following link will take you to a page that contains tutorials on using SFML and a link where you can donate to the creators of this library. https://www.sfml-dev.org/

License

OpenAlice has been released into the public domain. Anyone is free to use, modify, or distribute this work for any purpose. The Unlicense applies to the source code and a zlib/png license applies to the SFML library which this game depends on. If I have made a licensing mistake or any mistakes in the proper procedure for releasing the contents of this repository to the public domain, please contact me by opening up an issue on this repository.

CC0
To the extent possible under law, Sean Kenny has waived all copyright and related or neighboring rights to OpenAlice. This work is published from: Canada.

If you are curious about any aspect of OpenAlice, please open up an issue on this repository with your question.

Thank you for interest in OpenAlice!

About

OpenAlice is a open source game written in C++ that is heavily inspired by the 2007 game Alice Greenfingers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published