Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder adarshakb's Avatar
    Join Date
    Jun 2009
    Location
    Silicon valley of india
    Posts
    247
    Thanks
    11
    Thanked 1 Time in 1 Post

    Programing for mobile games

    Hi there i wanted to write simple games for mobiles, something like a good tetris program. I want it to work in android and iphone phones. My current knowledge of programing is fairly good in webdevelopment(php,mysql,html,css,js) and c/c++/java all intermediate level and basic opengl programing.

    Reagrding it i have a few questions

    1. If i code in xcode can i port/deploy it on android phones?
    2. What are the languages/packages i need to learn
    3. Can i get some helpful tutorial links to the same for a new bee.

    Thanks.

    PS: i didnt know if it were the right forum topic...
    Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.

    Albert Einstein
    -----------------------------------------------------
    My Blog songs

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,448
    Thanks
    11
    Thanked 598 Times in 578 Posts
    use js/css3/html5 and it will run on ios, android, nintendo, and desktop using the same code.
    my site (updated 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%

  • #3
    New Coder
    Join Date
    Sep 2011
    Posts
    21
    Thanks
    1
    Thanked 3 Times in 3 Posts
    To start game programing in Android as my knowledge goes the learning curve is steep but since you mentioned that you are good in this aspect so I would say you need to just apply those in the proper enviornment. To start with you first need to get the Android SDk with eclipse android plugin, this I hope has been done.
    It may be tempting to just start right away but it's important to understand the android app architecture. Without this your peice you would face lot of difficulties in fixing the bugs or improvising the user experience later. Google has provided good information on the architecture so you can first check that out.
    But all this out of the way you need to understand what how many activity your game need to encompass to give a better user interaction, designing the game with just one activity is good to start with but from user perspective it gets boring and reminds us of the 90's where it just waited indefinitely for user inputs. Hope I was able to help you in some aspect

  • #4
    New Coder
    Join Date
    Sep 2011
    Posts
    21
    Thanks
    1
    Thanked 3 Times in 3 Posts
    There has been some more information which I found useful to start with . PFB for the same

    Android 2.3 includes a variety of improvements across the system that make common operations faster and more efficient for all applications. Of particular interest to game developers are:
    * Concurrent garbage collector — The Dalivik VM introduces a new, concurrent garbage collector that minimizes application pauses, helping to ensure smoother animation and increased responsiveness in games and similar applications.
    * Faster event distribution — The plaform now handles touch and keyboard events faster and more efficiently, minimizing CPU utilization during event distribution. The changes improve responsiveness for all applications, but especially benefit games that use touch events in combination with 3D graphics or other CPU-intensive operations.
    * Updated video drivers — The platform uses updated third-party video drivers that improve the efficiency of OpenGL ES operations, for faster overall 3D graphics performance.

    Native input and sensor events

    Applications that use native code can now receive and process input and sensor events directly in their native code, which dramatically improves efficiency and responsiveness.
    Native libraries exposed by the platform let applications handle the same types of input events as those available through the framework. Applications can receive events from all supported sensor types and can enable/disable specific sensors and manage event delivery rate and queueing.

    Gyroscope and other new sensors, for improved 3D motion processing

    Android 2.3 adds API support for several new sensor types, including gyroscope, rotation vector, linear acceleration, gravity, and barometer sensors. Applications can use the new sensors in combination with any other sensors available on the device, to track three-dimensional device motion and orientation change with high precision and accuracy. For example, a game application could use readings from a gyroscope and accelerometer on the device to recognize complex user gestures and motions, such as tilt, spin, thrust, and slice.

    Open API for native audio

    The platform provides a software implementation of Khronos OpenSL ES, a standard API that gives applications access to powerful audio controls and effects from native code. Applications can use the API to manage audio devices and control audio input, output, and processing directly from native code.

    Native graphics management

    The platform provides an interface to its Khronos EGL library, which lets applications manage graphics contexts and create and manage OpenGL ES textures and surfaces from native code.

    Native access to Activity lifecycle, window management

    Native applications can declare a new type of Activity class, NativeActivity whose lifecycle callbacks are implemented directly in native code. The NativeActivity and its underlying native code run in the system just as do other Activities — they run in the application's system process and execute on the application's main UI thread, and they receive the same lifecycle callbacks as do other Activities.
    The platform also exposes native APIs for managing windows, including the ability to lock/unlock the pixel buffer to draw directly into it. Through the API, applications can obtain a native window object associated with a framework Surface object and interact with it directly in native code.

    Native access to assets, storage

    Applications can now access a native Asset Manager API to retrieve application assets directly from native code without needing to go through JNI. If the assets are compressed, the platform does streaming decompression as the application reads the asset data. There is no longer a limit on the size of compressed .apk assets that can be read.
    Additionally, applications can access a native Storage Manager API to work directly with OBB files downloaded and managed by the system. Note that although platform support for OBB is available in Android 2.3, development tools for creating and managing OBB files will not be available until early 2011.

    Source : Android Developer Forum

  • #5
    Banned
    Join Date
    Aug 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can i use html in android programs
    or
    how to add html to android programs


  •  

    Posting Permissions

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