Coder Social home page Coder Social logo

porem5002 / flappy-odin Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 158 KB

A flappy bird clone developed using the Odin Programming Language and Raylib

License: MIT License

Odin 97.41% Batchfile 1.81% Makefile 0.79%
game odin-lang odin-programming-language raylib raylib-odin

flappy-odin's Introduction

Flappy Odin

A flappy bird clone developed using the Odin Programming Language and Raylib.

Install

To install the game checkout the Releases section and select the binaries that are compatible with your platform.

If there are no current releases available for your platform, consider building the project on your machine, see how to do it here.

Play

To play the game run the executable called flappy_odin.

Controls:

  • ESC - Exit
  • ENTER - Proceed/Unpause
  • SPACE - Jump
  • F - Toggle Fullscreen

Build

If you want to build the project in your own machine you will need to have the Odin Programming Language installed in your PC and make it accessible via your PATH environment variable.

After doing this, run the following commands according to your platform and your needs.

On Windows

Generate Release Build:

.\build.bat release

Generate Debug Build:

.\build.bat

On Linux

Generate Release Build:

make release

Generate Debug Build:

make

License

MIT License

flappy-odin's People

Contributors

porem5002 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

flappy-odin's Issues

Errors when building the project

Hi! I tried to build the project following the instruction, which is just to launch built.bat, but I get:

PS C:\work\exp\odin\test-ws\flappy-odin> .\build.bat
Building Debug Build...
C:/work/exp/odin/test-ws/flappy-odin/src/main.odin(10:36) Error: Undeclared name: a
        SCREEN_TINT_ON_PAUSE := rl.Color { a = 100 }
                                           ^
C:/work/exp/odin/test-ws/flappy-odin/src/main.odin(11:32) Error: Undeclared name: r
        ... Color { r = 201, g = 213, b = 233, a = 255 } ...
                    ^
C:/work/exp/odin/test-ws/flappy-odin/src/main.odin(11:41) Error: Undeclared name: g
        ...  = 201, g = 213, b = 233, a = 255 } ...
                    ^
C:/work/exp/odin/test-ws/flappy-odin/src/main.odin(11:50) Error: Undeclared name: b
        ...  = 213, b = 233, a = 255 } ...
                    ^
                    ^
C:/work/exp/odin/test-ws/flappy-odin/src/main.odin(12:29) Error: Undeclared name: r
        UI_TEXT_COLOR := rl.Color { r = 255, g = 180, b = 0, a = 255 }
                                    ^
C:/work/exp/odin/test-ws/flappy-odin/src/main.odin(12:38) Error: Undeclared name: g
        UI_TEXT_COLOR := rl.Color { r = 255, g = 180, b = 0, a = 255 }
                                             ^
                                                      ^
C:/work/exp/odin/test-ws/flappy-odin/src/main.odin(12:54) Error: Undeclared name: a
        UI_TEXT_COLOR := rl.Color { r = 255, g = 180, b = 0, a = 255 }
                                                             ^
C:/work/exp/odin/test-ws/flappy-odin/src/obstacles.odin(18:35) Error: Undeclared name: r
        ... Color { r = 28, g = 27, b = 26, a = 255 } ...
                    ^
C:/work/exp/odin/test-ws/flappy-odin/src/obstacles.odin(18:43) Error: Undeclared name: g
        ... r = 28, g = 27, b = 26, a = 255 } ...
                    ^
C:/work/exp/odin/test-ws/flappy-odin/src/obstacles.odin(18:51) Error: Undeclared name: b
        ... g = 27, b = 26, a = 255 } ...
                    ^
C:/work/exp/odin/test-ws/flappy-odin/src/obstacles.odin(18:59) Error: Undeclared name: a
                    ^

Is there something I might be missing?

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.