Message:
Currently, SVN has a 0.3 small patch (LGame-Android-Core-0.3 (revise). Jar) that fixes the inefficient self-screen adaptation problem when initializing mode. fill. In addition, max (set the game view size to the maximum mobile phone screen size) and fitfill (proportional full screen game screen (not necessarily full screen) are added ), game view will stretch proportionally to the initial size set by the maxscreen function) two modes, you can go to the svn LGame-Android-0.3 folder to download this jar if necessary. This is not a bug update, but an algorithm correction that affects the running speed.
LGame-0.3.0 (including Android and javase version ):
(Contains the sample project, source code and jar): http://loon-simple.googlecode.com/files/LGame-0.3.7z
Update content:
1. added the srpg module (independent jar), which greatly simplifies the process required for srpg or SLG game development, it can also be used for R drama production or mixed use with other modules (for example, imitating "Wu Lin Qun Xia Chuan" only uses this module as the combat mode ).
2. added the lpixmap class to process pixel-Level Image Rendering operations. Although the images it generates do not depend on bitmap, however, the disadvantage is that rendering to the screen is slow (the rendering mechanism can be solved by changing to OpenGL later). Its API is basically equivalent to lgraphics's API.
3. added the playsoundmanager class and its associated playsound class. As an encapsulation of the soundpool class, playsound can read the audio files in the APK by resource ID and perform regular audio operations, call functions are added to screen (for Android only ).
4. Added some function classes and added different operation functions for more than 20 original classes.
5. Fixed all bugs found in earlier versions and improved some outdated algorithms.
6. Cancel the threadscreen class and add the waitframe and waittime functions for the standard screen class to suspend the specified frames or times of the main thread in other threads.
7. From version 0.3, to avoid touch screen misoperations, you must double-click the plot selection box in avgscreen and srpgscreen (Android only ).
In addition, the earlier slgtest sample project is canceled for this update and changed to the new srpgtest sample project.
Finally, lgame is being transplanted to WP7, which is expected to be completed around November.
_____________________________________________________________________
The structure of the new srpg module is as follows:
The newly added srpg module is essentially a "Special Game Development Kit". Its difference with the standard lgame core library is that the operation of lgame is completely independent of it, it is not required for the development of a specific game. However, we strongly recommend that you use these dedicated packages to develop specific types of Games. The reasons are as follows:
1. lixiang
Generally speaking, the more complex the game type is, the more difficult it is to design and develop it. For example, after many beginners have mastered the production methods of simple games such as greedy snakes and Tetris, you will think you have gotten a glimpse of the game development path, and even jump out to "give pointers ". However, if you want to crack down on this person's sharpness, it is also very simple, as long as you let him not use rmxp, rmvx, Sim RPG maker and other amateur game production tools (PS: younger brother does not discriminate against these tools, After all there is a paid RM game site such as amaranthia (http://www.amaranthia.com), but even a famous Game On amaranthia, to be transplanted to iPhone or android platforms to achieve high profitability, most of them employ professional programmers instead of the original author ), to independently create a game that is similar to the effect of the previous century in the early 1990s s, such as shipping the world, yanlong knights, and Legend of the legend of the fairy sword at the time, even letting him reproduce the "crazy God work" such as "Blood Lion" and "" in the late 1990s s can make him feel confident.
But please note that the younger brother doesn't mean that the emperor yanlong is much more complicated than the greedy snake. The legend of the fairy sword is much harder than the Russian square, because no matter how complicated the system is, it is a combination of basic parts that are simple to 1 + 1. In other words, do we need collision Algorithms in yanlong knights? Is the elimination steps of the square in Tetris not counted as an event triggered in Legend of the legend of the fairy sword? In fact, the only difference is that many people know how to code Tetris, but those people do not necessarily know how to code the knights of the Dragon Army.
In fact, even for many beginners who are trying to create a Tetris-level game for the first time, most of them cannot complete programming independently at one time. Every time they start looking for a ready-made source code "Reference, after several compilation failures or the "painful" process consulted by the Forum, I finally came up with the masterpiece of "completely self-developed. However, we will discuss things in detail. We can "close our doors and get out of the door" and write related algorithms on our own. I'm afraid only a few talented people with talents, talents, and talents can do this.
Reverse examples: If the younger brother can make all the Russian square algorithms disappear from the network and teaching materials overnight, and shut up (or even shut down) all the people who know this algorithm ), how many people will come to understand the Russian square algorithm by themselves? In all fairness, I'm afraid not much. It is also said that if all the existing scientific and technological achievements of mankind are destroyed in the "Third World War" in the future, even if mankind is not extinct due to war, can our children and grandchildren recreate the whole modern human civilization in a short time? Hum, I'm afraid it will be the best end of the "World War 4" without the stone and the stick.
Therefore, we assume that everyone lives in a world that does not have any "Tetris source code or algorithm", or even "Tetris. This looks like a simple Russian box. How many people can create it out of thin air? -I am afraid it is not enough to explain the degree of scarcity.
If you basically agree with the above, I would like to ask if you have never seen any games such as the emperor yanlong and the legend of the fairy sword, how can you ask that, in the world where both the genius and the idiot account for only a few, the vast majority of players with medium IQ can have the ability to complete similar games out of thin air?
From a secular perspective, the gap between game development beginners and game development masters seems to be in the programming level, as if the "master" is so great, and the "Novice" is so small. However, in the final analysis, it turns out that the "previous experiences" are not the same. Even more challenging, the crux of the problem is that the source code such as the snake and the Russian square can be seen everywhere, while the source code of the knights of the Dragon Army and the legend of the fairy sword is far from being popularized ......
We Chinese people like to use the "Spring snow, people in lower LIBA" to compare the ups and downs. But if you think about it, the simple "downloading" is a song (in fact, it is two major parts), and the complicated "Yang chunbai" is nothing more than a song (the same two parts )? What is a song? It is not a sound with a special frequency. What determines the sound? We all know that it is a high-intensity long color (pitch, sound intensity, sound length, and sound quality) these concepts. As long as you find the correct pace, you can learn to talk, not to mention people. Even if there are thousands of sentences in "Yang chunbai", there is only one line of "xixiba", and it is nothing more than the lyrics. If there are many words, cannot I take notes? If the pitch is used, isn't it possible to use low-frequency singing? If you are interested in it, cannot it be imitated by others? How can I learn "xialibabian?
Cao's second child taught us to say that "the text is the same and the last difference", Kong's second child taught us to say "my path is consistent ". At this moment, if we compare simple game types to "xialibana", and those complex game types to "Yang chunbai", we will surely be able to deduce, "For xialibana, it is easy to understand. To put it bluntly, the people who can sing "lower LIBA people" already have the most basic singing ability, and probably have normal intelligence (it is impossible for thousands of people in the Chu Country to sing mentally retarded songs together ......), Of course, you can also learn to sing "spring snow". Maybe there is a "good or bad" separation, but there is absolutely no "can" problem, which is very simple.
Therefore, the vast majority of beginners in the game development field are still singing "downtimes". All they really need is a person who will sing "" and teach him how to sing ", even Let him listen to the complete singing process of "Spring and snow. This is not a mysterious truth, but a common sense of life. At present, the biggest crux of the Chinese game industry, especially the Java game field, is that no one teaches beginners how to sing the "Spring and white snow". All of his eyes and eyes are the "lower LIBA people, of course, beginners have to act as "underfloor performers" indefinitely.
Why did the Ancients say that they were not doing anything, and they were doing everything they wanted "? The root cause is that, for fear that future generations cannot understand the ideas of their predecessors, they need to set a benchmark for future generations so that future generations can have a reference to know what to do, what should I do. It is good to be able to "be proud and forget". Without that kind of talent, we can at least learn the same thing, that is, "although it is not in progress, it is not far away, no.
To be frank, as long as you have mastered the appropriate source code and algorithms, most game developers with normal intelligence-even beginners-have at most time problems no matter how games are developed, and will never be able to solve the problem.
Today, the younger brother provides a subdivided game extension module with the primary purpose of setting up a simple and feasible standard for everyone to use. He borrowed Sun Wukong from travel to the West to scare the monk, I just came out with a single stick.
PS: There are krkr available for AVG players, rmxp and rmvx available for RPG players, and AGM available for NLP players, even a teenage child can publish a hundred MB game "masterpiece". If we are serious programmers, we can only get the Russian box, the greedy snake, and the super Mary to spoof things, are there any questions? It's just for face consideration. How can we upgrade it ......
Second, Zhiyi is not messy.
Wang Yu, who was studying metaphysics in the Three Kingdoms (especially philosophical ones, rather than those that later filled with religious mysteries), once said: "The public cannot govern the public, and the people who govern the public may also be widowed; the husband cannot brake, and the other husband can also brake. Therefore, the reason why the people are salty is that the Lord will also be one; the reason why the people are so salty is that there will be no other. Things are innocent, and they will be governed by them. If there is a sect, there will be yuan, so it is complicated and not chaotic, and the public will not be confused ." In general, the essence of Wang Yu's speech lies in "simplicity, simplicity, and Simplicity ".
As we all know, the so-called game framework or engine is first a large vest. The author dared to call any API, followed by a large basket. The author dared to encapsulate all modules. They want to take care of the vast majority of users, those existing or potential needs, images, audios, videos, gyroscope sensing, maps, Genie, physical engines, and so on ...... Not enough? No problem. If you have nothing to say, you can do it if you can say it. Don't be discouraged. As long as you can be famous, most engine authors can make a corresponding module for you. Don't say you can't do it. Can't you show your skills? Then dare to mix it out? You can't say hello to anyone when you leave the house.
However, in this case, it is true and wide, but both in terms of performance and professionalism, all discounts are made. Why? As the saying goes, the game engine is not a panacea and cannot cure all diseases. Once you want to solve all the problems, you will inevitably lose your mind. This user said this is convenient, the user said it was so troublesome, you needed it, and he needed it. It really hated the sky and the sky. Once you fall into this strange circle of problem solving, you will certainly devote your limited energy to unlimited problem handling. Why are the so-called open-source game engine attacked by elites often not professional enough? In fact, what they really don't really see is this "omnipotent feature.
The user's needs cannot be met, but the framework cannot be expanded without limit to meet the user's needs, resulting in a vicious circle. But how can we solve these contradictions? As a matter of fact, the answer is what Wang said: "The Good luck, the original will be no two ".
It's hard to make everyone speak, but why don't people go to a restaurant for dinner? When did you go to the restaurant for dinner? I heard that "sir, it's really difficult to make a public speech. So we have to cook for one person at a time, and the team is full. Please come early next year? The reason is very simple. A restaurant can order food according to the recipe. When a guest comes to the restaurant, he doesn't want to eat anything, but what the recipe can eat. The customer's needs are unlimited, but the types of requirements are limited. Your taste is nothing more than "Sweet, bitter, salty. Even if we know the truth about cooking, every day except "calculation" is "calculation", but "calculation" is "calculation", how can we not understand it?
Of course, the metaphor is like this. The younger brother has no intention of directly "selling" the final game products to users. In comparison, the engine users are actually "opening restaurants, you are responsible for "selling meals" to game players, and the engine author is just a raw material supplier. The meaning of existence is only to save users time for planting vegetables and raising pigs. However, although the younger brother cannot "sell" your "Finished Products", who said that the younger brother cannot "sell" you even a "semi-finished product?
As long as you do not play traversal, I am afraid all the existing Java er will know spring. I know that a spring can meet almost all Java enterprise-level development requirements (but some complex businesses also need support from other components ). But do you yell at the jar of spring to open the door with sesame? Will it implement and build the complete code you need on your own? Certainly not. Isn't it because all users keep asking rod Johnson to meet user requirements? Certainly not (not in all meanings ~). In fact, spring also provides a series of standardized components, providing basic implementation modules for almost all enterprise-level needs (or easier encapsulation of third-party libraries ), however, users are free to choose the second combination of these ready-made modules.
Since it belongs to the same Java er, since it has successful experience from our predecessors, even if the field is slightly different, the younger brother can share the same picture. I have made a standard encapsulation for common game models such as AVG, SLG, RPG, Stg, act, puz, ftg, and RTS. How can you use the previous one? Everything follows the standard, so that you will not be confused, and I will not be confused.
Yes, the game extension module provided by the younger brother serves as a "semi-finished Game Products" or "development standard for a specific game type ", as long as the game you want to develop belongs to the same type as the extension package (the integrated type can be used in combination), follow the extension package routine to determine if you will "cook, at least one dish can be fried. Its existence makes the development of "the emperor yanlong" as simple as the development of a greedy snake, so that the production of "The Legend of the legend of the fairy sword" is easier than the production of the Russian square.
_____________________________________________________________________
For a long time, the reason why younger brother raised the lgame version number slowly was that the real purpose was originally to complete AVG and SLG (srpg) before the release of version 1.0) eight expansion packages, such as RPG, Stg, act, puz, ftg, and RTS, are designed to provide users with a complete set of 2D game solutions, rather than a set of pure rendering engines or tool sets. To be frank, lgame exists to act as spring in the 2D game field.
The following are some of the effects of the srpgtest project provided this time. Although the default style is not gorgeous enough, you can replace it with confidence, because all the lgame components are built by drawing, therefore, no matter what the effect is, it can be made (and it is also very easy to replace the style, now you can reload it, and later the younger brother will provide a simpler style mechanism ).
Note: The original srpg package included a third-party Lua package as a script, but later I considered that the Lua package was large and it was too cumbersome to use, so this setting is temporarily canceled. The younger brother is ready to directly refactor the command class to improve the built-in script mechanism. However, it is no problem to create an R drama only based on the current Command Script. Besides, it allows you to expand it on your own.
(Contains the sample project, source code and jar): http://loon-simple.googlecode.com/files/LGame-0.3.7z
--------------------
A while ago, the younger brother was a little "Miscellaneous", so he had no time to write the document (originally intended to write the document last month, but the result failed). Now, he has released version 0.3 first, the document has been supplemented slowly (I checked the amount of code again just now and began to despair about the document ......), Depressed, depressed, and depressed.