How does HTTP work?

For questions about using Classic.

Post » Mon Jun 01, 2009 9:17 pm

I noticed in Retorun that they MUST have used that objcet for their scoreboard thing, but how on Earth did they get the HTTP object to do that? I wanna know partly out of curiosity, to know more about how every little thing works, but also because I MIGHT consider it for my own game. Personally, I feel it MIGHT be out of place, but I also love scores. They're a classic element of gaming, and the old standard by which gamers used to compare each other with. Not weather you beat a game, or did this accomplishment, but what your "hi-score" was. One of the things I loved from Sonic Adventure 2, and other games like Trauma Center: New Blood and NiGHTS: Journey of Dreams that lets you upgrade your scores. It gives a nice competitive feeling with that most classic element of games. So I might try making it work, but in the meantime, I'm just wondering how it works.

Also: I assume HTTP can be used for things like scoreboards and whatnot, but can the Download object actually allow for downloadable content, like levels, weapons, etc. if one was so clever enough?
B
4
S
2
G
4
Posts: 164
Reputation: 1,878

Post » Tue Jun 02, 2009 2:06 am

[quote="Kisai":tmk5pi29]an the Download object actually allow for downloadable content, like levels, weapons, etc. if one was so clever enough?[/quote:tmk5pi29]

Yes, possibly. The method which first came to mind when u asked this is by downloading an .ini file and a graphic file. Weapons would all have to follow some sort of modular programming, with damage and other attributes editiable through plain text (i.e. .ini). The weapon would also swap its graphic at runtime with the use of the texture loading action on sprites.

Levels are another story. Depending on how your game is set up and programmed, they can either be very easy to add or impossible to add.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Jun 02, 2009 2:57 am

I'd rather NOT use .ini files, since those could be easily edited and messed with, but I'm sure creating a unique file that the game could read wouldn't be too hard. I imagine an image file of sorts would have to come in as well.
B
4
S
2
G
4
Posts: 164
Reputation: 1,878

Post » Tue Jun 02, 2009 8:57 am

It just submits HTTP requests, either to post data or to get data. A simple HTTP tutorial should guide you through the basics there. The Download object simply grabs a file from a URL, and is thus more suitable for downloadable content.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Jun 02, 2009 9:43 am

[quote="Kisai":8t5ubkif]I'd rather NOT use .ini files, since those could be easily edited and messed with, but I'm sure creating a unique file that the game could read wouldn't be too hard. I imagine an image file of sorts would have to come in as well.[/quote:8t5ubkif]
You can make some md5 stuff so it wont be so easilly edited.
B
27
S
3
G
5
Posts: 172
Reputation: 3,628

Post » Tue Jun 02, 2009 10:48 am

As said in another thread recently, I wouldn't worry about users editing game content, it's their loss. All you want to be careful of is that submitted scores/achievements are valid.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests