Skip to content

Commit

Permalink
Dedicated server, GPS, and player settings
Browse files Browse the repository at this point in the history
Player Settings to allow you to set:
-Health
-Shots per reload
-Reload time
-Respawn time
-Damage per hit to other players (network game only)
-Lives on a per player basis for network games

Dedicated server option using a device dedicated to serving the
game you get:
-More reliable connection between clients
-Eliminations will be queued if a client is disconnected and resent
 when the client reconnects
-GPS options to show teammates and enemies
-Scoreboard
  • Loading branch information
Dees-Troy committed Feb 12, 2018
1 parent a83f17a commit 00b124c
Show file tree
Hide file tree
Showing 37 changed files with 3,243 additions and 352 deletions.
7 changes: 5 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.simplecoil.simplecoil"
minSdkVersion 21
targetSdkVersion 26
versionCode 5
versionName "1.4"
versionCode 6
versionName "1.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -22,6 +22,9 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0'
compile 'com.mousebirdconsulting.maply:Android:2.5'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
Expand Down
56 changes: 37 additions & 19 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,65 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.simplecoil.simplecoil">

<!-- Declare this required feature if you want to make the app available to BLE-capable
<!--
Declare this required feature if you want to make the app available to BLE-capable
devices only. If you want to make your app available to devices that don't support BLE,
you should omit this in the manifest. Instead, determine BLE capability by using
PackageManager.hasSystemFeature(FEATURE_BLUETOOTH_LE) -->
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
PackageManager.hasSystemFeature(FEATURE_BLUETOOTH_LE)
-->
<uses-feature
android:name="android.hardware.bluetooth_le"
android:required="true" />

<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:screenOrientation="portrait"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:screenOrientation="portrait"
android:name="com.simplecoil.simplecoil.FullscreenActivity"
android:name=".FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/FullscreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.simplecoil.simplecoil.BluetoothLeService" android:enabled="true"/>
<service android:name="com.simplecoil.simplecoil.UDPListenerService" android:enabled="true"/>
<service android:name=".TcpClient" android:enabled="true"/>
<service android:name=".TcpServer" android:enabled="true"/>

<service
android:name=".BluetoothLeService"
android:enabled="true" />
<service
android:name=".UDPListenerService"
android:enabled="true" />
<service
android:name=".TcpClient"
android:enabled="true" />
<service
android:name=".TcpServer"
android:enabled="true" />

<activity
android:name=".DedicatedServerActivity"
android:label="@string/title_activity_dedicated_server"
android:theme="@style/AppTheme.NoActionBar"></activity>
</application>

</manifest>
Loading

0 comments on commit 00b124c

Please sign in to comment.