Coder Social home page Coder Social logo

blat-blatnik / pictomage Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 36.07 MB

A top-down 2D puzzle-shooter game. Made in 1 week for the Raylib 5K gamejam.

Home Page: https://blatnik.itch.io/pictomage

License: MIT License

HTML 0.34% C 63.05% Batchfile 0.10% JavaScript 36.33% Shell 0.18%
game gamejam raylib windows macosx c99 linux

pictomage's Introduction

Pictomage

A top-down 2D puzzle-shooter game. Made in 1 week for the Raylib 5K gamejam. Play it from your browser on itch.io, or download a native binary from the Releases page.

Screenshot

System requirements

  • WASM capable web browser (for the browser version).
  • 1 GHz 64-bit CPU.
  • 256 MB of RAM.
  • OpenGL 3.3 / DirectX 10 capable GPU.

How to build

Web (Emscripten)

This all assumes you are using Windows 10. You will need the Emscripten SDK:

  1. Go to the emsdk github page.
  2. Click on the green Code dropdown and then Download ZIP.
  3. Extract the zip to a folder called Emscripten, and put that folder wherever you want.
  4. In the start menu search bar, search for path. Then click on Edit the system environment variables.
  5. In the System variables list, find the Path variable, select it, then click Edit.
  6. Press New, and type out the path to the Emscripten folder (e.g. C:\dev\Emscripten).
  7. Press Ok to close all the open windows.
  8. To make sure everything worked, open up a new command prompt, and run emsdk. It should say Missing command; Type 'emsdk help'..
  9. In the same command prompt, run emsdk update followed by emsdk install latest.
  10. You can now just run build_web.bat inside this project to build the game. The output goes into bin/web/.
  11. Run run_web.bat to run the game in your browser.

Windows (Visual Studio)

  1. You need to download and install Visual Studio 2022.
  2. When you need to select which components to install, make sure Desktop development with C++ is ticked.
  3. Open up Pictomage.sln in Visual Studio and click the run button at the top. The output goes into bin/windows/

Windows (MinGW)

Open a command line at the root of the project, and compile the code like this:

$ gcc -L./lib src/*.c -lraylib_windows_x64 -lwinmm -lgdi32 -o Pictomage.exe

Alternatively, you can run build_windows.bat, which will compile the code, and also embed the icon into the executable.

Mac (clang)

Open a terminal at the root of the project, and compile the code with clang:

$ clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL src/*.c -L./lib -lraylib_mac_x64 -o Pictomage -target x86_64-apple-macos10.12

This will produce an x64 executable, Pictomage, that you can run. If you want to compile for arm64 (Apple M1), run the following instead:

$ clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL src/*.c -L./lib -lraylib_mac_arm64 -o Pictomage -target arm64-apple-macos11

The build_mac.sh script will compile the code for both targets, package it into a universal binary, make an app bundle, as well as a DMG installer. Run it like this:

$ chmod +x macbuild.sh
$ ./macbuild.sh

The output will be in bin/mac/.

Linux (X11, GCC)

Open a terminal at the root of the project, and compile the code like this:

$ gcc -Wno-unused-result -L./lib src/*.c -lraylib_linux_x64 -lm -ldl -lpthread -lGL -lX11 -o Pictomage

Credits

The coding and level design was done by Blat Blatnik. The art was made by Olga Ważny. Many thanks to all the friends that playtested the game!

Sound effects

name filename original author source
Explosion explosion.wav EFlexMusic ([email protected]) freesound.org
Glass shatter shatter.wav Profispiesser freesound.org
Camera flash snap2.wav HughGuiney (@LordPancreas) freesound.org
Release eject.wav Iridiuss freesound.org
Turret hit turret-destroy.wav TROLlox_78 freesound.org
Turret shot long-shot.wav morganpurkis freesound.org
Bullet hit bullet-wall.wav FilmmakersManual freesound.org
Ear ringing ringing1.wav ArrowheadProductions freesound.org
Teleport 1 teleport.wav steaq freesound.org
Teleport 2 teleport.wav krzysiunet freesound.org
Teleport 3 teleport.wav DWOBoyle freesound.org

Libraries

The game was made with Raylib. Raylib was made by Ray (@raysan5) and many open source contributors.

pictomage's People

Contributors

blat-blatnik avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.