wastedgames/wasted-code
7
27
Fork
You've already forked wasted-code
5

feat(android): add Android support #222

Open
fervi wants to merge 1 commit from fervi/wasted-code:main into main
pull from: fervi/wasted-code:main
merge into: wastedgames:main
wastedgames:main
wastedgames:dev
wastedgames:b_#215_fix_appimage_issues_on_some_distros
wastedgames:f_#220_remove_run_game_script_with_desktop_file
wastedgames:b_#221_garage_screen_does_not_resize_properly
wastedgames:f_#209_add_tooltip_to_menu_icon
wastedgames:b_#170_chat_messages_not_retained_when_modal_is_open
wastedgames:f_#164_make_explosion_pitch_random_clean
wastedgames:b_#211_rearlights_not_destroyed_after_carchange
wastedgames:f_#164_make_explosion_pitch_random
wastedgames:b_#217_modals_opened_on_top_of_screen_not_making_bg_darker
wastedgames:b_#214_kart_color_change_option_available_in_game_options
wastedgames:b_fps_bug
wastedgames:destorycarfix
wastedgames:b_#204_nitro_not_retained_upon_car_change
wastedgames:b_#203_fps_camera_randomly_unproperly_initialized
wastedgames:b_#101_radio_station_playback_start_briefly_music_from_0_when_seekeing
wastedgames:f_#151_rework_lean_for_cars
wastedgames:f_#178_warn_player_who_is_not_moving
wastedgames:f_#199_custom_suspension_max_force_and_stiffness
wastedgames:f_#198_add_car_offset_for_suspension_height
wastedgames:b_#197_gearchange_cooldown_not_properly_implemented
wastedgames:f_#147_rework_explosion
wastedgames:f_#161_create_garage_screen
wastedgames:release_0_7_8_onfoss
wastedgames:f_#158_make_simulated_engine_gears_follow_the_gears_contained_in_the_xml_cars_file
wastedgames:f_#183_blur_background_during_game_pause
wastedgames:f_#141_check_wayland_lib
wastedgames:f_#142_add_damage_counter_in_UI_during_online_matches
wastedgames:f_#22_punish_inactive_players
wastedgames:b_#143_fix_car_not_respawning_on_map_when_falling_off_in_tutorial_overworld
wastedgames:f_#139_add_random_color_picker_option
wastedgames:b_#113_enabling_music_in_options_play_menu_track
wastedgames:f_#108_improvement_of_car_bounce
wastedgames:f_#112_balance_classes
wastedgames:b_#110_reset_camera_triggers_skidmark
wastedgames:f_#97_radio_player
wastedgames:b_#96_fix_orbital_camera
wastedgames:b_#_92_car_change_broken
wastedgames:f_#87_show_red_text_when_player_is_eliminated
wastedgames:f_#84_turn_on_brakinglights_when_braking
wastedgames:f_#73_improved_game_testing
wastedgames:health_system
First-time contributor
Copy link

It is just a prototype (that works). If this ever makes it to the main branch, please review everything thoroughly (just to be safe).

The code builds the game for Android; I haven't tested whether it builds correctly on Windows or Linux after these changes.

./scripts/getdeps.sh #Download a dependencies
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 #Enforce of using Java 17, because not work on Java 25 (maybe fixable)
export PATH=$JAVA_HOME/bin:$PATH
export SDK_PATH=/home/$USER/Android/Sdk #Set a destination to Android SDK
export NDK_PATH=/home/fervi/Android/Sdk/ndk/22.0.7026061 #Set a destination to Android NDK. 22.0 is highly recommended
export PROJECT_VERSION=0.8.0
export COMPILE_ARCH=all #or aarch64 for debug

cd android

Git clone assets "above" wasted-code

./generate_assets.sh #Prepare assets
./make_deps.sh #Build a dependencies
./make.sh #Build a project

To install:

adb install -r build/outputs/apk/debug/android-debug.apk

It is just a prototype (that works). If this ever makes it to the main branch, please review everything thoroughly (just to be safe). The code builds the game for Android; I haven't tested whether it builds correctly on Windows or Linux after these changes. ./scripts/getdeps.sh #Download a dependencies export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 #Enforce of using Java 17, because not work on Java 25 (maybe fixable) export PATH=$JAVA_HOME/bin:$PATH export SDK_PATH=/home/$USER/Android/Sdk #Set a destination to Android SDK export NDK_PATH=/home/fervi/Android/Sdk/ndk/22.0.7026061 #Set a destination to Android NDK. 22.0 is highly recommended export PROJECT_VERSION=0.8.0 export COMPILE_ARCH=all #or aarch64 for debug cd android # Git clone assets "above" wasted-code ./generate_assets.sh #Prepare assets ./make_deps.sh #Build a dependencies ./make.sh #Build a project # To install: adb install -r build/outputs/apk/debug/android-debug.apk

Thank you for your PR, I will review it after I'm done with the new release

Thank you for your PR, I will review it after I'm done with the new release
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:fervi-main
git switch fervi-main
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
wastedgames/wasted-code!222
Reference in a new issue
wastedgames/wasted-code
No description provided.
Delete branch "fervi/wasted-code:main"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?