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.
YouTube --> Where I live stream all of development
Roadmap --> General Idea of Process & future
- Programmed in C style C++
- DOD Design Structure
- Renderer Opengl
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
- Adjust to 32 x 32 cell matrix
- Reaches into block it is going to collide with and checks collision flag of block
- 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 rightFor x if player is in 2 cells simultaneosuly it must check top right and bottom right (right or depending on direction)