merged
This commit is contained in:
parent
a80ce4e53e
commit
3e312b70e0
13
Global.gd
13
Global.gd
@ -44,6 +44,19 @@ func _input(event):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
CheckDBInUserDir()
|
||||||
get_tree().get_root().add_child(river_intersection_home_2)
|
get_tree().get_root().add_child(river_intersection_home_2)
|
||||||
get_tree().get_root().add_child(inventory_screen)
|
get_tree().get_root().add_child(inventory_screen)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
func CheckDBInUserDir():
|
||||||
|
var file2Check = File.new()
|
||||||
|
if file2Check.file_exists("user://gdsqlite.gdns"):
|
||||||
|
print("File exist! Doing nothing")
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
var dir = Directory.new();
|
||||||
|
dir.copy("res://addons/godot-sqlite/bin/gdsqlite.gdns","user://gdsqlite.gdns")
|
||||||
|
dir.make_dir("user://Storage/")
|
||||||
|
print("Database not found, making one!")
|
||||||
|
pass
|
||||||
|
10
Menu.tscn
10
Menu.tscn
@ -15,7 +15,7 @@ script = ExtResource( 1 )
|
|||||||
|
|
||||||
[node name="loading_ring" type="Sprite" parent="."]
|
[node name="loading_ring" type="Sprite" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2( 574.719, 228.63 )
|
position = Vector2( 640, 250.63 )
|
||||||
z_index = 1
|
z_index = 1
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource( 2 )
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
@ -30,10 +30,10 @@ __meta__ = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[node name="Btn_PlayGame" type="Button" parent="."]
|
[node name="Btn_PlayGame" type="Button" parent="."]
|
||||||
margin_left = 484.204
|
margin_left = 494.5
|
||||||
margin_top = 100.226
|
margin_top = 90.5
|
||||||
margin_right = 679.204
|
margin_right = 802.5
|
||||||
margin_bottom = 153.226
|
margin_bottom = 208.5
|
||||||
custom_fonts/font = SubResource( 1 )
|
custom_fonts/font = SubResource( 1 )
|
||||||
text = "Play Game"
|
text = "Play Game"
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
|
Binary file not shown.
@ -1,7 +1,9 @@
|
|||||||
extends Node
|
extends Node
|
||||||
const SQLite = preload("res://addons/godot-sqlite/bin/gdsqlite.gdns")
|
|
||||||
|
|
||||||
var path = "res://Storage/World1.db"
|
#const SQLiteOriginal = preload("res://addons/godot-sqlite/bin/gdsqlite.gdns")
|
||||||
|
#const SQLite = preload("user://gdsqlite.gdns")
|
||||||
|
|
||||||
|
var path = "user://Storage/World1.db"
|
||||||
var db_name = "RingOfRaces"
|
var db_name = "RingOfRaces"
|
||||||
var db = null
|
var db = null
|
||||||
var verbose = true
|
var verbose = true
|
||||||
@ -12,6 +14,7 @@ func _ready():
|
|||||||
|
|
||||||
func CreateWorldDatabase():
|
func CreateWorldDatabase():
|
||||||
print("Creating new database")
|
print("Creating new database")
|
||||||
|
var SQLite = load("user://gdsqlite.gdns")
|
||||||
var player_inventory : Dictionary = Dictionary()
|
var player_inventory : Dictionary = Dictionary()
|
||||||
player_inventory["id"] = {"data_type":"int", "primary_key": true, "not_null": true} #slot id
|
player_inventory["id"] = {"data_type":"int", "primary_key": true, "not_null": true} #slot id
|
||||||
player_inventory["item_id"] = {"data_type":"int", "not_null": true} #item id
|
player_inventory["item_id"] = {"data_type":"int", "not_null": true} #item id
|
||||||
@ -32,6 +35,7 @@ func CreateWorldDatabase():
|
|||||||
items.clear()
|
items.clear()
|
||||||
|
|
||||||
func OpenConnection():
|
func OpenConnection():
|
||||||
|
var SQLite = load("user://gdsqlite.gdns")
|
||||||
self.db = SQLite.new()
|
self.db = SQLite.new()
|
||||||
var file = File.new()
|
var file = File.new()
|
||||||
self.db.path = path
|
self.db.path = path
|
||||||
|
@ -5,7 +5,7 @@ platform="Android"
|
|||||||
runnable=true
|
runnable=true
|
||||||
custom_features=""
|
custom_features=""
|
||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter="*.db"
|
||||||
exclude_filter=""
|
exclude_filter=""
|
||||||
export_path="./Ring of Races_v03.apk"
|
export_path="./Ring of Races_v03.apk"
|
||||||
patch_list=PoolStringArray( )
|
patch_list=PoolStringArray( )
|
||||||
@ -184,16 +184,16 @@ permissions/use_credentials=false
|
|||||||
permissions/use_sip=false
|
permissions/use_sip=false
|
||||||
permissions/vibrate=false
|
permissions/vibrate=false
|
||||||
permissions/wake_lock=false
|
permissions/wake_lock=false
|
||||||
permissions/write_apn_settings=false
|
permissions/write_apn_settings=true
|
||||||
permissions/write_calendar=false
|
permissions/write_calendar=false
|
||||||
permissions/write_call_log=false
|
permissions/write_call_log=false
|
||||||
permissions/write_contacts=false
|
permissions/write_contacts=false
|
||||||
permissions/write_external_storage=false
|
permissions/write_external_storage=true
|
||||||
permissions/write_gservices=false
|
permissions/write_gservices=false
|
||||||
permissions/write_history_bookmarks=false
|
permissions/write_history_bookmarks=false
|
||||||
permissions/write_profile=false
|
permissions/write_profile=false
|
||||||
permissions/write_secure_settings=false
|
permissions/write_secure_settings=false
|
||||||
permissions/write_settings=false
|
permissions/write_settings=true
|
||||||
permissions/write_sms=false
|
permissions/write_sms=false
|
||||||
permissions/write_social_stream=false
|
permissions/write_social_stream=false
|
||||||
permissions/write_sync_settings=false
|
permissions/write_sync_settings=false
|
||||||
|
@ -105,6 +105,14 @@ open_inventory={
|
|||||||
|
|
||||||
pointing/emulate_touch_from_mouse=true
|
pointing/emulate_touch_from_mouse=true
|
||||||
|
|
||||||
|
[memory]
|
||||||
|
|
||||||
|
limits/message_queue/max_size_kb=2048
|
||||||
|
|
||||||
|
[physics]
|
||||||
|
|
||||||
|
common/physics_jitter_fix=0.5
|
||||||
|
|
||||||
[tiled_importer]
|
[tiled_importer]
|
||||||
|
|
||||||
enable_json_format=true
|
enable_json_format=true
|
||||||
|
@ -178,8 +178,8 @@ z_index = 13
|
|||||||
normal = ExtResource( 14 )
|
normal = ExtResource( 14 )
|
||||||
|
|
||||||
[node name="MoveDown" type="TouchScreenButton" parent="Camera2D"]
|
[node name="MoveDown" type="TouchScreenButton" parent="Camera2D"]
|
||||||
position = Vector2( -480.965, 178.192 )
|
position = Vector2( -480.965, 177.248 )
|
||||||
scale = Vector2( 14.9928, 14.9987 )
|
scale = Vector2( 14.9928, 15.4117 )
|
||||||
z_index = 11
|
z_index = 11
|
||||||
normal = ExtResource( 9 )
|
normal = ExtResource( 9 )
|
||||||
pressed = ExtResource( 8 )
|
pressed = ExtResource( 8 )
|
||||||
@ -189,8 +189,8 @@ visibility_mode = 1
|
|||||||
script = ExtResource( 6 )
|
script = ExtResource( 6 )
|
||||||
|
|
||||||
[node name="MoveRight" type="TouchScreenButton" parent="Camera2D"]
|
[node name="MoveRight" type="TouchScreenButton" parent="Camera2D"]
|
||||||
position = Vector2( 478.572, -173.651 )
|
position = Vector2( 478.572, -180.258 )
|
||||||
scale = Vector2( 16.7497, 5.49206 )
|
scale = Vector2( 17.2806, 5.66904 )
|
||||||
z_index = 11
|
z_index = 11
|
||||||
normal = ExtResource( 3 )
|
normal = ExtResource( 3 )
|
||||||
pressed = ExtResource( 7 )
|
pressed = ExtResource( 7 )
|
||||||
@ -199,7 +199,7 @@ visibility_mode = 1
|
|||||||
script = ExtResource( 6 )
|
script = ExtResource( 6 )
|
||||||
|
|
||||||
[node name="MoveUp" type="TouchScreenButton" parent="Camera2D"]
|
[node name="MoveUp" type="TouchScreenButton" parent="Camera2D"]
|
||||||
position = Vector2( -479.063, -300.035 )
|
position = Vector2( -479.063, -300.979 )
|
||||||
scale = Vector2( 14.9907, 15.5676 )
|
scale = Vector2( 14.9907, 15.5676 )
|
||||||
z_index = 11
|
z_index = 11
|
||||||
normal = ExtResource( 9 )
|
normal = ExtResource( 9 )
|
||||||
@ -209,7 +209,7 @@ visibility_mode = 1
|
|||||||
script = ExtResource( 6 )
|
script = ExtResource( 6 )
|
||||||
|
|
||||||
[node name="MoveLeft" type="TouchScreenButton" parent="Camera2D"]
|
[node name="MoveLeft" type="TouchScreenButton" parent="Camera2D"]
|
||||||
position = Vector2( -615.955, -175.335 )
|
position = Vector2( -615.955, -175.807 )
|
||||||
scale = Vector2( 16.8861, 5.52137 )
|
scale = Vector2( 16.8861, 5.52137 )
|
||||||
z_index = 11
|
z_index = 11
|
||||||
z_as_relative = false
|
z_as_relative = false
|
||||||
|
Loading…
Reference in New Issue
Block a user