GithubHelp home page GithubHelp logo

galaxyshad / pascal-sonic Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 3.0 2.41 MB

Sonic game made using Object Pascal programming language

License: MIT License

Pascal 100.00%
fangame fangames game gamedev lazarus lazarus-ide object-pascal pascal raylib sonic

pascal-sonic's Introduction

Pascal-Sonic


Sonic game made using Object Pascal programming language and RayLib.

How to run?

You can download a pre-built version of the game from the Releases Section. Alternatively, you can build it yourself by following the instructions below.

How to build?

Lazarus IDE

  1. Clone this repository:
    git clone https://github.com/GalaxyShad/Pascal-Sonic.git
    
  2. Download the runtime libraries from RayLib and place them in the root directory of the project.
  3. Install Lazarus IDE.
  4. Open the project in Lazarus IDE and build it.

FPC

  1. Make sure that you have FPC installed
  2. Clone this repository:
git clone --recurse-submodules -j8 https://github.com/GalaxyShad/Pascal-Sonic.git && cd Pascal-Sonic
  1. Compile:
fpc -MOBJFPC game.lpr -Fu"ray4laz/source"
  1. (if you on Windows) copy dlls from ray4laz/libs for your platform

Dependencies

Features

  • 360-degree movement
  • Image-based collisions (a pixel with alpha == 0x00 is considered empty)
  • High-speed movement
  • Jumping
  • Sound effects
  • Spindash

Controls

  • Arrow keys - movement
  • Z key - jump/charge spindash
  • D key - enable/disable drawing of collision masks

How to create your own levels

You can create your own levels by editing the textures/big-lvl.png file. Remember, a pixel is considered collideable if its alpha value is 0.

Why not use a higher-level programming language?

Cuz challenge ๐Ÿ˜Ž

License

Sonic The Hedgehog is a trademark of SEGA. Please do not use any images containing Sonic for commercial purposes. The source code is released under the MIT license.

pascal-sonic's People

Contributors

galaxyshad avatar

Stargazers

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

Watchers

 avatar

pascal-sonic's Issues

Awesome

Cool. This should be discord. In the raylib channel. In the madewithraylib branch.

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.