Simple source code for flash online games

Source: Internet
Author: User
If it is reproduced, please note Article Source: www.sujun.org Author: zhitianxiao

This is based on what we did last year. We haven't moved it for a long time (and occasionally made it happen during this period). Recently, we 've made it easy and sorted it out. However, if you cannot find the latest version, you can find a version to run and implement some basic functions.
For more information, see the image here.
Http://www.sujun.org/article.asp? Id = 8
If you are interestedSource codeCome on.

Work name: Adventure
Game type: Network RPG
Server: Windows Server/XP or later, with JDK or later installed, Tomcat installed, and MySQL database supported
Client: ie5.0 or a player later than Flash play8.0
Software Architecture: Flash + blue + Struts + hibernate + spring
Development Environment: flash8 + eclipse + FDT + JDK

1. Configure the Java environment, jdk1.5 and above, and install mysql5.0 (configure the Java environment variables)
2. In the SQL file, insert role. SQL, SQL. SQL, and insert. SQL into the MySQL database.
3. Modify the hibernate. cfg. xml file under the flashnetgame/classes folder, and modify the database connection address and user password.
4.pack netgame.swfin the netgamefalshfolder into the. exe file (if your computer is trustworthy, it is not required)
5. Download the spring and hibernate packages and put the relevant jar files in the Lib folder of the flashnetgame directory.
6. After preparing the above work, compile the build. xml file in the flashnetgame directory with ant.
(If ant is not installed, run the main class org. Game. server. startserver to start the server)
7.package netgame.swf in the netgamefalshfile into an EXE file (mainly the flash security policy. If you have configured your computer, you don't need it)
8. Connect to the server and use the built-in user to log in (account: Soda, password: Soda), or manually add it to the database.

CodeDownload:
Client and server Source Code

Some jar packages used by the Java Server
Jar in Lib is in spring and hibernate. If you use these frameworks, you do not have to download them.
(Note: The image resources used in the client are searched by the Internet and the copyright belongs to the original author)

it is estimated that some people may fail to install the code after the code is downloaded.
if you have any problems after downloading the code, please leave a message with us, I will answer in a unified manner
this item may not be updated in the future. It was a year ago and is not practical.
This is rarely used in actual online game work, such as the code writing method and style.
Of course, there are still some useful ideas, such as client synchronization and chat.
I plan to write new core technologies for the Java Server, as3.0-compliant socket (which has been used for development this year)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.