Simple physics collision 3d.
Raylib 5.5
W,A,S,D = movement. Space = jump.
Notes:
- landing will off sets bug.
Simple physics collision 3d.
Raylib 5.5
W,A,S,D = movement. Space = jump.
Notes:
#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> |
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.
// 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"}); |
/* | |
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'; |
#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 |
import van from "https://cdn.jsdelivr.net/gh/vanjs-org/van/public/van-1.5.3.min.js"; | |
const { div, p, h1, h2, h3, h4, h5, h6, pre, code, button, textarea, strong, em, a, ul, ol, li, blockquote, br, table, thead, tbody, tr, th, td, img, span, hr, del, sup, section } = van.tags; | |
// Editor State | |
const editorState = van.state({ | |
text: "# Sample Title\n\nHello, **bold** and *italic* world![^1]\n\n> This is a **blockquote** with *emphasis*\n> Another line\n\n| Header 1 | Header 2 |\n|----------|----------|\n| Cell 1 | **Cell 2** |\n| *Cell 3* | <span style=\"color: red;\">Cell 4</span> |\n\n\n\nHere's some <b>bold</b> and <i>italic</i> inline HTML.\nWith a break \nright here \nand more.[^2]\n\nasdddd\ndddddd\ndddddd\n\nddddd\nddddd\n\n[^1]: This is the first footnote.\n[^2]: This is the second footnote with **bold** text.\n\n---\n\n```javascript\nconsole.log('hi');\n```\n\n- Item 1\n- _Item 2_\n\n1. First\n2. ~~Second~~\n\n[Link](https://example.com)\n\n`inline |
cmake_minimum_required(VERSION 3.14) | |
project(raylib_luajit LANGUAGES C CXX) | |
# Set up cache directory for built artifacts | |
set(CACHE_DIR "${CMAKE_BINARY_DIR}/cache") | |
file(MAKE_DIRECTORY ${CACHE_DIR}) | |
if(NOT EXISTS "${CMAKE_BINARY_DIR}/cmake/CPM.cmake") | |
file(DOWNLOAD | |
"https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/CPM.cmake" |
cmake_minimum_required(VERSION 3.20) | |
project(VulkanSDL3Project C) | |
set(CMAKE_C_STANDARD 11) | |
set(CMAKE_C_STANDARD_REQUIRED ON) | |
set(CMAKE_CXX_COMPILER "") | |
set(CMAKE_CXX_FOUND FALSE) | |
include(FetchContent) |