C#逻辑代码不起作用 [英] C# Logical Code Not Working

查看:87
本文介绍了C#逻辑代码不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我的代码,我真的需要帮助。让我解释一下......我想制作一种马里奥游戏,我做了所有的事情,如添加箭头使角色移动,添加马里奥角色,添加一个地面,我正在努力马里奥将跳跃的块。那个
愚蠢地不工作,这是古怪的,因为地面工作但不是我让你看到的块。我知道有一些代码没用,但生病后删除它们。

I really need help, because of my code. Let me explain... I want to make a kind of Mario Game and I did all the stuff like add arrows to make the character move , add the mario character , add a ground and I am working on a block that mario will jump. that stupidly dont work, it is bizzare because the ground is working but not the block I let you see just under. I know there is some codes that is useless, but ill remove them after.

因此它位于  私有空间引力()

So it is in the section of  private void gravity()

PS - I我12岁,请不要给我一个100k的代码

PS - I am 12 years old pls dont give me a code of 100k

推荐答案

嗨Ryda Mortajil,

Hi Ryda Mortajil,

感谢您在此发帖。

对于您的问题,您可以从代码项目中下载源文件以供参考。

For your question, you could download the source file from the code project for reference.

https://www.codeproject.com/Tips / 881397 / Csharp-Simple-D-Game-Physics-Gravity-Jumping-Movem

最好的问候,

Wendy


这篇关于C#逻辑代码不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆