使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
Archivist
/
raylib-src
镜像自地址
https://github.com/raysan5/raylib
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
24
百科
动态
浏览代码
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 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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
;
撰写
预览
正在加载...
取消
保存