Topic:   After Serious Discussion With Mike...   (Read 15369 times)


0 Members and 1 Guest are viewing this topic.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
After Serious Discussion With Mike...
« on: April 01, 2010, 07:58:37 AM »
We're bringing iPhone development support to SilverCreator.

In fact the process will work such like:
(1) Create a new Sc game.
(2) Choose the iPhone screen size.
(3) Code your game and test normally.
(4) When building, choose the "Build to iPhone" selection.
(5) Sc takes a custom built template I've made in which it converts *Sc code to iPhone ready code and inserts it into the custom template source.
(6) Once the code is in the source, it invokes a few terminal commands that compiles it to the latest iPhone version. If you have the iPhone SDK and Xcode installed.
(7) Now you have the built app file.

This won't work on a pc as you must have the iPhone SDK and Xcode installed. We're currently looking into maybe allowing the game to open the iPhone Simulator via terminal commands and testing the app that way...


-Gan
*For example, by converting from Sc code to iPhone ready code it'd be like:
Code: [Select]
IF number = 10 THEN
END IF
//To
if (number == 10) {
}
« Last Edit: April 01, 2010, 08:30:39 AM by Gandolf »

EqwanoX


  • Administrator

  • GMG Extraordinaire

  • *****


  • Posts: 1180
Re: After Serious Discussion With Mike...
« Reply #1 on: April 01, 2010, 11:35:42 AM »
that would be the best thing ever, cause i dont have time to learn iphone code

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: After Serious Discussion With Mike...
« Reply #2 on: April 01, 2010, 11:46:11 AM »
I don't even have time to read your whole post, but I'll return in a few hours with questions and songs of praise.
I survived the spammage of 2007

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: After Serious Discussion With Mike...
« Reply #3 on: April 01, 2010, 02:07:28 PM »
Do you plan to continue offering SilverCreator as free? Most iPhone dev kits (GameSalad for example) charge either a one-time fee for publishing the game, or at least a premium fee to be able to compile iPhone games.

Might be something to consider.

Teruri


  • GMG-er

  • **


  • Posts: 167

  • This personal text couldn\'t be worse
Re: After Serious Discussion With Mike...
« Reply #4 on: April 01, 2010, 02:47:39 PM »
*points at calendar*

'nuff said.
Max 500; characters remaining: 466

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: After Serious Discussion With Mike...
« Reply #5 on: April 01, 2010, 05:12:12 PM »
I'm being serious.
I have been contacting Mike and this could be released in a near version.


-Gan
« Last Edit: April 01, 2010, 06:21:22 PM by Gandolf »

alias


  • Guest
Re: After Serious Discussion With Mike...
« Reply #6 on: April 01, 2010, 07:18:22 PM »
hmmm

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: After Serious Discussion With Mike...
« Reply #7 on: April 01, 2010, 08:22:38 PM »
If it was a simple task to parse scripting and turn in into efficient C/C++/Obj-C/C#, then we would see tons of stuff like this.

That would be pretty awesome, however   ;D
« Last Edit: April 01, 2010, 08:22:59 PM by WarHampster »

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: After Serious Discussion With Mike...
« Reply #8 on: April 01, 2010, 08:36:50 PM »
It's not that tough, here's a few examples of ways it could work:
Code: [Select]
FOR variable = 1 to n
   scripting...
NEXT
to
for (int variable = 1; variable < n; variable++) {
   scripting...
}
So far simple enough, just pin point key variables, words and such. Then replace bits of the code with Obj-C code.
Code: [Select]
DRAWLINE 0, 200, 300, 200 
to
drawLine:context translate:CGPointMake(0,0) point:CGPointMake(0,200) topoint:CGPointMake(300,200) rotation:0.0 linesize:1.0

See, just isolate and copy the variables then replace the line with the Obj-C version and re-fill with variables.

Just so you guys know, this is a half-April fools joke. I've figured out a good process to do this and have e-mailed Mike. Sadly he hasn't responded. I e-mailed him quite a while ago.
It's entirely possible and ripe for the picking so... up to Mike.


-Gan
P.S. Perhaps... maybe... hmmm....
I have an urge to create my own game creator for mac/iPhone using Sc's syntax.

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: After Serious Discussion With Mike...
« Reply #9 on: April 01, 2010, 10:54:16 PM »
The problem isn't converting the code, the problem would be keeping it efficient. When programming in any C variant you're constantly worrying about memory management and other low level stuff, how would you automate that? The program would need to understand exactly what the SC script is doing and then decide how to implement it and optimize it, as you know C and SC commands are not 1:1.
« Last Edit: April 01, 2010, 10:55:09 PM by WarHampster »

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: After Serious Discussion With Mike...
« Reply #10 on: April 01, 2010, 11:03:30 PM »
No worries. For memory management I'll have all created variables be stored in an NSMutableArray. Automatically on dealloc it'll release each variable within the array.
That's keep it memory efficient.


-Gan

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: After Serious Discussion With Mike...
« Reply #11 on: April 02, 2010, 02:04:12 AM »
Had me fooled!
I survived the spammage of 2007

alias


  • Guest
Re: After Serious Discussion With Mike...
« Reply #12 on: April 02, 2010, 02:33:22 AM »
ha, interesting indeed

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: After Serious Discussion With Mike...
« Reply #13 on: April 04, 2010, 04:43:32 AM »
I wrote this before reading the thread here: http://www.silvercreator.net/cgi-bin/yabb2/YaBB.pl?num=1270373977/0

I think an iPad runtime would be a lot better.

Xiphos


  • GMG-er

  • **


  • Posts: 676
Re: After Serious Discussion With Mike...
« Reply #14 on: April 04, 2010, 08:30:37 AM »
how about both screen sizes, so you can make ipod, ipad, and mac and windows games.