It is currently 20 Apr 2024, 02:17
   
Text Size

XMage API?

by BetaSteward

Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins

XMage API?

Postby wartime » 25 Apr 2016, 07:05

Just as a thought experiment, how much work would be involved to create a web API using XMage's gameplay logic. This way we can more easily create front-ends which do not rely on Java or spring?

I think an HTML5 or Unity front-end would be great and I'd like to give it a stab. I just downloaded XMage's codebase and it is very vast, so is there any starting point someone would recommend for seeing where the gameplay logic ends and the UI begins? How much of XMage's functionality relys on the spring interface?
wartime
 
Posts: 3
Joined: 25 Apr 2016, 06:56
Has thanked: 0 time
Been thanked: 0 time

Re: XMage API?

Postby escplan9 » 25 Apr 2016, 16:20

In the Developer Getting Started Guide (https://github.com/magefree/mage/wiki/D ... ng-Started) there's some mention of what each project does under the Developer Notes section:
https://github.com/magefree/mage/wiki/Developer-Notes
escplan9
 
Posts: 257
Joined: 10 Aug 2015, 22:38
Has thanked: 26 times
Been thanked: 40 times

Re: XMage API?

Postby wartime » 25 Apr 2016, 18:40

I saw that after I posted. According to that page there is a clear separation. Good news?
wartime
 
Posts: 3
Joined: 25 Apr 2016, 06:56
Has thanked: 0 time
Been thanked: 0 time

Re: XMage API?

Postby escplan9 » 25 Apr 2016, 19:28

I'm still very new to developing with XMage so I unfortunately don't have anything else to offer here.
escplan9
 
Posts: 257
Joined: 10 Aug 2015, 22:38
Has thanked: 26 times
Been thanked: 40 times

Re: XMage API?

Postby LevelX » 25 Apr 2016, 22:53

There were already 2 or 3 projects in the past to create such new clients.
They all failed because it's a lot more work than you probably think now.

The used interfaces between server and client are all here:
https://github.com/magefree/mage/tree/m ... /mage/view
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times

Re: XMage API?

Postby wartime » 25 Apr 2016, 23:51

Thanks, I think that's the list of files I was looking for. I'm not going promise I'll get very far but it seems like a fun side project.

Do you know those 2-3 failed projects? Maybe there's a starting point among them.
wartime
 
Posts: 3
Joined: 25 Apr 2016, 06:56
Has thanked: 0 time
Been thanked: 0 time

Re: XMage API?

Postby LevelX » 26 Apr 2016, 09:30

User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times


Return to XMage

Who is online

Users browsing this forum: No registered users and 151 guests


Who is online

In total there are 151 users online :: 0 registered, 0 hidden and 151 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 151 guests

Login Form