Post Closed as "too broad" by Robert Harvey, Jules, TMN, TZHX, gnat
2 Added niceties
source | link

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to structure it. I think my trouble comes from my struggle with ControllersControllers vs DirectivesDirectives.

My game essentially needs to pull text from a text file and display it within a DOM elementDOM element when clicked. accompanyingAccompanying that is a separate DOMDOM item that displays a character sprite image. When certain bits of text are displayed, the image needs to animate.

Can anyone who knows AngularjsAngularJS well walk me through the most clean and efficient way to structure this between my controllerscontrollers, directivesdirectives, and the HTML view?

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to structure it. I think my trouble comes from my struggle with Controllers vs Directives.

My game essentially needs to pull text from a text file and display it within a DOM element when clicked. accompanying that is a separate DOM item that displays a character sprite image. When certain bits of text are displayed, the image needs to animate.

Can anyone who knows Angularjs well walk me through the most clean and efficient way to structure this between my controllers, directives, and the HTML view?

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to structure it. I think my trouble comes from my struggle with Controllers vs Directives.

My game essentially needs to pull text from a text file and display it within a DOM element when clicked. Accompanying that is a separate DOM item that displays a character sprite image. When certain bits of text are displayed, the image needs to animate.

Can anyone who knows AngularJS well walk me through the most clean and efficient way to structure this between my controllers, directives, and the HTML view?

1
source | link

Structuring a Game with Angular.JS

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to structure it. I think my trouble comes from my struggle with Controllers vs Directives.

My game essentially needs to pull text from a text file and display it within a DOM element when clicked. accompanying that is a separate DOM item that displays a character sprite image. When certain bits of text are displayed, the image needs to animate.

Can anyone who knows Angularjs well walk me through the most clean and efficient way to structure this between my controllers, directives, and the HTML view?