-
Recent Posts
Recent Comments
- phylyp on Discover Python and Patterns (17): 2D arrays
- Małgorzata Serżysko-Sosnowksa on Discover Python and Patterns (17): 2D arrays
Archives
Categories
Tags
Meta
Tag Archives: Facade
OpenGL 2D Facade (8): Facade
I have enough content to start a facade: I refactorize all the code to satisfy the properties of the Facade pattern and get a more robust and extensible implementation.
AWT GUI Facade (8): Keyboard and key sequences
In this post, I add the keyboard management to the facade, and I propose a way to detect key sequences. These sequences are used, for example, in games like Street Fighter II, where characters move according to specific key combos.
AWT GUI Facade (7): Draw text
Graphic libraries usually provide methods to draw text on the screen. These handy methods are often quite slow to run because they recompute many parameters at each call. To save computational time, the flyweight pattern can be used to provide … Continue reading
AWT GUI Facade (4): Draw with tiles
I continue the extension of the graphic facade (see previous article), with here the addition of a very classic form of drawing for video games: tiles. These make it possible to compose an image using small images called tiles. There … Continue reading
AWT GUI Facade (3): Display an image
The facade seen in the previous article has only an interface with its methods. It is also possible to enrich a facade with additional interfaces, connected to each other by various means. To illustrate it, I propose to add image … Continue reading
AWT GUI Facade (2): Draw
In this article, I propose to continue the design of a facade for a 2D tile game (previous post). I add two new features: creation/destruction of the window, and basic drawing. We manage each feature using methods in a GUIFacade … Continue reading
AWT GUI Facade (1): Display a window
In this series, I propose to discover the Facade Pattern. In short, this pattern defines an interface that allows a reduced and simplified use of a set of features. To illustrate, we design a facade of the AWT graphics library … Continue reading