|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding | |
Help identifying lanuage used.
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||
|
Overclocker in Training
|
I am looking screw around and make something similar to MafiaWars on Facebook and I was just wondering what you think it was coded in?
__________________Is it PHP + MySQL? For some reason I don't think it is, but prove me wrong. If you've never played MafiaWars, it's like this: You start with energy and do jobs...doing jobs gives you money. Every few minutes your energy is increased, allowing you to do more jobs if the amount of energy you build up allows it. Ideas? *edit* The main thing I want to figure out is the adding energy every 'x' minutes. Is that something you can do with MySQL or PHP or is there something else going on in the background?
Last edited by 66gto : 07-22-09 at 10:20 PM |
|||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
4.0 GHz
|
its either php or asp
__________________
|
|||||||||||||
|
|
|
|
|
#3 (permalink) | |||||||||||
|
4.0ghz
![]() |
Or neither, considering it's a Facebook plugin.
__________________You should just look up what Facebook plugins are written in, instead of asking here... that seems to be the obvious course of action...
|
|||||||||||
|
|
|
|
#4 (permalink) | |||||||||||
|
Overclocker in Training
|
I don't necessarily want to do it for Facebook, so I guess I want to ask what the best way to do it as a standalone website would be.
__________________
|
|||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||
|
Linux Lobbyist
|
the best way to do this would depend on the platform you use on the server... for most configurations PHP/Mysql would be the best bet, though writing a server in C is also possible for example... just a tad more complicated
__________________
|
|||||||||||
|
|
|
|
|
#6 (permalink) | |||||||||||
|
Linux Lobbyist
|
let me know if you need help to get started on something like this, i don't mind helping out if i have time
__________________
|
|||||||||||
|
|
|
|
|
#7 (permalink) | |||||||||||
|
Linux Lobbyist
|
there are a few ways to do it. The best way i can think of, is checking every time the page is accessed how much time has passed since the last access, and adjust the values then. Unless you write your own server, I don't see how you could do this in the background at all.
__________________
|
|||||||||||
|
|
|
|
|
#8 (permalink) | |||||||||||
|
Overclocker in Training
|
+REP for everyone's input, thanks!
__________________
|
|||||||||||
|
|
|
|
|
#9 (permalink) | |||||||||||
|
4.0ghz
![]() |
PHP is probably the easiest to pick up from scratch. It was my first language. You probably won't grasp (or even need to use) stuff like object-oriented programming, but it has that too. It's a good introduction to programming because it takes care of data types and stuff for you.
__________________For example, to add two whole numbers in Java would be (very similar in other languages like C++): PHP Code:
PHP Code:
|
|||||||||||
|
|
|
|
#10 (permalink) | ||||||||||||
|
µaestro
![]() |
For anything remotely complicated you'll likely want to use an object oriented language, it helps keep everything neat.
__________________
Quote:
|
||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|