Download

Section categories

ActiveX [655]
Components and Libraries [747]
C and C++ Tools and Components [189]
C and C Tools and Components [141]
Databases and Networks [645]
Delphi Tools and Components [455]
Editors [111]
Help File Tools [120]
IDEs and Coding Utilities [167]
Java [194]
JavaScript [62]
Misc Programming Tools [545]
PowerBuilder Tools and Components [27]
Registration Tools [49]
Setup Utilities [160]
Visual Basic Components A-G [134]
Visual Basic Components H-P [72]
Visual Basic Components Q-Z [63]
Visual Basic Tools [163]

Our poll

How often do you buy software?
Total of answers: 4

Statistics


Total online: 14
Guests: 14
Users: 0

Login form

File Catalog

Main » Files » Programming » Java

Javascript Game Engine 1.0
29.01.2011, 01:14
This is a free game engine developed for programming browser based games. It uses the Javascript language and CSS to dress up the page. They run pretty reliably together. Use this engine to create your own game. This project is intended for beginners, wanting to learn how to program video games. Better if you're a web designer that knows some CSS.

This engine uses threads for animation by looping through frames, each frame being a single thread of execution, enabling us to have more control over animation. Therefore we can coordinating two entities running independently to lock them both by their id's. For example, a character can block a punch from another character, which "locks" in place independent frames from two mutual entities running concurrently in their own time zones, by using their thread id's. There we can invoke instance() function to inject additional algorithm before having the two halted threads (or the entire game) to proceed.

Javascript is event driven so you can program images to move across the screen just by changing the coordinates, x and y and the browser will do this for us. On our part we're just basically changing the CSS stuff like top:1px; and left:1px; with position:absolute;
That's how it's done mainly, but this engine coordinates threaded animation frames along with the speed of coordinates changing.

Background and foreground and character overlaps are managed by setting z-index.

Category: Java | Added by: File-Post
Views: 135 | Downloads: 0 | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Registration | Login ]

Search

Site friends

add site