Giter Site home page Giter Site logo

xerosugar / rpgexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raylib-extras/rpgexample

0.0 0.0 0.0 8.49 MB

An example of a simple RPG game using raylib

License: zlib License

C++ 95.87% Batchfile 0.01% Lua 0.46% C 0.87% Makefile 2.80%

rpgexample's Introduction

Raylib RPG Example

An example RPG Game.

Demo Gamplay https://youtu.be/9apXiHKIlsg

Design Document

https://docs.google.com/document/d/1lxpR6WbbjmCi9X_seGPYPYz7UhFcAKkX5Xl3pVfEwHs/edit?usp=sharing

Video Overview

https://youtu.be/krykjMt9ZKQ

Building

The RPG Example uses premake just like all other items in raylib extras. A tutorial on how to build a raylib project with premake can be found here. https://github.com/raylib-extras/game-premake

This example includes the visual studio projects that were created by premake, but other build systems can be used (like make files for linux) by running premake5 for the desired platform. The example uses raylib as a sub module, so be sure that you have updated it.

State

The current example is feature complete and would be considered in 'beta' state. It has all the main features that are required by the game.

Features

This sample has examples of how to do the following things in raylib

  • Game State
  • Menus
  • Quiting the game from menus
  • Pause/Resume Game
  • Tile Map with object layers
  • Click to Move
  • 2D Camera that keeps the player in view
  • Simple Effects
  • Basic AI
  • Background Music
  • Sound Effects
  • Resource Loading

C++

This example does use C++. The use of C++ has been keept at a resonable level. C++ is used for

  • Containers (vector, list, map, etc...)
  • Simple classes
  • Menu Screens

Every use of C++ in this project can be replicated in C, or any other language. The main reason for using C++ was to not clutter up the project with implementations of common containers such as linked lists. Do not fear the C++. C++ is just another tool to use to solve problems.

rpgexample's People

Contributors

jeffm2501 avatar xerosugar 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.