...
首页> 外文期刊>SIGCSE bulletin: ACM SIGCSE (computer science education) >Computer Games as Motivation for Design Patterns
【24h】

Computer Games as Motivation for Design Patterns

机译:Computer Games as Motivation for Design Patterns

获取原文
获取原文并翻译 | 示例
           

摘要

We present a computer game case study that can be used to motivate the need for design patterns. Design patterns are often misunderstood, but good examples can motivate students to work at understanding patterns. Computer games are used in many books and online resources to teach programming concepts, but these examples are usually simplified or non-object-oriented. We present a simple game that exhibits functionality found in commercial games (animation, collision detection, etc.) and show how it can be used as a case study for design patterns. Specifically, we illustrate how the state, facade, observer, strategy, and visitor patterns can replace procedural approaches for implementing the logic and animation of game written in Java.

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号