|
You are here |
journal.stuffwithstuff.com | ||
| | | | |
gameprogrammingpatterns.com
|
|
| | | | | [AI summary] This chapter explores the use of prototypes and delegation in data modeling, particularly in game development. It discusses how traditional object-oriented approaches, such as class hierarchies and inheritance, can be compared to JavaScript's prototype-based model. The chapter also highlights the benefits of using delegation for reusing data, such as reducing duplication and improving maintainability. It provides examples of how prototypes can be used to create a more efficient and flexible data model for game entities, such as goblins and weapons. | |
| | | | |
crockford.com
|
|
| | | | | ||
| | | | |
www.oranlooney.com
|
|
| | | | | Update 2017-10-23: This article and code library have not kept up with the rapidly changing JavaScript landscape and are now hopelessly out of date. First came non-enumerable properties, and with ES2015 came the introduction of classes, proxies, symbols, and anonymous functions, all of which break the below logic. I'm afraid I no longer know how to fully copy the full menagerie of JavaScript objects while preserving relative references, and it's quite possible that no one else knows either. | |
| | | | |
roneo.org
|
|
| | | Run a newsletter for free with Hugo, ButtonDown and Netlify - Roneo.org | ||