Solved

Javascript based game - how to plan code

Posted on 2013-11-09
5
347 Views
Last Modified: 2013-11-28
Hi,

I want to create a javascript based game as part of my learning of javascript and css3 animations.
I want to create something similar to this:
http://www.puddingrush.com/

How do i go about planning the functions etc? i want to use an Object orientated approach.

Thanks
0
Comment
Question by:coolispaul
5 Comments
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 39635704
Your question is way too broad.

What is your level of programming? If you have no programming experience at all, then that game is too much to try to achieve as your first project.

What have you tried so far? People can help you with specific questions, but no-one is going to write a blueprint for a game for you here.

Have you looked for any tutorials online?
0
 

Author Comment

by:coolispaul
ID: 39635784
Ok fair enough. I know php will but am learning Javascript. I've run through tutorials but found none that might show how to plan and then code a Javascript application. Any advice?

Thanks
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 39635807
If you're looking for an object oriented approach, then you need to learn some object oriented programming. Is your PHP knowledge OO?

I wouldn't start with a whole game if I were you.

You need to learn the basic principles first. Start with Event Handling, because that is what you will need the most. You have a long way to go before you can plan and code a whole application. Any tutorial out there that will help you plan your application will assume you have fundamental knowledge of javascript.

There is a great book out there, but it is huge. However, once you master it, then you can start building applications: Javascript: The Definitive Guide, by Flanagan.


gotta crawl before you walk :)
0
 
LVL 9

Expert Comment

by:Sar1973
ID: 39637214
Tha page you posted is full of scripts (also dynamic type): it's not possible to analyze each one of them and give you an advice...
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39639045
i would go through the tutorial at w3Schools, they have a good format when trying to learn new technologies, IMO:

http://www.w3schools.com/js/

I also suggest taking a look here as well, as it has a good foundation for learning JS:

http://net.tutsplus.com/tutorials/javascript-ajax/the-best-way-to-learn-javascript/

Once you have the foundational skills for JS, develop a plan of attack, kind of like whats described here:

http://www.dummies.com/how-to/content/four-steps-to-take-before-writing-computer-program.html

Then come back with specific questions here on EE to learn more specific techniques (example: how do i get my banner to fade out after 5 seconds?)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question