Git Product home page Git Product logo

entt-pacman's Introduction

EnTT Pacman

License: MIT

An example of how to use the ECS part of the EnTT Framework

Screenshot

What is this?

This is a tutorial on how to use the EnTT framework to make a game. This project is for people who are just starting out with EnTT and not too sure how use it.

The code isn't perfect. It could certainly be improved in some areas. Any kind of feedback is welcome. Be sure to ask me questions if something is unclear. The EnTT Gitter channel is a great place for discussion.

Installing SDL2

This uses the SDL2 Library for input and rendering. CMake will find it if it's on your system. For details on how to install SDL2, see the installation page.

If you're on MacOS,

brew install sdl2

If you're on a Debian based system,

sudo apt-get install libsdl2-dev

If you're on Windows,

vcpkg install sdl2

Building

EnTT is bundled with the project to make building this as easy as possible.

git clone https://github.com/indianakernick/EnTT-Pacman.git
cd EnTT-Pacman/build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
./pacman

It's not exactly the same as the real thing

I read The Pacman Dossier many times during development. If you notice a difference between this game and the real thing, that wasn't an oversight. Perfectly recreating the real thing would have made this project quite a bit more complicated. I think it's complicated enough as it is!

entt-pacman's People

Contributors

indianakernick avatar kuflower avatar plan1231 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

entt-pacman's Issues

Windows scaling issue

Hello.
I have problem with window of app scalling - is so huge. core/app.cpp hot to change there scaling to two times smaller window ? Thank you for any help.

Debug Assertion Failed: _CrtIsValidHeapPointer(block)

I tried to build and run this project on Windows, but I get this error:

Debug Assertion Failed: _CrtIsValidHeapPointer(block)

This line causes the error:

texture(G2D::loadSurface(path))

The exception is thrown in Simpleton/Memory/alloc.hpp, at this code:

  /// Deallocate memory
  inline void dealloc(void *const ptr) noexcept {
    operator delete(ptr);
  }

I have no idea what causes the error, or how could I fix it.

compilation error ?

HI,
I get this error.
1>MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
The linker->system->subsystem is defined as consol.
even when i fix that .. I still get the same error.
BR

sdl2 trouble on Windows

hello, thanks for sharing this.

sorry for asking this newbie question, but I don't know how to deal with sdl2...
I am getting this error when doing:

D:\_CODE\_C\EnTT-Pacman\build>cmake -DCMAKE_BUILD_TYPE=Release ..
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
Finding SDL2
CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cm
ake:230 (message):
  Could NOT find SDL2 (missing: SDL2_LIBRARY)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPH
SA_FAILURE_MESSAGE)
  cmake/modules/FindSDL2.cmake:173 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:71 (find_package)


-- Configuring incomplete, errors occurred!
See also "D:/_CODE/_C/EnTT-Pacman/build/CMakeFiles/CMakeOutput.log".
See also "D:/_CODE/_C/EnTT-Pacman/build/CMakeFiles/CMakeError.log".

I installed sdl2 with
vcpkg install sdl2 but not sure where is it or if I need to add the path to the system environment...

Maybe I must add that path?
C:\src\vcpkg\buildtrees\sdl2\

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.