8000 GitHub - tailogs/RPG_GAMES: RPG_GAMES - An attempt to make a game in SFML and C++
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tailogs/RPG_GAMES

Repository files navigation

RPG_GAMES

RPG_GAMES is an attempt to create a game using SFML and C++.

Project Description

This project is a basic RPG game structure using the SFML library for graphics, window input, and system tasks. The game includes:

  • Character control
  • Chunk generation and rendering
  • Inventory management
  • Chat system
  • Debug mode

Project Structure

  • coding/: Source code of the project
    • main.cpp: Main file with the game loop and core functionality
    • Chunk.cpp, Chunk.hpp: Definitions and implementations for chunks
    • Debug.cpp, Debug.hpp: Debugging tools
    • DecorationSet.cpp, DecorationSet.hpp: Decorations for the game
    • Globals.cpp, Globals.hpp: Global variables and functions
    • Inventory.cpp, Inventory.hpp: Inventory management
    • MyCamera.cpp, MyCamera.hpp: Camera control
    • my_resource.cpp, my_resource.hpp: Resource management
    • my_string.cpp, my_string.hpp: String utilities
    • my_time.cpp, my_time.hpp: Time utilities
    • PerlinNoise.cpp, PerlinNoise.hpp: Perlin noise generation
    • Player.cpp, Player.hpp: Player definition and control
    • TileSet.cpp, TileSet.hpp: Tile management
  • resource/: Resources for the game
    • fonts/: Fonts
    • img/: Images (tiles, sprites, etc.)
  • Makefile: Build script for the project
  • resource.rc: Resource file for Windows
  • README.md: This file

Tutorial install SFML (mingw) to VSCODE

You need to download the 64-bit MinGW (the latest version is called WinLibs MSVCRT 13.1.0 (64-bit)) from this website: https://www.sfml-dev.org/download/sfml/2.6.1/. Then, add it to the path variable above your existing MinGW installation, so that SFML can work properly.

Video: https://youtu.be/jKbWBcVPLWQ?si=V_tRKK-mcBykcHBP

Building and Running

  1. Make sure you have the necessary dependencies installed, including SFML.
  2. Clone the repository and navigate to the project directory:
    git clone <URL>
    cd RPG_GAMES
  3. Run the make command to build the project:
    make
  4. Run the compiled executable:
    ./main.exe

Makefile Information

  • all: Default target. Performs compilation and linking.
  • compile: Compiles source files.
  • link: Links object files and resources.
  • clean: Cleans intermediate files and the executable.
  • run: Builds and runs the executable.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Screenshots

image

About

RPG_GAMES - An attempt to make a game in SFML and C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0