Code Monkey home page Code Monkey logo

robotfindskitten's Introduction

robotfindskitten

Screenshot

robotfindskitten is a my reimplementation of the game originally written by Leonard Richardson, now inside the Notepad.exe and uses the Entity Component System by the great EnTT๐Ÿš€.

The game uses DLL injection to modify the notepad and replace the default Win32 EditControl with Scintilla.

Also, You can find a little gun, so be careful with it!

A video Let's Play:

a_short_letsplay.mp4

Getting Started

The game can works only with the old version of Notepad.exe before Windows 11. To get it:

  • Open Settings > Apps
  • In the center pane select Advanced app settings > App execution aliases
  • Toggle off Notepad

And download the game:

  • Download Pre-built binaries from Releases page.
  • Unpack and run loader.exe

Build

In this project I wanted to practice with glm and boost libraries and I use vcpkg for:

  • boost
  • glm
  • EnTT

I created CMakePresets for 64-bit builds based on Ninja and MSVC. To build the game, run:

cmake . --preset x64-release
cmake --build --preset x64-release --target install

Binary files will be located in the ./out/bin/x64-release directory.

Details

  • I have implemented a cool header only Quad Tree collision detection algorithm based on @DragonEnergy article, You can check it in src/robotfindskitten/game/systems/collision.h. Tests are located in tests/test_collision.cpp

  • I update the notepad message pipe from GetMessageW() to the PeekMessageW() inside hook_GetMessageW() so now the notepad does not sleep for a message, just poll and run as a real game.

  • Remove Notepad's main menu and status bar, and changes the window title to fit the game's context

  • The game uses fixed time step with 60 fps (src/robotfindskitten/engine/time.h).

Special thanks

  • render-with-notepad for showing the abilities to implementation.

  • SuperNotepadBros for the clean iat table's hook example and an good game's time

  • The long and intresting story with examples about quad tree by user @DragonEnergy on stackoverflow

robotfindskitten's People

Contributors

39555 avatar

Watchers

 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.