Find Jobs
Hire Freelancers

C# Coding - Game Fix

₹600-1500 INR

已关闭
已发布大约 10 年前

₹600-1500 INR

货到付款
We have this code, which is code of a game. It has been written in C# using Unity 3D. Requirements: 1) Fix Code in order to run game successfully 2) Display "GAME OVER" when Ball (Game object) falls below Y-value of " -4" . 3) Show Button for Restart Game. --- Its a very basic fix, so we have a One-hour budget. using UnityEngine; using [login to view URL]; public class playerScript : MonoBehaviour { public float speed; //do I need this line? public GUIText countText; public GUIText winText; private int count; public GUIText restartText; public GUIText gameOverText; private bool gameOver; // THIS LINE OF CODE HAS BEEN RECENTLY ADD private bool restart; // THIS LINE OF CODE HAS BEEN RECENTLY ADD void Start () { gameOver = false;// THIS LINE OF CODE HAS BEEN RECENTLY ADD restart = false;// THIS LINE OF CODE HAS BEEN RECENTLY ADD [login to view URL] = "";// THIS LINE OF CODE HAS BEEN RECENTLY ADD [login to view URL] = ""; //text will not show at the beggining of the game. count = 0; setCountText (); [login to view URL] = ""; [login to view URL] = ""; } /*void Update () // This is code added. { // This is code added. if (restart) { // This is code added. // This is code added. if ([login to view URL] (KeyCode.R) // This is code added. { [login to view URL] ([login to view URL]);// This line of code restarts the game. } } } public void GameOver () // THIS LINE OF CODE HAS BEEN RECENTLY ADD { [login to view URL] = "GameOver!"; // THIS LINE OF CODE HAS BEEN RECENTLY ADD gameOver = true; // THIS LINE OF CODE HAS BEEN RECENTLY ADD }// THIS LINE OF CODE HAS BEEN RECENTLY ADD */ void FixedUpdate () { float moveHorizontal = [login to view URL]("Horizontal"); float moveVertical = [login to view URL] ("Vertical"); Vector3 movement =new Vector3(moveHorizontal, 0.0f, moveVertical); [login to view URL](movement); } void OnTriggerEnter(Collider other) { if ([login to view URL] == "pickUp") { [login to view URL] (false); count = count + 1; setCountText (); } } void setCountText () { [login to view URL] = "Count: " + [login to view URL](); if (count >= 35) [login to view URL] = "You Win!"; GameObject player = [login to view URL]("player"); if([login to view URL]>=-1) [login to view URL] = "You lose!"; } /*void update(){ float y; GameObject player = [login to view URL]("player"); if(count==1) { //[login to view URL] = "game over!"; //player.transform.position.y<-1 } }*/ }
项目 ID: 5875841

关于此项目

6提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
6威客以平均价₹1,802 INR来参与此工作竞价
用户头像
let me do it tomorrow :)
₹5,263 INR 在3天之内
4.9 (34条评论)
6.6
6.6
用户头像
I'm a student at a Computer Science student, terminal year and right now I'm doing an internship at a company where I'm working in Unity 3d. If you choose me I will do it good, quick and exactly what you need, but I need details on what you want to do, just add me on skyp alex.nistor9. Cheers!
₹1,300 INR 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello, it´s an easy task, i can start working on it just when you prefer. You´ll be sending the unity project, or i have to start one whit this code?.
₹1,250 INR 在0天之内
0.0 (0条评论)
0.0
0.0
用户头像
hi, Been using Unity 3D for 3 years now and have a degree in games programming, made a number of apps and i should have no trouble fixing your script for you. ELore
₹1,050 INR 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
I have been working extensively with Unity for the past 6 months on several projects, so I am very familiar with creating simple Unity projects and debugging projects others have made. I have already reviewed the code you put up, and aside from a few syntax errors it does run, so I would be glad to share those errors with you. Here is an outline of the project I have created with your code: I have a project with a player object and a pickup object on a plane. The player object is moved with the arrow keys. When the player collides with the pickup object, the object disappears and the count is incremented. If the player falls off the level, the Game Over text is displayed, and a button is shown that restarts the level when pressed. I hope this is what you had in mind, at least in terms of functionality. Have a nice day! Aaron Ballard
₹1,000 INR 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello, I m full time developer and i assure you that you will get the perfect product and with in short time. I will provide you complete commented code. I have kept 700 and it says 950 billed to client.. i can make it at low cost too.. Skype ID: abdulahadone Regards, AbdulSamadGroup.
₹950 INR 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

INDIA的国旗
Ludhiana, India
0.0
0
付款方式已验证
会员自6月 13, 2013起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。