Results 1 to 10 of 10

Thread: Pascal for webbrowsers and/or mobile devices

  1. #1

    Pascal for webbrowsers and/or mobile devices

    Yesterday somebody asked me about to create games for webbrowsers and mobile devices.

    I know that FreePascal can build iOS executables, but this wouldn't be enough. If I remember correctly, there is a compiler that translates Pascal programs to Adobe Action Script/Flash. Also I know there are a FPC fork that builds web applications using JavaScript. The problem is that I forgot the names. Also I don't know how much compatible they are.

    Do you know about compilers, packages and/or engines that allow to use Pascal to create games for webbrowers and/or mobile devices?
    No signature provided yet.

  2. #2
    Perhaps Cooper can be used to create JAVA Applets?
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  3. #3
    If you don't mind setting up your own server, you can use Morfik or ExtPascal for example. Or you can start from scratch and make a FreePascal CGI application using fpweb or somthing similar.

    The compiler compiling Pascal to Flash is called FlashPascal, but it is quite alpha, hasn't been update in a while and therefore doesn't use any of the new features.

    There is a quite interesting piece of software in the works called OP4JS (which basically translates Object Pascal code to JavaScript): http://op4js.optimalesystemer.no/
    Freeze Development | Elysion Game Framework | Twitter: @Stoney_FD
    Check out my new book: Irrlicht 1.7.1 Realtime 3D Engine Beginner's Guide (It's C++ flavored though)

    Programmer: A device for converting coffein into software.

  4. #4
    Another way would be to use special purpose components like IntraWeb http://www.atozed.com/intraweb/index.en.aspx
    The main disadvantage of IntraWeb component suite is heavy dependancy with Indy component suite wich both have support only for Delphi but not for Free Pascal. Those who onws Delphi 7 or later are in luck, becouse IntraWeb components are shiped with Delphi as a bundeled third party components.
    While older versions of IntraWeb have quite limited capability they could still be used for making of some simple browser games like Travian, Ikariam, and similar. New versions do have some more advanced fetures, but they still won't offer a game programer much more to use as theese components are oriented more to buisniess appliacations.
    Another drawback is that web applications built with IntraWeb requres ISS server or atleast server with ISS support. And jet another drawback is so caled "Application mode" wich prevents of using a "Back button" like in normal web pages.

  5. #5
    hmm maybe you should take a html5 solution and wrap the stuff with PhoneGap to an native app

    like morfik or extpascal + phonegap? oO

  6. #6
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537
    What about midletPascal?
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  7. #7
    Thank you all.

    Quote Originally Posted by Stoney View Post
    The compiler compiling Pascal to Flash is called FlashPascal, but it is quite alpha, hasn't been update in a while and therefore doesn't use any of the new features.
    This is what I was talking about. I've seen that latest version is from April, so it isn't dead. And yes, it laks a lot of things, mostly the RTL and the fact that it "supports" until Flash8, but may be we can use it.

    Quote Originally Posted by Stoney View Post
    There is a quite interesting piece of software in the works called OP4JS (which basically translates Object Pascal code to JavaScript): http://op4js.optimalesystemer.no/
    This would be useful if finally we use HTML5.

    Quote Originally Posted by SilverWarior View Post
    Another way would be to use special purpose components like IntraWeb http://www.atozed.com/intraweb/index.en.aspx (...)
    Useful for on-line play? The idea they have is more action games (shooters, platform, etc).

    Quote Originally Posted by Daikrys View Post
    hmm maybe you should take a html5 solution and wrap the stuff with PhoneGap to an native app

    like morfik or extpascal + phonegap? oO
    We talk about HTML5, but I think we will not use it now. May be in the future.

    Quote Originally Posted by cairnswm View Post
    What about midletPascal?
    Yes, this is also what I was looking for.

    Quote Originally Posted by chronozphere View Post
    Perhaps Cooper can be used to create JAVA Applets?
    This will work on mobile?

    I see we need to talk more about the project and the target, as we can use Java or flash.
    No signature provided yet.

  8. #8
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Quote Originally Posted by ?ëu?±o Mart??nez View Post
    This will work on mobile?

    I see we need to talk more about the project and the target, as we can use Java or flash.
    See the thread I made about Oxygene... here. Has a couple of cool videos showing how Jim McKeeth creates/compiles a project for Android and Windows Phone 7 using Cooper(Java) and Prism(.NET) Both based off of RemObjects' Oxygene compiler engine.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  9. #9
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537
    Quote Originally Posted by ?ëu?±o Mart??nez View Post
    Yes, this is also what I was looking for.
    I have just downloaded the newest MidletPascal as I want to create an android front end to an online (php) game I am working on. I am probably quite a long way away from really saying if it will work or not. Also my front end wont have heavy graphics requirements so might not really answer your questions.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  10. #10
    Quote Originally Posted by cairnswm View Post
    I have just downloaded the newest MidletPascal as I want to create an android front end to an online (php) game I am working on. I am probably quite a long way away from really saying if it will work or not. Also my front end wont have heavy graphics requirements so might not really answer your questions.
    Doh... :/

    BTW I was playing with Flash Pascal. Yes, it's very unfinished but there are a lot of things that can be done.
    No signature provided yet.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •