Skip to content

MiniJ147/Vision-Game

Repository files navigation

Vision Game

Table of Contents

About

Desc:

Small single player horror game that I am working on. This project came about due to a nightmare I had, and after I woke up I relized it would make an amazing game.

Socials

YouTube --> Where I live stream all of development
Roadmap --> General Idea of Process & future

Tech Info

  • Programmed in C style C++
  • DOD Design Structure
  • Renderer Opengl

Documentation

Table of Contents

Player

Player Create(Player* player, float x, float y, const char* texture_path)

 Initializes basic player info, such as positions and textures. Then centers world camera around the player.


Tick(Vec2f* pos, Map m, float move_speed, float delta_time)

 Allows player to move every frame.


void collision_check_x(int dir, Vec2f* pos, Map m, float move_speed, float delta_time) //and y

steps

  1. Adjust to 32 x 32 cell matrix
  2. Reaches into block it is going to collide with and checks collision flag of block
  3. If it is colliable it prevents future movement

Special Note

   For y if player is in 2 cells simultaneously it must check bottom left and bottom right
   For x if player is in 2 cells simultaneosuly it must check top right and bottom right (right or depending on direction)

expl2 explination



Rendering



Map System



Monster

About

Opengl C style c++ (mostly) 2d survival game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages