Java :: Create A Online Game?
Oct 4, 2010I am going to create a online game, so what is better, JavaFX or Flash?
View 3 RepliesI am going to create a online game, so what is better, JavaFX or Flash?
View 3 RepliesI'm building a Facebook multiplayer game where the client side is in FLEX and the server side is in Java and I wanted to know if there is a guide on how to build the server clients managing system. When I say server clients managing system, I mean a server which many clients will connect to and will be able to choose between tables to join and play or to create their own table, same way as in texas holdem poker.
View 1 RepliesI am newer with flex technology.I am creating a chart using ant file & .mxml in eclipse my 'ant' file executes properly but it gives following error when i opens a .swf file which is created auomatically:
Flex Error #1002: Flash Player 9.0.115 and above is required to support signed RSLs. Problem occurred when trying to load the RSL
[Code]...
There are a lot of flash games that ask u to do repetitive actions. An example would be FarmVille or getting statistics on on-line poker game. What is the best way to create an interface between what you see on the screen, a bot's algorithm and clicking of the mouse. So basically, when I'm playing a texas hold'em on face book and if I get AA I want the bot to click all-in. If I don't get AA I want to fold. This is just an example, not the actual strategy. Or another examples would be routing tasks in farmville. So basically. It has to grab a picture of the screen. recognize patterns and convert them into an input of the algorithm. The output algorithms would be clicking on some other (may be same) patterns.
View 1 RepliesI want to make a multiplayer flash game- something very basic, like each person controls a dot which they can move around (doing this as a learning experience, not because it seems like a great concept for a game ). I'm pretty new to PHP and mySQL, and don't have a lot of experience in making flash apps that interact with outside scripts... and here's the approach i've thought up so far.i design the swf so that every 30th of a second or so it checks an xml file on the server (http:servernamedata.xml), and also sends a request to the server to run a php script and sends it four boolean values (which keys the player is pressing). The php script runs- it loads a mysql database which has each players x/y coordinates, adjusts those coordinates according to the bool (if player is pressing keys), resends the x/y coordinates to the mysql database, and generates an updated version of the xml, which the swf running on each players client computer will check to determine where to draw each dot.So to get to the point, what i want to know is:
1: is what i described even possible?
2: if it can be done, is this a good way to go about it or is it horribly innefficient (i eventually want to make games more complicated than moving dots around, and have as much code run server-side as possible to prevent hacking/cheating)
3: if this is a possible and OK way to do this, what sort of AS3 script do you use to make a flash app have a server execute a php script?
If we made a game in flash that has online, would it cost money to have the online server or something?
View 3 RepliesI'm trying to develop a simple Flash game using Actionscript 2 (I know its a bit dated, but its a simple project that doesen't benefict much from AS3), and I came up with an ideia of implementing an online leaderboard that records and shows the highscore of the player.
This isn't anything too complicated, but I seem to be having problem finding resources online that explain how I should implement this. All I want is a call, probably to a PHP/MySQL database that records the player's name (which will be recorded via a input window) and its current score. It would also have to show the best all time scores, by order. I should remind you that I am working on a Actionscript 2 so Actionscript 3 solutions are probably not going to work.
if anyone knows of any great tutorials on building an online mulitplyer game
View 1 RepliesI'm making an online game where you can walk around in a city, and you see the others walk around as well at the same time. I made the script in php. The problem now is: I'm loading vars from flash out of the php-file, I know I can fool the cache by adding a unique number to it. That works, but I'm loading the php-file every second and if you look at your temporary internet files, you get a list of maybe thousand times the same php-file. In the beginning that didn't really matter, but now when I look at my site stats the list is like 5000 pages long... There must be an other way to fool the cache. And I was thinking about an old html-tag I used once to make sure your html-file wasn't loaded from cache: [URL].
View 1 RepliesI want to know if there is any way to creat an online multiplayer game using flash or flex (flash builder).
View 1 RepliesI'm developing a multi-player game and I know nothing about how to connect from one client to another via a server. Where do I start? Are there any whizzy open source projects which provide the communication framework into which I can drop my message data or do I have to write a load of complicated multi-threaded sockety code? Does the picture change at all if teh clients are running on phones?
View 4 RepliesI've been looking on the net for some time now (about 4 weeks on and off) and i've come across various ways of producing high score tables for both online and offline games. My query is:
Is it possible to produce a high score table for an online game using a document in the same location as the swf without using a PHP, SQL or any of the like languages? Either using a text document, xml, another swf or something else like that?
im trying to create a tamagotchi game type game. For some reason i can not add any items to the stage.Currently i have imported 2 png images to the stage and coverted them to movie clips. One is called TamagotchiCharacter and the other is called Beer. I have also created a new 2 AS3.0 script class called TamagotchiGame and DraggableItem. The following is TamagotchiGame:
Code:
package {
import flash.display.MovieClip;
public class TamagotchiGame extends MovieClip {
[code]....
I have assigned the above code as the BaseClass of the Beer symbol, this has allowed the beer to become draggable and droppable etc.when i run the program nothing happens, i just get a blank white screen.
I'm, working on this pool game: [URL] open it in TWO browser windows you will see that the 2 player modus starts. When you make a shot, every shot gets copied to the other player. Unfortunately it is not precise enough. The player makes the shot with this code:
[Code]..
So I'm not 100% sure if it's possible, but what I'd like to do is take a model that someone has created for a game, say in Blender or something similar, in various formats, and from that create an image to show on a website. Are there any Java libraries around? Java3D maybe? Or even something in Flash? Ideally you'd be able to rotate the model in some embedded flash app, but I'd settle for a plain old image.
View 2 Replies[please note this may require AS3 + Java knowledge] Background Information:
I'm trying to build a game using Java + Pulpcore, but I'm fairly new to the scene. The game I'm building could possibly be more performance intensive than I thought, and I know Java would solve my problems with this, but there are a couple questions I have dealing with strict-types, etc.
[Code]...
I'd like to port my Zuma-like game to browsers. It's not really complex 2D arcade game, just some animations and particle systems - really similar in complexity to the one I linked to.I'm wondering what technology should I use. I'm thinking about Java, Flash or maybe some solution working without a plugin (SVG, Canvas?). The cost of the technology is also really important to me (I'd prefer a free solution of course, but don't know if it's possible).It's really probable that I'll also port the game to Anrdoid and iPhone. Maybe if I picked Java, I could write one version that would work on both: browsers and Android phones?
View 3 Repliesthe game is a little flash component found here:[URL].. i found that link here[URL].. I have been using/converting the examples they give in the second link but cant get my "missile" to behave correctly. I am using java and andEngine combo. Here is what I have right now:
[Code]...
this code just makes the object travel to the upper right hand corner of the screen and it doesnt move after that. so i am missing something
my end goal is to have an object that will chase the users touch coordinates. I know how to have the object follow such coordinates but I dont want it to follow the exact path, but rather the shortest path to the most updated coordinates. so more like an intercept course
I'm developing a web-based fantasy football game. Most of the game is a straight-forward web application built on top of Linux/Apache/Php/MySQL.
I'm trying to figure out how to implement the draft application. The draft date and time will be scheduled in advance by each league's owner. Up to 32 users may be logged on for a given league's draft, and there is no limit to how many drafts may be happening concurrently. The users will take turns selecting players, and each user's turn will have a time limit. I'd like for all the users to be able to see whose turn it is, how much time that user has left to select a player, who they select, and which players are still available. If there are users in the league who are not logged in during the draft I'd like to be able to detect that and automatically assign players to them rather than waiting for the time to run out on their turn. Ideally I'd also like to have a chat window so the users could chat with one another during the draft.
My background is in desktop application development, so if necessary I could write server code in C#/.NET or Java. As far as I can see these are the options: PHP/AJAX - It seems like it would be possible to have all the state for the draft in the database and have the operations for the draft run in PHP triggered by requests from the clients? I guess in this case the draft doesn't start until at least one user logs in, and it seems like it would be a lot of polling requests to the server if I want everyone notified quickly when a user makes a selection.
[Code]...
Basically there will be a club and a ball. You can control the power and angle to hit the ball. How do I go about implementing this? Is flash the easiest way to go? I want to implement this as a facebook game. Any game libraries specific to this I can use to quickly implement a basic version? I am comfortable with Java and PHP.
View 1 RepliesI'm building a multiplayer card game using Flex on the client side and Java on the server side and I wanted to know if I must sockets and the accept method in order to connect users to the server for in order for them to join a game room or create one or to chat.In the past I've learned how to build a game server which both sides are JAVA and connection was in sockets but now days the client side will be in FLEX which has few ways to connect to a Java server (XML,SOAP,BLAZEDS(AMF)) and I find it hard to understand how to write the Java server in order to do all the features of a game server,especially managing the rooms and sending data back to the users.
In the sockets way, when a user was connecting to the server and he had opened a room, this room was opened on a thread and who ever was joined that room then he was connected to the same thread and sending the messages to the right place was easy, so the problem is understanding how to do the same using SOAP or BLAZEDS.
Is there a better way than in Flash? It would be a test of 50 multiple-choice and true-false questions, which would follow 300-400 PowerPoint slides. The slides could be jpg's loaded via xml or even put right into the fla/swf. The slides could also be on another part of the site and just the test would be in Flash.
View 2 RepliesI want to create on online advent calendar. I somehow need the actionscript in my swf to recognise what the date is and then go to a certain frame within my movie.I'm hoping you can somehow get actionscript to recognise the local date on the users computer and if it's a particular date, to gotoAndStop at a certain point within the timeline.
View 4 RepliesI am looking for a tutorial that will show me how to create an online 'design & print' service. ie the app has say 3 text areas / 3 image areas / drawings areas and a seperate controls to rotate the text and images etc. I then need to export the data as a vector for digital printing.
View 8 RepliesI have being thinking to create a website for music uploading and downloading!I have thought a lot and had been able to create it! But i'am stuck with this fear that windows media player would not be able to support with other browsers like SAFARI!
View 1 Repliesi'm trying to create an online brochure that users design with products/images they've selected. users will be able to drag a thumbnail to a pre-designed area, then swap them around to their liking. currently i'm in the beginning stages and just learning the power of actionscript.
i've attached two sample .fla files i've been working with. the first sample i have two thumbnails drag to a target and enlarge to a defined size. the second sample i used a tutorial from flashkit --- drag drop swap. it works but the as is not up-to-date. i'm trying to incorporate the two ideas together but get bizarre effects. most of the examples i find are close but no cigar.
I want to create a simple animation of a game so you can see the playout of a game. It should be an animation in which you just see the game Tic-Tac-Toe played. I have the states of the games in a description. So player 1 marks a cell = state 1; player 2 marks a cell = state 2 etc.. I currently have the game parsed in a ruby program; it will be easy to display just one state (like in the image), but how do I create an animation from it? Is there an easy way to do this? I'm open to solutions in every language but it shouldn't take to much time to implement. I want to show such an animation in a presentation.
<state1>
cell(1,1,x).
cell(1,2,o).
[code].....
I'd like it to display a question on one page, then have a next button which takes the user to another page telling them if that question was correct or not, and if it is correct they can move on to the next question (by clicking another next button) and if they got it wrong, have to go back and answer it again. However I have no clue how to do this! which includes a quiz. Would it be a better idea to create the quiz in Flash or something and then embed it into my Java application? Or just do the whole thing in Java?
View 2 RepliesI want to create a plugin like Flash. What programming language do I need??
View 1 Replieshow to structure the comms of a blazeds/flex game. What I'm trying to achieve is to have x no. of games occuring on the server each of which will contain 2 to 6 players. i think this will involve segmenting a feed, by creating a subtopic. eg game A gets filled with Player A + Player B, a dynamic destination gets created on the server side, and the new destination id gets returned to the clients. Not sure if I have that correct - to give some further background - the main server side code for a 2 player setup is here
Connecting multiple flex clients to a single java class