本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
Archivist
/
raylib-src
镜像来自
https://github.com/raysan5/raylib
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
24
Wiki
活動
瀏覽代碼
Fixed a bug in the 2d camera platformer example (
#2687
)
canJump used to alternate between true and false when on ground
pull/2751/head
skylar
3 年之前
committed by
GitHub
父節點
f4b4054de5
當前提交
ee5a87826d
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID:
4AEE18F83AFDEB23
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
examples/core/core_2d_camera_platformer.c
+ 1
- 1
examples/core/core_2d_camera_platformer.c
查看文件
@ -177,7 +177,7 @@ void UpdatePlayer(Player *player, EnvItem *envItems, int envItemsLength, float d
ei
-
>
rect
.
x
<
=
p
-
>
x
&
&
ei
-
>
rect
.
x
+
ei
-
>
rect
.
width
>
=
p
-
>
x
&
&
ei
-
>
rect
.
y
>
=
p
-
>
y
&
&
ei
-
>
rect
.
y
<
p
-
>
y
+
player
-
>
speed
*
delta
)
ei
-
>
rect
.
y
<
=
p
-
>
y
+
player
-
>
speed
*
delta
)
{
hitObstacle
=
1
;
player
-
>
speed
=
0.0f
;
Write
Preview
Loading…
取消
儲存