Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

hey, is ajax the only way to live battle system?

AJAX ajax

  • Please log in to reply
10 replies to this topic

#1 mefarsem

mefarsem

    CC Lurker

  • New Member
  • Pip
  • 8 posts

Posted 03 April 2012 - 10:08 AM

i want to make a battle system that someone can open a room, and another guy can join it, and one time 1st guy attacks, and then 2nd guy attacks, each one
of them has hp(life) bar that autoaticly rand gets down each time they attack each other, and also mana, get down each turn.

i want everything to happen without refresh , is ajax the best way?
thanks
  • 0

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 03 April 2012 - 10:44 AM

Ajax is pretty much THE way to do that, if it will be purely browser based. There's also Java Applets, Flash, and some other technologies.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 Roger

Roger

    Skadoosh!

  • Administrator
  • 1222 posts
  • Programming Language:C, PHP
  • Learning:Others

Posted 03 April 2012 - 11:32 AM

I asked my coworker and he said that node.js might work (http://nodejs.org/), depending on your specifics.
  • 0

New around here? Click here to register and start participating in under a minute?

Or do a quick search and you may find the answer you're looking for.


#4 mefarsem

mefarsem

    CC Lurker

  • New Member
  • Pip
  • 8 posts

Posted 03 April 2012 - 12:31 PM

can you please explain me more about node.js
and i can make a real time attack game without this? just with ajax?

and how hard is it?

thanks.

i need just text based browser game with only some pics that refresh's in the battle area, its not complicated mmorpg
  • 0

#5 Roger

Roger

    Skadoosh!

  • Administrator
  • 1222 posts
  • Programming Language:C, PHP
  • Learning:Others

Posted 03 April 2012 - 01:05 PM

Sorry, but I don't know much about node.js myself, just heard it's good for asynchronous type of servers.
  • 0

New around here? Click here to register and start participating in under a minute?

Or do a quick search and you may find the answer you're looking for.


#6 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 03 April 2012 - 04:20 PM

can you please explain me more about node.js
and i can make a real time attack game without this? just with ajax?

and how hard is it?

thanks.

i need just text based browser game with only some pics that refresh's in the battle area, its not complicated mmorpg


If you only need a text based browser game with some updating pics... ajax is probably the easiest way to go.
  • 0

#7 mefarsem

mefarsem

    CC Lurker

  • New Member
  • Pip
  • 8 posts

Posted 03 April 2012 - 04:49 PM

should i learn jquery? i've heard its the best to go...
its uses ajax or something like that....
  • 0

#8 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 03 April 2012 - 06:08 PM

jQuery is a JavaScript library that helps with a lot of things, including making AJAX calls.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#9 mefarsem

mefarsem

    CC Lurker

  • New Member
  • Pip
  • 8 posts

Posted 04 April 2012 - 06:22 AM

where is the best place i can learn jquery from beginner to pro? and will jquery library be able to make a battle system that works as i described in previous posts?
  • 0

#10 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 04 April 2012 - 06:32 AM

That depends entirely on your current skill level with programming in general, and JavaScript in particular. jQuery documentation is where I would start, along with various tutorials.

This will give you a LOT of info: http://duckduckgo.co...ry filetype:pdf
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#11 fread

fread

    Programming God

  • Senior Member
  • PipPipPipPipPipPip
  • 897 posts
  • Location:Trinidad and Tobago
  • Learning:C, Java, C++, C#, PHP, Python, PL/SQL

Posted 12 April 2012 - 02:43 PM

Yes learn JQuery or at least another framework. Managing JavaScript code across browsers will make you loose sleep (lots of sleep).
  • 1





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download