Coding for hedgewars

4 replies [Last post]
Sylph
Sylph's picture
User offline. Last seen 4 years 31 weeks ago. Offline
Joined: 03/13/2010
Posts: 1

I would like to try to code something for Hedgewars.
But i have some starting difficulties.
I need a tutorial.
Which tools are the best?
Which files have which source code?

rbaleksandar
rbaleksandar's picture
User offline. Last seen 6 weeks 5 days ago. Offline
Joined: 01/09/2009
Posts: 685

You can see the list of used compiler for the game if you look at the installation instructions for Linux. As for which tools are the best - this is something you have to decide for yourself since most people have different tastes and oppinion what's good and what's not. Wink Smiley

Quote:
Which files have which source code?

Hmm, if I get your question right than just look at the extension of the file and google it. It'll eventually show you in the first couple of search-results what creates it and what you can open it with. Just download the source code of HW and look at all that's in there.

HTML = How To Meet the Ladies

Here is my Unofficial Manual for HW. Hope you like it. Wink Smiley Still working on it. Don't worry. Will get it finished...Sometime in the future. Big Grin

Sauer2
User offline. Last seen 4 years 28 weeks ago. Offline
Joined: 11/30/2008
Posts: 53

I have two other questions that fit in this topic:

1. Is the source code well documented now?
2. I'm curious about how you guys compile the engine on the IPhone, since Apple wants to banish everything except C, C++ and ObjectiveC if i understood the news right. Aghh

http://daringfireball.net/2010/04/iphone_agreement_bans_flash_compiler

rbaleksandar
rbaleksandar's picture
User offline. Last seen 6 weeks 5 days ago. Offline
Joined: 01/09/2009
Posts: 685

As far as I know Qt is available for iPhone. There is also an iPhone-version of FreePascal (HW's engine is written in it). For the rest - no idea but I'm sure things are available for iPhone. HW has nothing to do with Flash. AND it's not Apple who said "no" to an iPhone-version of flash. It's Adobe that stated that. Wink Smiley

HTML = How To Meet the Ladies

Here is my Unofficial Manual for HW. Hope you like it. Wink Smiley Still working on it. Don't worry. Will get it finished...Sometime in the future. Big Grin

Sauer2
User offline. Last seen 4 years 28 weeks ago. Offline
Joined: 11/30/2008
Posts: 53

No offense, but, no. Daring Fireball says, the new official iphone SDK license agreement says something like this:

Quote:
3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).

And by 'intermediary translation' i think of bindings, too. Also this seems to me as if you weren't allowed to use exterior libs like SDL or Qt anymore, only the API provided by Apple.

Or can you develop applications without this SDK?

Anyway, what is about the documentation (comments and so on)?

best regards

Sauer2

Copyright © 2004-2014 Hedgewars Project. All rights reserved. [ contact ]