Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison #4

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d0e69ae
:bookmark: 1.16 changes
yhs0602 Sep 13, 2024
602c927
:sparkles: Handle shift click
yhs0602 Sep 13, 2024
0338d20
:bug: Fix set seed
yhs0602 Sep 13, 2024
0f80929
:bug: Fix world gen
yhs0602 Sep 13, 2024
cb9ec7b
:bug: Fix command 1.16
yhs0602 Sep 14, 2024
b889e60
:bug: There are no tick command in 1.16
yhs0602 Sep 14, 2024
3821e9f
:bug: Subtle mouse
yhs0602 Sep 14, 2024
bddd9a7
:bug: Disable early
yhs0602 Sep 14, 2024
0c85ea4
:sparkles: Wait for chunk loading
yhs0602 Sep 14, 2024
e526c0a
:necktie: Integer dxdy
yhs0602 Sep 14, 2024
26d1eb8
:bug: Fix earl
yhs0602 Sep 14, 2024
94c0fbd
:bug: Disable movement while screen
yhs0602 Sep 14, 2024
a3ca130
:bug: Fix mouse screen
yhs0602 Sep 14, 2024
e67702b
:bug: Fix keys
yhs0602 Sep 14, 2024
df0838a
:bug: Handle mouse move first
yhs0602 Sep 14, 2024
d4cccff
:bug: Fix mouse
yhs0602 Sep 14, 2024
79e88f0
:bug: Fix comparisn
yhs0602 Sep 14, 2024
20d8c5f
:bug: Fix mouse handling
yhs0602 Sep 14, 2024
d21bb72
:bug: Fix screen key press
yhs0602 Sep 14, 2024
55d7f52
:bug: Fix key
yhs0602 Sep 14, 2024
333ef64
:bug: Fix keybinding
yhs0602 Sep 14, 2024
5b225db
:bug: Fix mouse, disable vsync
yhs0602 Sep 14, 2024
6da5fa5
:necktie: Do not disable tutorial
yhs0602 Sep 14, 2024
651e3dc
:necktie: Disable mouse center
yhs0602 Sep 14, 2024
0ef65ca
:bug: Mix dx dy in mouse,call center mouse agian
yhs0602 Sep 14, 2024
c7cd83b
:recycle: Refactor inputs
yhs0602 Sep 15, 2024
993cf11
:bug: Fix mouse rl
yhs0602 Sep 15, 2024
fc9d69f
:bug: Disable clicking disconnect
yhs0602 Sep 16, 2024
828ade9
:bug: Fix sigsegv
yhs0602 Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ org.gradle.jvmargs=-Xmx1G
kotlin.code.style=official

# Fabric Properties
minecraft_version=1.21
yarn_mappings=1.21+build.9
loader_version=0.15.11
# https://fabricmc.net/develop/
minecraft_version=1.16.5
yarn_mappings=1.16.5+build.10
loader_version=0.16.5

# Mod Properties
mod_version = 1.0-SNAPSHOT
maven_group = com.yhs0602
archives_base_name = craftground
# Fabric API
fabric_version=0.42.0+1.16

# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.100.6+1.21
# Mod Properties
mod_version = 1.0-SNAPSHOT
maven_group = com.yhs0602
archives_base_name = craftground
26 changes: 14 additions & 12 deletions src/main/cpp/framebuffer_capturer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,19 +222,21 @@ extern "C" JNIEXPORT jobject JNICALL Java_com_kyhsgeekcode_minecraft_1env_Frameb
// Invert y axis
int index = ((targetSizeY - pixelY) * targetSizeX + pixelX) * 3; // 픽셀 인덱스 계산

// 비트맵 값이 2면 검은색(테두리)로 그립니다.
if (cursor[dy][dx] == 2) {
pixels[index] = 0; // Red
pixels[index + 1] = 0; // Green
pixels[index + 2] = 0; // Blue
if (index >= 0 && index + 2 < textureWidth * textureHeight * 3) {
// 비트맵 값이 2면 검은색(테두리)로 그립니다.
if (cursor[dy][dx] == 2) {
pixels[index] = 0; // Red
pixels[index + 1] = 0; // Green
pixels[index + 2] = 0; // Blue
}
// 비트맵 값이 1이면 흰색(내부)로 그립니다.
else if (cursor[dy][dx] == 1) {
pixels[index] = 255; // Red
pixels[index + 1] = 255; // Green
pixels[index + 2] = 255; // Blue
}
// 비트맵 값이 0이면 투명, 기존 픽셀을 유지합니다.
}
// 비트맵 값이 1이면 흰색(내부)로 그립니다.
else if (cursor[dy][dx] == 1) {
pixels[index] = 255; // Red
pixels[index + 1] = 255; // Green
pixels[index + 2] = 255; // Blue
}
// 비트맵 값이 0이면 투명, 기존 픽셀을 유지합니다.
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/kyhsgeekcode/minecraft_env/ActionSpace.kt

This file was deleted.

56 changes: 0 additions & 56 deletions src/main/java/com/kyhsgeekcode/minecraft_env/CaptureFramebuffer.kt

This file was deleted.

Loading