Skip to content

a simple c framework for vulkan grafhichs and gamedev

License

Notifications You must be signed in to change notification settings

shaikhubaidahmed/ykan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ykan

YKAN is a game engine writTen in c for game and graphics development it makes it easy to write Vulkan apps easier without needing to struggle with vulkan's long setup process.

##what ykan has

done

  • window creation

todo

  • vk init
  • suport for android and vr
  • raytracing
  • main website
  • docs
  • drawing
  • shaiders
  • colision
  • 2d support
  • 3d support
  • 2D and 3D colision
  • 2D and 3D phisichs engine
  • editor (the engine will not work like unity unreal or godot is not a engine with gui but will have some tools for helping building levels in 2D and 3D)
    • 2D tileset editor
    • objects (player pos enemy spown)
    • tile colision
    • 3D level editor (that also has objects)

##basic code

To make a ykan project you need to setup some things.

  1. install YKAN
  2. install glfw3

now let's go to the code (note this code is written in c but ykan for the reason that is made in c libs that make other languages use ykan are easy to make)

//import YKAN
#include <ykan.h>

//the update function
int update(){
  return,0
}


//the main function
int main(int argc, char const *argv[]) {

  //the main struct
  ykApp app;

  //setup the struct
  app.name='app';
  app.createWindow=YkcreateWin;
  app.init=YkinitVk;
  //in this way you can create custom init functions for the best performance
  app.update=update;
  app.run=YkRun;

  //create window and init vulkan
  app.createWindow(420,500,"my app");
  app.init();

  //update (draw function)
  app.update();


  //the last line shoud be the run
  app.run();
  return 0;
}

this project is open source

please help me make this engine if you find some spelling mistakes or you want to help me with the engine development contact me

twitter @arydev_7

telegram @arydev

email [email protected]

About

a simple c framework for vulkan grafhichs and gamedev

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.6%
  • C++ 8.7%
  • Shell 1.7%