[RELEASED] The Defense of Lushington Springs

  ... announce your new project or blog about the development of your project.

Re: [RELEASED] The Defense of Lushington Springs

Postby Niffy » Sun May 20, 2012 8:20 pm

Working well on my HTC Desire S!
No problems so far
Great graphics and some great dev work as well!

I noticed on the play guide you have text boxes, Are these bits all designed by you or are they just normal android layout items?

If they are bog standard android items, I'm really interested in how you got them to work, such techniques might help me try to use dialogs which are non modal thus stopping any of my other threads.
Niffy
 
Posts: 284
Joined: Sat Sep 17, 2011 8:39 pm

Re: [RELEASED] The Defense of Lushington Springs

Postby sjkm » Sun May 20, 2012 8:39 pm

Hey thanks a lot for providing the particle!
The force close only occured the first time I started the game.
I've just started the game a few times to see if something is going to happen but no error or close came up.
Strange... do you create a database or something like that when the game is first started?
sjkm
 
Posts: 21
Joined: Sun May 20, 2012 12:43 pm
Location: Zurich, Switzerland

Re: [RELEASED] The Defense of Lushington Springs

Postby lintfordpickle » Sun May 20, 2012 9:01 pm

HI Niffy,

Thanks for the info about HTC Desire S

The playguide just uses the normal android stuff. In the case of the text, it is using a n EditText view and a custom drawable to define the style (the custom drawable is called roundedShape.xml) so there are no assets needed:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <LinearLayout
  2.        android:id="@+id/linearLayout2"
  3.        android:layout_width="fill_parent"
  4.        android:layout_height="0px"
  5.        android:layout_weight="0.9"
  6.        android:orientation="vertical" >
  7.  
  8.         <!-- Image -->
  9.  
  10.         <RelativeLayout
  11.            android:id="@+id/linearLayout2"
  12.            android:layout_width="fill_parent"
  13.            android:layout_height="0dp"
  14.            android:layout_margin="5dp"
  15.            android:layout_weight=".6"
  16.            android:background="@drawable/roundedshape" >
  17.  
  18.             <ImageView
  19.                android:id="@+id/levelDescription"
  20.                android:layout_width="match_parent"
  21.                android:layout_height="match_parent"
  22.                android:padding="5dp"
  23.                android:src="@drawable/playguide_image_placeholder" />
  24.         </RelativeLayout>
  25.  
  26.         <!-- Description -->
  27.  
  28.         <RelativeLayout
  29.            android:id="@+id/linearLayout2"
  30.            android:layout_width="fill_parent"
  31.            android:layout_height="0dp"
  32.            android:layout_margin="5dp"
  33.            android:layout_weight=".4" >
  34.  
  35.             <EditText
  36.                android:id="@+id/levelDescription"
  37.                android:layout_width="match_parent"
  38.                android:layout_height="match_parent"
  39.                android:background="@drawable/roundedshape"
  40.                android:enabled="false"
  41.                android:padding="5dp"
  42.                android:scrollbars="vertical"
  43.                android:text="@string/playguidePage01"
  44.                android:textColor="@android:color/white"
  45.                android:textSize="11dp" />
  46.         </RelativeLayout>
  47.     </LinearLayout>
Parsed in 0.005 seconds, using GeSHi 1.0.8.4


and then in @drawable/roundedshape.xml :

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <shape xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:shape="rectangle" >
  4.  
  5.     <stroke android:width="1dp" android:color="#FFC28D3A" />
  6.  
  7.     <solid android:color="#B0000000" />
  8.    
  9.     <corners
  10.        android:bottomLeftRadius="7dp"
  11.        android:bottomRightRadius="7dp"
  12.        android:topLeftRadius="7dp"
  13.        android:topRightRadius="7dp" />
  14.  
  15. </shape>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


@sjkm,

Thanks for checking again. I don't do any first time checks (and I don't use any databases within the game, I tend to use XML files for everything). I'll definitely be doing a big update in the next week or two to add some of these features that are cropping up like Backup to SD card and I may add a loading screen for the main menu.

-John
lintfordpickle
 
Posts: 52
Joined: Thu Dec 15, 2011 5:43 pm
Location: Krefeld, Germany

Re: [RELEASED] The Defense of Lushington Springs

Postby Niffy » Mon May 21, 2012 1:07 am

So are you using many actives? such as are you loading this in a normal BaseGameActivity, or the special LayoutActivity. And then loading the game as a BaseGameActivity?

It sounds like you're using this as normal android activities and then switching to Andengine own activities.
Niffy
 
Posts: 284
Joined: Sat Sep 17, 2011 8:39 pm

Re: [RELEASED] The Defense of Lushington Springs

Postby lintfordpickle » Mon May 21, 2012 9:02 am

Ah I see what you mean now. In total I have three activities, 1. The Splash Screen, 2. The main menu and 3. The Game.

The game and main menu use fragments for all the different 'pages'. I had to create a new class (which I copied from BaseGameActivity) and with that I derived from the android.support-v4.FragmentActivity. So ultimately I am initialising AndEngine once per activity and just displaying the different fragments over the top.
lintfordpickle
 
Posts: 52
Joined: Thu Dec 15, 2011 5:43 pm
Location: Krefeld, Germany

Re: [RELEASED] The Defense of Lushington Springs

Postby Niffy » Mon May 21, 2012 11:57 am

Ah yes I'm starting to understand now.

http://rusesoftware.com/index.php/9-lus ... -main-menu

I'm going to try and implement this at some point as well (Or you could publish such a great activity) GLES1 did have fragment activity, but it appears GLES2 didn't get it :(

This means I could save myself having to reinvent the wheel so I can build some dialogs!
Niffy
 
Posts: 284
Joined: Sat Sep 17, 2011 8:39 pm

Re: [RELEASED] The Defense of Lushington Springs

Postby tajny » Mon May 21, 2012 3:44 pm

Good job ! Like gfx and gameplay but on normal it is too hard for me :D

Paweł P.

--------------------------------------
Portfolio

Run Santa Run Link
Xelorians Link
User avatar
tajny
 
Posts: 216
Joined: Mon May 30, 2011 10:23 pm
Location: Poland

Re: [RELEASED] The Defense of Lushington Springs

Postby tajny » Mon May 21, 2012 3:50 pm

Loooo, i have been on 34 wave, then i got a phone call, after return - Loading , and BuaHAAHah - i'm on wave 1 ;|

Paweł P.

--------------------------------------
Portfolio

Run Santa Run Link
Xelorians Link
User avatar
tajny
 
Posts: 216
Joined: Mon May 30, 2011 10:23 pm
Location: Poland

Re: [RELEASED] The Defense of Lushington Springs

Postby lintfordpickle » Mon May 21, 2012 9:12 pm

Hi tajny,

Sorry about that, I've just noticed it too today. It actually does save in the auto-save slot so (until I fix it) you can exit out to the menu and reload the autosave.

I'll get on fixing it and get an update out.

Thanks
lintfordpickle
 
Posts: 52
Joined: Thu Dec 15, 2011 5:43 pm
Location: Krefeld, Germany

Re: [RELEASED] The Defense of Lushington Springs

Postby Niffy » Tue May 22, 2012 3:19 pm

Finally got pass the first map on easy! Took some trying!
I've never ever played tower defence games, but yours is pretty good and the graphics are great!
Niffy
 
Posts: 284
Joined: Sat Sep 17, 2011 8:39 pm

PreviousNext

Return to Projects & Project-Development Blogs

Who is online

Users browsing this forum: Dantel and 14 guests