Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-28-2004, 08:05 PM   #1 (permalink)
fuzzybunny3
Registered User
 
fuzzybunny3's Avatar
 
Join Date: Oct 2004
Posts: 4
fuzzybunny3 is on a distinguished road
A simple Q

I have a Q. Here it is. Lets look a a game say zelda(classic) if you press A button the sword dose a animation(link slashing his sword) and plays a sound. How dose this happen. My guess is a some sort of loop gose on during the whole game. But then when you think of it there would be hundreds of if's, while's, and other simlar compands. That would be some cunckey code. Also very hard to read the code.

I'm a 5 day newbie.
fuzzybunny3 is offline   Reply With Quote
Old 10-29-2004, 03:00 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Games are loops. Yes. In old days, there were many decision taking branch statements. But often algorithms can be expressed in terms of a mathematical formula, reducing code, increasing speed, but reducing readability.

These days, program languages have some type(s) of abstractions and decoupling. Often reducing entities to so- called stand-alone units. Code from strangers is always hard to read, but with OO for example one could concentrate on a single unit of work. That should make it easier.
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
c simple question problem with switch case if13121 Standard C, C++ 1 10-24-2004 09:43 PM
Simple C program Spooky Standard C, C++ 1 10-22-2004 07:26 AM
Can't do a simple flippin' update . . . metazai PHP 10 06-04-2004 11:50 AM
Discussion board of your dreams - Simple Machnies Forums Phoenix PHP 0 08-10-2003 02:59 PM


All times are GMT -8. The time now is 07:33 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting