Git Product home page Git Product logo

plantvszombiemobile's People

Contributors

frosttear avatar sleepcry avatar

Watchers

 avatar

Forkers

withoutmelv

plantvszombiemobile's Issues

MediaPlayer实例不可重复利用播放sound

目前MediaPlayer只提供了MediaPlayer.create(Context  context, int 
resid)这个静态方法可以指定内嵌的声音,所以为了播放声音��
�能新建MediaPlayer。这意味着不能重复利用MediaPlayer对象,这样
不断申请和释放资源,会对性能造成影响。


Original issue reported on code.google.com by [email protected] on 2 Nov 2010 at 1:11

GameObject中应该避免存在PlantVsZombieView类的引用

在GameObject存在下面的定义:
protected PlantVsZombieView mView;
public void setView(PlantVsZombieView view) {
    mView = view;
}

我认为,应该解除GameObject与View之间的直接耦合关系。因为Gam
eObject是一个非常基础的、抽象的类。如果作为基础的类还依�
��于上层的具体类(非接口),这就破坏了基础类的独立性和
抽象性,使得程序的依赖关系变得复杂。

Original issue reported on code.google.com by [email protected] on 15 Nov 2010 at 2:37

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.