-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
73 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -23,9 +23,8 @@ | |
# ============================================================================> | ||
|
||
PROJECT_NAME = ferox | ||
PROJECT_FULL_NAME = c-krit/ferox | ||
|
||
LOG_PREFIX = $(PROJECT_FULL_NAME): | ||
LOG_PREFIX = ~> | ||
|
||
# ============================================================================> | ||
|
||
|
@@ -55,7 +54,7 @@ LDFLAGS = /DEBUG | |
all: pre-build build post-build | ||
|
||
pre-build: | ||
@echo $(LOG_PREFIX) Using: '$(CC)' and '$(AR)' to build this project. | ||
@printf "${LOG_PREFIX} CC = ${CC}, AR = ${AR}, MAKE = ${MAKE}\n" | ||
|
||
build: $(TARGETS) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<div align="center"> | ||
|
||
<img src="docs/static/images/readme-logo.png" alt="c-krit/ferox"><br> | ||
<img src="docs/static/images/readme-logo.png" alt="jdeokkim/ferox"><br> | ||
|
||
[](https://github.com/c-krit/ferox/releases) | ||
[](https://www.codefactor.io/repository/github/c-krit/ferox) | ||
[](https://github.com/c-krit/ferox) | ||
[](https://github.com/c-krit/ferox/blob/main/LICENSE) | ||
[](https://github.com/jdeokkim/ferox/releases) | ||
[](https://www.codefactor.io/repository/github/jdeokkim/ferox) | ||
[](https://github.com/jdeokkim/ferox) | ||
[](https://github.com/jdeokkim/ferox/blob/main/LICENSE) | ||
|
||
A lightweight 2D physics engine written in C, for educational purposes. | ||
|
||
|
@@ -55,7 +55,7 @@ Download the latest release of MSYS2 from [here](https://www.msys2.org/) and fol | |
# MSYS2, UCRT 64-bit | ||
|
||
$ pacman -Syu && pacman -S mingw-w64-ucrt-x86_64-gcc | ||
$ git clone https://github.com/c-krit/ferox && cd ferox | ||
$ git clone https://github.com/jdeokkim/ferox && cd ferox | ||
$ make | ||
``` | ||
|
||
|
@@ -88,7 +88,7 @@ $ make -f Makefile.mingw | |
|
||
### Visual Studio 2022 | ||
|
||
Download the latest release of this library from [here](https://github.com/c-krit/ferox/releases) and extract the `.zip` file to your working directory. Then, start [Windows PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/starting-windows-powershell?view=powershell-7.3) and type the following command to start the [Developer PowerShell](https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022): | ||
Download the latest release of this library from [here](https://github.com/jdeokkim/ferox/releases) and extract the `.zip` file to your working directory. Then, start [Windows PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/starting-windows-powershell?view=powershell-7.3) and type the following command to start the [Developer PowerShell](https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022): | ||
|
||
```console | ||
PS C:\Users\jdeokkim> & 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64 | ||
|
@@ -137,7 +137,7 @@ Download the latest release of w64devkit from [here](https://github.com/skeeto/w | |
|
||
```console | ||
$ mkdir ~/workspace && cd ~/workspace | ||
$ wget https://github.com/c-krit/ferox/archive/refs/heads/main.zip && unzip main.zip | ||
$ wget https://github.com/jdeokkim/ferox/archive/refs/heads/main.zip && unzip main.zip | ||
$ mv ferox-main ferox && cd ferox | ||
``` | ||
|
||
|
@@ -173,7 +173,7 @@ $ make -f Makefile.mingw \ | |
|
||
```console | ||
$ sudo pacman -Syu && sudo pacman -S base-devel git | ||
$ git clone https://github.com/c-krit/ferox ~/ferox && cd ~/ferox | ||
$ git clone https://github.com/jdeokkim/ferox ~/ferox && cd ~/ferox | ||
$ make | ||
``` | ||
|
||
|
@@ -194,7 +194,7 @@ $ cd ~/ferox/examples && make | |
|
||
```console | ||
$ sudo apt install build-essential git | ||
$ git clone https://github.com/c-krit/ferox ~/ferox && cd ~/ferox | ||
$ git clone https://github.com/jdeokkim/ferox ~/ferox && cd ~/ferox | ||
$ make | ||
``` | ||
|
||
|
@@ -216,7 +216,7 @@ $ cd ~/ferox/examples && make | |
|
||
```console | ||
$ sudo xbps-install base-devel git | ||
$ git clone https://github.com/c-krit/ferox ~/ferox && cd ~/ferox | ||
$ git clone https://github.com/jdeokkim/ferox ~/ferox && cd ~/ferox | ||
$ make | ||
``` | ||
|
||
|
@@ -242,7 +242,7 @@ $ cd ~/ferox/examples && make | |
|
||
```console | ||
$ sudo pkg install git | ||
$ git clone https://github.com/c-krit/ferox && cd ferox | ||
$ git clone https://github.com/jdeokkim/ferox && cd ferox | ||
$ make | ||
``` | ||
|
||
|
@@ -268,7 +268,7 @@ $ make RAYLIB_INCLUDE_PATH=/usr/local/include RAYLIB_LIBRARY_PATH=/usr/local/lib | |
|
||
```console | ||
$ sudo apt install build-essential git | ||
$ git clone https://github.com/c-krit/ferox && cd ferox | ||
$ git clone https://github.com/jdeokkim/ferox && cd ferox | ||
$ make | ||
``` | ||
|
||
|
@@ -309,7 +309,7 @@ $ source ./emsdk_env.sh | |
After setting up the environment variables for Emscripten SDK, do: | ||
|
||
```console | ||
$ git clone https://github.com/c-krit/ferox && cd ferox | ||
$ git clone https://github.com/jdeokkim/ferox && cd ferox | ||
$ make -f Makefile.emcc | ||
``` | ||
|
||
|
@@ -337,7 +337,7 @@ $ emrun --no_browser ./bin/basic.html | |
|
||
```console | ||
$ sudo apt install build-essential git mingw-w64 | ||
$ git clone https://github.com/c-krit/ferox && cd ferox | ||
$ git clone https://github.com/jdeokkim/ferox && cd ferox | ||
$ make -f Makefile.mingw | ||
``` | ||
|
||
|
@@ -406,7 +406,7 @@ $ make -f Makefile.mingw RAYLIB_INCLUDE_PATH=../../raylib RAYLIB_LIBRARY_PATH=.. | |
|
||
MIT License | ||
|
||
> Copyright (c) 2021-2024 Jaedeok Kim ([email protected]) | ||
> Copyright (c) 2021-2025 Jaedeok Kim ([email protected]) | ||
> | ||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
# Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
@@ -73,7 +73,7 @@ static void DeinitExample(void); | |
int main(void) { | ||
SetConfigFlags(FLAG_MSAA_4X_HINT); | ||
|
||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "c-krit/ferox | " __FILE__); | ||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "jdeokkim/ferox | " __FILE__); | ||
|
||
InitExample(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
@@ -77,7 +77,7 @@ static void DeinitExample(void); | |
int main(void) { | ||
SetConfigFlags(FLAG_MSAA_4X_HINT); | ||
|
||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "c-krit/ferox | " __FILE__); | ||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "jdeokkim/ferox | " __FILE__); | ||
|
||
InitExample(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
@@ -49,7 +49,7 @@ | |
|
||
/* Typedefs ================================================================ */ | ||
|
||
typedef enum _EntityType { | ||
typedef enum EntityType_ { | ||
ENTITY_PLAYER, | ||
ENTITY_BULLET, | ||
ENTITY_ENEMY, | ||
|
@@ -117,7 +117,7 @@ static void OnPreStep(frBodyPair key, frCollision *value); | |
int main(void) { | ||
SetConfigFlags(FLAG_MSAA_4X_HINT); | ||
|
||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "c-krit/ferox | " __FILE__); | ||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "jdeokkim/ferox | " __FILE__); | ||
|
||
InitExample(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
@@ -92,7 +92,7 @@ static void OnPostStep(frBodyPair key, frCollision *value); | |
int main(void) { | ||
SetConfigFlags(FLAG_MSAA_4X_HINT); | ||
|
||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "c-krit/ferox | " __FILE__); | ||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "jdeokkim/ferox | " __FILE__); | ||
|
||
InitExample(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
@@ -78,7 +78,7 @@ static bool OnHashQuery(frContextNode ctx); | |
int main(void) { | ||
SetConfigFlags(FLAG_MSAA_4X_HINT); | ||
|
||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "c-krit/ferox | " __FILE__); | ||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "jdeokkim/ferox | " __FILE__); | ||
|
||
InitExample(); | ||
|
||
|
@@ -148,7 +148,7 @@ static void UpdateExample(void) { | |
{ | ||
BeginDrawing(); | ||
|
||
ClearBackground(FR_DRAW_COLOR_MATTEBLACK); | ||
ClearBackground(RAYWHITE); | ||
|
||
frDrawGrid(SCREEN_BOUNDS, | ||
CELL_SIZE, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
@@ -75,7 +75,7 @@ static void OnRaycastQuery(frRaycastHit raycastHit, void *ctx); | |
int main(void) { | ||
SetConfigFlags(FLAG_MSAA_4X_HINT); | ||
|
||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "c-krit/ferox | " __FILE__); | ||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "jdeokkim/ferox | " __FILE__); | ||
|
||
InitExample(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright (c) 2021-2024 Jaedeok Kim <[email protected]> | ||
Copyright (c) 2021-2025 Jaedeok Kim <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
|
@@ -85,7 +85,7 @@ static void DeinitExample(void); | |
int main(void) { | ||
SetConfigFlags(FLAG_MSAA_4X_HINT); | ||
|
||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "c-krit/ferox | " __FILE__); | ||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "jdeokkim/ferox | " __FILE__); | ||
|
||
InitExample(); | ||
|
||
|
Oops, something went wrong.