diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index bf83296..4709183 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,2 @@ -# ---> Godot # Godot 4+ specific ignores .godot/ - -# Godot-specific ignores -.import/ -export.cfg -export_presets.cfg - -# Imported translations (automatically generated from CSV files) -*.translation - -# Mono-specific ignores -.mono/ -data_*/ -mono_crash.*.json - diff --git a/Build/dwenny.apk b/Build/dwenny.apk new file mode 100644 index 0000000..6ce89c2 Binary files /dev/null and b/Build/dwenny.apk differ diff --git a/Build/dwenny.apk.idsig b/Build/dwenny.apk.idsig new file mode 100644 index 0000000..44b63e4 Binary files /dev/null and b/Build/dwenny.apk.idsig differ diff --git a/Main.gd b/Main.gd new file mode 100644 index 0000000..262be97 --- /dev/null +++ b/Main.gd @@ -0,0 +1,13 @@ +extends Node2D + +var Multiplier : int = 1 +var Die : int = 20 + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass diff --git a/Scenes/main.tscn b/Scenes/main.tscn new file mode 100644 index 0000000..ed71548 --- /dev/null +++ b/Scenes/main.tscn @@ -0,0 +1,260 @@ +[gd_scene load_steps=2 format=3 uid="uid://bqfs1qd83w4sh"] + +[ext_resource type="Script" path="res://Scripts/Main.gd" id="1_fwdg7"] + +[node name="Main" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 +script = ExtResource("1_fwdg7") + +[node name="MainMC" type="MarginContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 + +[node name="BG" type="ColorRect" parent="MainMC"] +layout_mode = 2 +color = Color(0.0859693, 0.0859693, 0.133364, 1) + +[node name="VBoxContainer" type="VBoxContainer" parent="MainMC"] +layout_mode = 2 + +[node name="Die" type="MarginContainer" parent="MainMC/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 10.0 + +[node name="DiceCR" type="ColorRect" parent="MainMC/VBoxContainer/Die"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 12.0 +color = Color(0.0862745, 0.0862745, 0.133333, 1) + +[node name="DieLB" type="Label" parent="MainMC/VBoxContainer/Die/DiceCR"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 200 +text = "crickets" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="EnumMC" type="MarginContainer" parent="MainMC/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 7.0 + +[node name="EnumBGL" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC"] +layout_mode = 2 +size_flags_horizontal = 3 +color = Color(0.0862745, 0.0862745, 0.133333, 1) + +[node name="EnumHB" type="HBoxContainer" parent="MainMC/VBoxContainer/EnumMC"] +layout_mode = 2 +size_flags_stretch_ratio = 3.0 + +[node name="LM" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_stretch_ratio = 0.05 +color = Color(0.0859693, 0.0859693, 0.133364, 1) + +[node name="VBoxContainer" type="VBoxContainer" parent="MainMC/VBoxContainer/EnumMC/EnumHB"] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="MPUP" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +color = Color(0.0703441, 0.0703441, 0.0703441, 1) + +[node name="UPMultiplierRect" type="Label" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer/MPUP"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 150 +text = "🞁" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="MPLB" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +color = Color(0.0470588, 0.0470588, 0.0823529, 1) + +[node name="MultiplierLB" type="Label" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer/MPLB"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 150 +text = "1" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="MPDW" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +color = Color(0.0703441, 0.0703441, 0.0703441, 1) + +[node name="DWMultiplierRect" type="Label" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer/MPDW"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/outline_size = 0 +theme_override_font_sizes/font_size = 150 +text = "🞃" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="VBoxContainer2" type="VBoxContainer" parent="MainMC/VBoxContainer/EnumMC/EnumHB"] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="UPDT" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2"] +layout_mode = 2 +size_flags_vertical = 3 +color = Color(0.0703441, 0.0703441, 0.0703441, 1) + +[node name="UPDieTypeRect" type="Label" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2/UPDT"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 150 +text = "🞁" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="DTTP" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2"] +layout_mode = 2 +size_flags_vertical = 3 +color = Color(0.0470588, 0.0470588, 0.0823529, 1) + +[node name="DieTypeLB" type="Label" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2/DTTP"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 150 +text = "20" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="DWDT" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2"] +layout_mode = 2 +size_flags_vertical = 3 +color = Color(0.0703441, 0.0703441, 0.0703441, 1) + +[node name="DWDieTypeRect" type="Label" parent="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2/DWDT"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 150 +text = "🞃" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="RM" type="ColorRect" parent="MainMC/VBoxContainer/EnumMC/EnumHB"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_stretch_ratio = 0.05 +color = Color(0.0859693, 0.0859693, 0.133364, 1) + +[node name="Roll" type="MarginContainer" parent="MainMC/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 4.0 + +[node name="EnumBGL" type="ColorRect" parent="MainMC/VBoxContainer/Roll"] +layout_mode = 2 +size_flags_horizontal = 3 +color = Color(0.0862745, 0.0862745, 0.133333, 1) + +[node name="EnumHB" type="HBoxContainer" parent="MainMC/VBoxContainer/Roll"] +layout_mode = 2 +size_flags_stretch_ratio = 3.0 + +[node name="LM" type="ColorRect" parent="MainMC/VBoxContainer/Roll/EnumHB"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_stretch_ratio = 0.05 +color = Color(0.0859693, 0.0859693, 0.133364, 1) + +[node name="RollRect" type="ColorRect" parent="MainMC/VBoxContainer/Roll/EnumHB"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 +size_flags_stretch_ratio = 2.0 +color = Color(0.0470588, 0.0470588, 0.0823529, 1) + +[node name="Label" type="Label" parent="MainMC/VBoxContainer/Roll/EnumHB/RollRect"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 150 +text = "Roll!" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="RM" type="ColorRect" parent="MainMC/VBoxContainer/Roll/EnumHB"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_stretch_ratio = 0.05 +color = Color(0.0859693, 0.0859693, 0.133364, 1) + +[node name="TopCR" type="ColorRect" parent="MainMC/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 1.2 +color = Color(0.0859693, 0.0859693, 0.133364, 1) + +[node name="DwennyLabel" type="Label" parent="MainMC/VBoxContainer/TopCR"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0.415686, 0.415686, 0.552941, 1) +theme_override_font_sizes/font_size = 32 +text = "Dwenny by Librebun 2024" +horizontal_alignment = 1 +vertical_alignment = 1 + +[connection signal="gui_input" from="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer/MPUP" to="." method="_on_mpup_gui_input"] +[connection signal="gui_input" from="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer/MPDW" to="." method="_on_mpdw_gui_input"] +[connection signal="gui_input" from="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2/UPDT" to="." method="_on_updt_gui_input"] +[connection signal="gui_input" from="MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2/DWDT" to="." method="_on_dwdt_gui_input"] diff --git a/Scripts/Main.gd b/Scripts/Main.gd new file mode 100644 index 0000000..03695c5 --- /dev/null +++ b/Scripts/Main.gd @@ -0,0 +1,37 @@ +extends Control + +@onready var MultiplierLB = $MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer/MPLB/MultiplierLB +@onready var DieTypeLB = $MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2/DTTP/DieTypeLB +@onready var DieLB = $MainMC/VBoxContainer/Die/DiceCR/DieLB + +var Multiplier : int = 1 +var ChosenDie : int = 20 + +func _ready(): + pass + +func _process(_delta): + MultiplierLB = Multiplier + DieTypeLB = Die + DieLB = Die() + pass + +func Die(): + pass + + +func _unhandled_input(event): + if event is InputEventScreenDrag and event.is_pressed(): + Multiplier += 1 + +func _on_dwdt_gui_input(event): + if event is InputEventScreenDrag and event.is_pressed(): + Multiplier -= 1 + +func _on_mpup_gui_input(event): + if event is InputEventScreenDrag and event.is_pressed(): + ChosenDie += 1 + +func _on_mpdw_gui_input(event): + if event is InputEventScreenDrag and event.is_pressed(): + ChosenDie -= 1 \ No newline at end of file diff --git a/debug.keystore b/debug.keystore new file mode 100644 index 0000000..957f0f3 Binary files /dev/null and b/debug.keystore differ diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..ac98ef6 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,201 @@ +[preset.0] + +name="Android" +platform="Android" +runnable=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="Build/dwenny.apk" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +gradle_build/use_gradle_build=false +gradle_build/export_format=0 +gradle_build/min_sdk="" +gradle_build/target_sdk="" +architectures/armeabi-v7a=false +architectures/arm64-v8a=true +architectures/x86=false +architectures/x86_64=false +version/code=1 +version/name="" +package/unique_name="com.example.dwenny" +package/name="" +package/signed=true +package/app_category=6 +package/retain_data_on_uninstall=false +package/exclude_from_recents=false +package/show_in_android_tv=false +package/show_in_app_library=true +package/show_as_launcher_app=false +launcher_icons/main_192x192="" +launcher_icons/adaptive_foreground_432x432="" +launcher_icons/adaptive_background_432x432="" +graphics/opengl_debug=false +xr_features/xr_mode=0 +screen/immersive_mode=true +screen/support_small=true +screen/support_normal=true +screen/support_large=true +screen/support_xlarge=true +user_data_backup/allow=false +command_line/extra_args="" +apk_expansion/enable=false +apk_expansion/SALT="" +apk_expansion/public_key="" +permissions/custom_permissions=PackedStringArray() +permissions/access_checkin_properties=false +permissions/access_coarse_location=false +permissions/access_fine_location=false +permissions/access_location_extra_commands=false +permissions/access_mock_location=false +permissions/access_network_state=false +permissions/access_surface_flinger=false +permissions/access_wifi_state=false +permissions/account_manager=false +permissions/add_voicemail=false +permissions/authenticate_accounts=false +permissions/battery_stats=false +permissions/bind_accessibility_service=false +permissions/bind_appwidget=false +permissions/bind_device_admin=false +permissions/bind_input_method=false +permissions/bind_nfc_service=false +permissions/bind_notification_listener_service=false +permissions/bind_print_service=false +permissions/bind_remoteviews=false +permissions/bind_text_service=false +permissions/bind_vpn_service=false +permissions/bind_wallpaper=false +permissions/bluetooth=false +permissions/bluetooth_admin=false +permissions/bluetooth_privileged=false +permissions/brick=false +permissions/broadcast_package_removed=false +permissions/broadcast_sms=false +permissions/broadcast_sticky=false +permissions/broadcast_wap_push=false +permissions/call_phone=false +permissions/call_privileged=false +permissions/camera=false +permissions/capture_audio_output=false +permissions/capture_secure_video_output=false +permissions/capture_video_output=false +permissions/change_component_enabled_state=false +permissions/change_configuration=false +permissions/change_network_state=false +permissions/change_wifi_multicast_state=false +permissions/change_wifi_state=false +permissions/clear_app_cache=false +permissions/clear_app_user_data=false +permissions/control_location_updates=false +permissions/delete_cache_files=false +permissions/delete_packages=false +permissions/device_power=false +permissions/diagnostic=false +permissions/disable_keyguard=false +permissions/dump=false +permissions/expand_status_bar=false +permissions/factory_test=false +permissions/flashlight=false +permissions/force_back=false +permissions/get_accounts=false +permissions/get_package_size=false +permissions/get_tasks=false +permissions/get_top_activity_info=false +permissions/global_search=false +permissions/hardware_test=false +permissions/inject_events=false +permissions/install_location_provider=false +permissions/install_packages=false +permissions/install_shortcut=false +permissions/internal_system_window=false +permissions/internet=false +permissions/kill_background_processes=false +permissions/location_hardware=false +permissions/manage_accounts=false +permissions/manage_app_tokens=false +permissions/manage_documents=false +permissions/manage_external_storage=false +permissions/master_clear=false +permissions/media_content_control=false +permissions/modify_audio_settings=false +permissions/modify_phone_state=false +permissions/mount_format_filesystems=false +permissions/mount_unmount_filesystems=false +permissions/nfc=false +permissions/persistent_activity=false +permissions/process_outgoing_calls=false +permissions/read_calendar=false +permissions/read_call_log=false +permissions/read_contacts=false +permissions/read_external_storage=false +permissions/read_frame_buffer=false +permissions/read_history_bookmarks=false +permissions/read_input_state=false +permissions/read_logs=false +permissions/read_phone_state=false +permissions/read_profile=false +permissions/read_sms=false +permissions/read_social_stream=false +permissions/read_sync_settings=false +permissions/read_sync_stats=false +permissions/read_user_dictionary=false +permissions/reboot=false +permissions/receive_boot_completed=false +permissions/receive_mms=false +permissions/receive_sms=false +permissions/receive_wap_push=false +permissions/record_audio=false +permissions/reorder_tasks=false +permissions/restart_packages=false +permissions/send_respond_via_message=false +permissions/send_sms=false +permissions/set_activity_watcher=false +permissions/set_alarm=false +permissions/set_always_finish=false +permissions/set_animation_scale=false +permissions/set_debug_app=false +permissions/set_orientation=false +permissions/set_pointer_speed=false +permissions/set_preferred_applications=false +permissions/set_process_limit=false +permissions/set_time=false +permissions/set_time_zone=false +permissions/set_wallpaper=false +permissions/set_wallpaper_hints=false +permissions/signal_persistent_processes=false +permissions/status_bar=false +permissions/subscribed_feeds_read=false +permissions/subscribed_feeds_write=false +permissions/system_alert_window=false +permissions/transmit_ir=false +permissions/uninstall_shortcut=false +permissions/update_device_stats=false +permissions/use_credentials=false +permissions/use_sip=false +permissions/vibrate=false +permissions/wake_lock=false +permissions/write_apn_settings=false +permissions/write_calendar=false +permissions/write_call_log=false +permissions/write_contacts=false +permissions/write_external_storage=false +permissions/write_gservices=false +permissions/write_history_bookmarks=false +permissions/write_profile=false +permissions/write_secure_settings=false +permissions/write_settings=false +permissions/write_sms=false +permissions/write_social_stream=false +permissions/write_sync_settings=false +permissions/write_user_dictionary=false diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..b370ceb --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..ad37d9e --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://xchqrge75p61" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..a7bddfa --- /dev/null +++ b/project.godot @@ -0,0 +1,40 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="Dwenny" +config/version="0.1.0" +run/main_scene="res://Scenes/main.tscn" +config/features=PackedStringArray("4.2", "Mobile") +boot_splash/bg_color=Color(0, 0, 0, 1) +boot_splash/show_image=false +config/icon="res://icon.svg" + +[display] + +window/size/viewport_width=1080 +window/size/viewport_height=1920 +window/size/mode=4 +window/size/resizable=false +window/handheld/orientation=1 + +[input_devices] + +pointing/emulate_touch_from_mouse=true +pointing/emulate_mouse_from_touch=false +pointing/android/enable_long_press_as_right_click=true +pointing/android/enable_pan_and_scale_gestures=true + +[rendering] + +renderer/rendering_method="mobile" +textures/vram_compression/import_etc2_astc=true +anti_aliasing/quality/msaa_2d=1