Author Topic: HTML Games with JavaScript  (Read 8170 times)

0 Members and 1 Guest are viewing this topic.

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: HTML Games with JavaScript
« Reply #15 on: December 19, 2010, 12:48:40 pm »
lol ive seen worse (on this one forum I will not mention there was this 3 year old thread that someone had necroposted in )  ;D
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: HTML Games with JavaScript
« Reply #16 on: December 19, 2010, 03:41:24 pm »
Yeah, it was actually 2 years old, but 5 threads in total.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: HTML Games with JavaScript
« Reply #17 on: December 27, 2010, 09:24:22 am »
...
Interesting but you can always try to manipulate a browser to load a different JavaScript code. But that would prevent many easy attempts. And it is interesting JavaScript code, I have seen it being used in libraries, I think.

Yes, this is a technique used in alot of librairies, but still:
the only way to edit these private vars is by finding the hex adress in the programs (for ex. using CheatEngine)
But even that can be prevented by encoding all vars (I'm a security freak :w00t:)

Edit: About the javascript source code being public, see this: http://www.javascriptobfuscator.com/default.aspx
Ofcourse, it doesn't completely hide the code, but sure makes it damn hard to find out :)
« Last Edit: December 27, 2010, 09:29:36 am by Ikkerens »

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: HTML Games with JavaScript
« Reply #18 on: December 27, 2010, 06:22:28 pm »
Interesting. I guess it can be converted back by someone who is very tech-savy, though.

One problem with JS is if you use it to block access to certain stuff on the site or to hide info, the person just have to disable JS in his browser to access the info fine.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: HTML Games with JavaScript
« Reply #19 on: December 29, 2010, 06:22:16 am »
Interesting. I guess it can be converted back by someone who is very tech-savy, though.

One problem with JS is if you use it to block access to certain stuff on the site or to hide info, the person just have to disable JS in his browser to access the info fine.

Have a solution for that as well :)
What if the site layout on load is like this:
Code: (HTML) [Select]
<!DOCTYPE Notgivingashitaboutw3c>
<html>
<head>
<title>
My Website
</title>
<script type="text/javascript" src="./myjsfile.js"></script>
</head>
<body>
<div id="main">
Please enable JavaScript to load this site.
</div>
</body>
</html>
And then use javascript to load in the rest using ajax :P
Don't do anything unless the user enables javascript :)

And ofcourse, the obfuscation can be "de-coded", that's what the browser does in the first place to read it.
But then again, not everyone knows how to do such thing, it does add another grade of difficulty to it.

And yes, I know javascript isn't the most secure, but you can still go quite far with some imagination :)
As I always say: The code isn't limited, the programmer's imagination is :)

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: HTML Games with JavaScript
« Reply #20 on: December 30, 2010, 03:46:01 am »
Yeah I agree. I guess we just need to be careful to not use it for things that absolutely requires high security, like a forum RPG system. On Invisionfree, you just changed your RPG stats in your signature while JS was disabled and you were done: LV 255, ultimate sword, etc. :P
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: HTML Games with JavaScript
« Reply #21 on: March 09, 2011, 01:26:44 pm »
(Yay, I seem to be very good at necroposting LOL)
Anyway, I have some progress on this subject...
A friend of mine has currently managed to get his JavaScript based MMORPG in the closed béta phase.
As I am invited to the closed béta atm (I'm the only one except staff that has access), I was allowed to post some things on the forums.
You can check them out here:
http://forums.vanthia.com/viewtopic.php?id=389

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: HTML Games with JavaScript
« Reply #22 on: March 09, 2011, 01:37:49 pm »
yeah, I agree with that belgium programmer, it's the worst language ever.  blah.  screw JS.
He only quoted something, but people saying so don't bother trying to get it to its full potential.
And what arguments do you have for saying its the worst language ever?
I can easily outdo effects created using flash or java using it.
« Last Edit: March 09, 2011, 01:39:26 pm by Ikkerens »

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: HTML Games with JavaScript
« Reply #23 on: March 09, 2011, 01:41:54 pm »
Ashbad, please do not start a language war here (unless you were just quoting an old post). Although it's a major PITA to get to work, it looks like here we got an example of what kind of stuff can be done in it.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: HTML Games with JavaScript
« Reply #24 on: March 09, 2011, 01:43:32 pm »
Ashbad, please do not start a language war here (unless you were just quoting an old post). Although it's a major PITA to get to work, it looks like here we got an example of what kind of stuff can be done in it.
Which are quite amazing though.
I have been given the right to invite some people as well.
Well, not immediatly, but soon ^^

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Ashbad

  • Guest
Re: HTML Games with JavaScript
« Reply #25 on: March 09, 2011, 01:43:50 pm »
personally, I forgot many of my arguments (I used JS a loooong time ago) but I do remember it's form of OOP was somewhat weird and weak, and it's syntax is weird.  that's all I remember personally.

also, I was referring to that earlier post on page one about how a belgium programmer said that JS is the worst programming language ever.

EDIT: also, where's the language war?  can't I say I don't like JS?
« Last Edit: March 09, 2011, 01:44:21 pm by Ashbad »

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: HTML Games with JavaScript
« Reply #26 on: March 09, 2011, 01:46:41 pm »
personally, I forgot many of my arguments (I used JS a loooong time ago) but I do remember it's form of OOP was somewhat weird and weak, and it's syntax is weird.  that's all I remember personally.

also, I was referring to that earlier post on page one about how a belgium programmer said that JS is the worst programming language ever.

EDIT: also, where's the language war?  can't I say I don't like JS?
By default, javascript isn't meant to be OO, but it depends on the programmer on how to implement it.
I do agree with the fact that it has a weird syntax, but it has ALMOST the exact same syntax as php, so you're calling PHP weird as well? I know thousands of people who would hate you for saying that ^^

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Ashbad

  • Guest
Re: HTML Games with JavaScript
« Reply #27 on: March 09, 2011, 01:48:09 pm »
oh.  in that case, tons of PHP people will hate me then.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: HTML Games with JavaScript
« Reply #28 on: March 09, 2011, 01:48:57 pm »
Ashbad, please do not start a language war here (unless you were just quoting an old post). Although it's a major PITA to get to work, it looks like here we got an example of what kind of stuff can be done in it.
Which are quite amazing though.
I have been given the right to invite some people as well.
Well, not immediatly, but soon ^^
Ah cool, try to not advertise another forum, though, especially not via PM, because that would be against the rules. Game is fine, though.

As for JS personally the thing I disliked was how one single tiny mistake like forgetting a ; could screw the code up, how sometimes we got errors for absolute no reason and how other times when we should be getting one, we don't get any, plus the fact it's so hard to get a JS code to work properly in all browsers. That said I had the ; issue occur in CSS styling too, so maybe it's something with web dev. :P Otherwise, my argument like with TI-BASIC stands: It's not the language used that matters the most, but the end result. I personally dislike judging a game solely based on its file size or language.

And the language wars is when you say something such as "X language is crap" or "screw X language" like if it was a fact instead of personal opinion. You can dislike/hate Javascript, but do not bash people JS projects. And I am considering disabling the ability to delete posts, since it seems abused now.
« Last Edit: March 09, 2011, 01:53:20 pm by DJ_O »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: HTML Games with JavaScript
« Reply #29 on: March 09, 2011, 01:52:02 pm »
Ah cool, try to not advertise another forum, though, especially not via PM, because that would be against the rules. Game is fine, though.
Oh, ok... Well, I'm linking to the other forum because they didn't give me the rights to post it elsewhere, but I thought it was worthy to at least notify the people here that it exists ;)

As for JS personally the thing I disliked was how one single tiny mistake like forgetting a ; could screw the code up, how sometimes we got errors for absolute no reason and how other times when we should be getting one, we don't get any, plus the fact it's so hard to get a JS code to work properly in all browsers. That said I had the ; issue occur in CSS styling too, so maybe it's something with web dev. :P Otherwise, my argument like with TI-BASIC stands: It's not the language used that matters the most, but the end result. I personally dislike judging a game solely based on its file size or language.

Completely agree with that ^^

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...