Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Andyzano · May 20, 2014 at 10:26 PM · javascriptgametutorialracing

Old school racer: can I do it in Unity?

Hello,

First of all, I'm sorry for the silly question but I'm not really a programmer. I can use Unity well in itself, and I use 2D Toolkit to make prototypes and stuff, but I recently was trying to make a small a racing game since I was fascinated by this tutorial: http://codeincomplete.com/posts/2012/6/23/javascript_racer_v1_straight/ (this is the first part)

it involves some javascript, which afaik is supported by Unity, but there are too many basic things that I'm missing: for example, this game is made for browsers so it also uses HTML code, and I'm not sure where that code who's in index.html would have to be put in Unity.

Basically, I'm trying to recreate this demo (I even downloaded the whole source) in Unity but I already hit a wall, as when imported "common.js" the console already gave me errors.

So, any help would be appreciated, I'm literally using all my free time on this.

The source code is here https://github.com/jakesgordon/javascript-racer/

Thank you.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Xumbu · May 20, 2014 at 10:43 PM

no you can't just copy and paste this source code...

unity works in a completely different way.

to create a game in unity you must be able to program. at least some basic stuff

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Andyzano · May 21, 2014 at 01:05 AM 0
Share

@ Xumbu : yeah sorry, I did try importing the files just to see what kind of errors they gave, but I badly worded myself, it's not like I expected them to work through magic haha.

$$anonymous$$y question, mostly, is about what can I do to transfer that approach to make the game into Unity. Basically, what needs to be changed or, literally, any tip would be useful :).

I've been searching for anything useful on the asset store with no luck at the moment. You find frameworks for all things but nobody seems to be making those old school racing games nowadays, awww...

Right now my main problem is recreating the basic road system, I already made a test stripe but I am not able to go much further, sigh. :(

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Incremental game need help 1 Answer

I need help with a script(brauche hilfe mit einen Script) 0 Answers

A node in a childnode? 1 Answer

How to add AI cars in car game. 2 Answers

How to write & read a string into a text file? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges