Ported to mineccraft clone base on javascript. https://www.youtube.com/watch?v=_aK-1L-GC6I&list=PLtzt35QOXmkKALLv9RzT8oGwN5qwmRjTo&index=5
simple collision detect but still need work. move around but input bugged a bit.
#define WIN32_LEAN_AND_MEAN | |
#define _WINSOCK_DEPRECATED_NO_WARNINGS | |
#define NOGDI | |
#define NOUSER | |
#define MMNOSOUND | |
#include "raylib.h" | |
#include "raymath.h" | |
// Object entity structure |
/* | |
Credits: | |
* https://github.com/juliangruber/stream | |
* https://gist.github.com/4poc/1454516 | |
*/ | |
import http from 'http'; | |
import path from 'path'; | |
import fs from 'fs'; | |
import mime from 'mime'; |
// parent | |
// https://www.flecs.dev/flecs/md_docs_2Relationships.html#iterate-all-children-for-a-parent | |
// | |
#include "flecs.h" | |
int main(){ | |
// Initialize Flecs world | |
ecs_world_t *world = ecs_init(); | |
ecs_entity_t parent = ecs_entity(world, {.name = "Parent"}); |
Ported to mineccraft clone base on javascript. https://www.youtube.com/watch?v=_aK-1L-GC6I&list=PLtzt35QOXmkKALLv9RzT8oGwN5qwmRjTo&index=5
simple collision detect but still need work. move around but input bugged a bit.
#define WIN32_LEAN_AND_MEAN | |
#define _WINSOCK_DEPRECATED_NO_WARNINGS | |
#define NOGDI | |
#define NOUSER | |
#define MMNOSOUND | |
#include "raylib.h" | |
#include "raymath.h" | |
#include <stdio.h> | |
#include <stdlib.h> |
Simple physics collision 3d.
Raylib 5.5
W,A,S,D = movement. Space = jump.
Notes: