GithubHelp home page GithubHelp logo

raysan5 / raylib-games Goto Github PK

View Code? Open in Web Editor NEW
476.0 15.0 62.0 138.89 MB

A collection of games made with raylib

Home Page: https://www.raylib.com/games.html

License: zlib License

Makefile 13.74% C 85.87% GLSL 0.39%
raylib gamedev demos games indiegame

raylib-games's Introduction

raylib games

This is my collection of games made with raylib. Most of the games in this repo have been done in Global Game Jams.

Games included:

  • Dr Turtle and Mr Gamera (CEV 2014)
  • Just Do (GGJ2015)
  • Skully Escape (King Game Jam 2015)
  • Koala Seasons (emegeme 2015)
  • Light my Ritual (GGJ2016)
  • Wave Collector (GGJ2017)
  • Transmission Mission (GGJ2018)
  • Cat vs Roomba (GGJ2019)
  • Re-Pair (GGJ2020)
  • RETRO MAZE 3D (GGJ2021)

Classics directory includes some classic games:

  • Arkanoid
  • Asteroids
  • Asteroids (Survival Mode)
  • Floppy
  • Gold Fever
  • Gorilas
  • Missile Commander
  • Pang
  • Platformer
  • Snake
  • Space Invaders
  • Tetris

All games are usually updated to latest version of raylib. Feel free to send a PR if some games do not work properly!

license

All games sources are licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check LICENSE for further details.

Copyright (c) 2014-2024 Ramon Santamaria (@raysan5)

raylib-games's People

Contributors

drpaneas avatar ehmry avatar raysan5 avatar stefanerwinmayer avatar topherlee513 avatar u-sernam-e avatar

Stargazers

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

Watchers

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

raylib-games's Issues

Games may play too fast on web platform (where the demos are!)

Seems they have a hint to run at 60fps unless on a web platform.
On my computer, the web samples run at 144hz. That makes these games extremely difficult, nearly unplayable. Just a tad over 2x their intended play speed.
Probably not the best thing to have happen for the web demos page.

Seems like SetMusicVolume sets things in other part of the memory

Hi!, I'm writing a tetris like game, I build a board (board class) filled with white tiles on the left, right and bottom edges, and black on the rest. I Just started to use Music Streams, I load, play and unload the music stream on the game class, the loading occurs in the game constructor, the play occurs on the run function, before the game loop, the update occurs after the drawing inside the game loop, and unload occurs after exiting the game loop in the run function.
Now, everything goes fine until I use the function SetMusicvolume(music, 0.8f); just after the PlayMusicvolume(music);, on which, the tiles the are supposed to be black, are drawn dark blue. Already checked the debbuger and the color stays on black {0, 0, 0, 255} but its being drawn dark blue. Now, the board class is on its own header and source file, separated from game class file. the value of the black tiles (which is -1, the value is not changed, checked on the debbuger). Can you help me please? Thank you!

Error building "repair", "retro_maze_3d" and "wave_collector" games!

To fix this errors and successfully build them I edit this 4 source files:

  1. raylib-games/repair/src/repair.c (LINE 86)
-    SetTextureFilter(font.texture, FILTER_BILINEAR);
+    SetTextureFilter(font.texture, TEXTURE_FILTER_BILINEAR);
  1. raylib-games/repair/src/screen_gameplay.c (LINE 56)
-    SetTextureFilter(target.texture, FILTER_BILINEAR);
+    SetTextureFilter(target.texture, TEXTURE_FILTER_BILINEAR);
  1. raylib-games/retro_maze_3d/src/retro_maze_3d.c (LINE 219)
-    SetTextureFilter(screenTarget.texture, FILTER_BILINEAR);
+    SetTextureFilter(screenTarget.texture, TEXTURE_FILTER_BILINEAR);
  1. raylib-games/wave_collector/src/screen_gameplay.c (LINES 156, 158, 160)

(LINE 156):

-    waveTime = wave.sampleCount/wave.sampleRate;     // Total sample time in seconds
+    waveTime = wave.frameCount/wave.sampleRate;     // Total sample time in seconds

(LINE 158):

-    int samplesDivision = (int)(wave.sampleCount/requiredSamples);
+    int samplesDivision = (int)(wave.frameCount/requiredSamples);

(LINE 160):

-    totalSamples = wave.sampleCount/samplesDivision;
+    totalSamples = wave.frameCount/samplesDivision;

Several issues when compiling for web

When compiling games with latest raylib 3.5 and latest emscripten 2.0.11, some issues appeared. I think they are mostly related to memory management in the games.

  • wave_collector: font not rendered
  • transmission: out-of-bounds (some text array?)
  • skully_escape: out-of-bounds (some text array?)
  • light_my_ritual: lights not drawn
  • koala_seasons: not working

cat_vs_roomba missing "resources/cat_mouse.mod"

Hello, there is no asset file "resources/cat_mouse.mod" in the "cat_vs_roomba", which is loaded in source file "cat_vs_roomba.c", line 75:
music = LoadMusicStream("resources/cat_mouse.mod");

ADDITIONAL:
No "catch22.mod" found in resource folder, corresponding "screen_gameplay.c", line 309:
catch = LoadMusicStream("resources/catch22.mod");

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.