본문 바로가기
728x90
반응형

프로그램 개발해서 돈벌기165

[초보자 게임 만들기 기초] flutter flame 구조와 사각형 위에서 아래로 떨어뜨리기 flutter flame을 이용해서 2D 게임 제작을 해 보려고 합니다. 우선 flutter에서 flame을 사용하는 가장 간단한 기본 코드 구조를 보겠습니다. import 'package:flutter/material.dart';import 'package:flame/game.dart';void main() { runApp(MyApp());}class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: GameWidget(game: MyGame()), ); }}class MyGame extends FlameGame { @override v.. 2024. 4. 30.
유튜브 처럼 플레이 화면과 하단에 동영상 리스트가 보일때 동영상 리스트를 클릭 시 상단 플레이에 플레이 되게 만들기 유튜브 처럼 화면을 추가적으로 띄우지 않고 플레이 화면과 하단에 동영상 리스트가 보일때 동영상 리스트를 클릭 시 상단 플레이에 플레이 되게 만들기를 할때 GlobalKey를 이용합니다. import 'package:flutter/material.dart'; import 'package:video_player/video_player.dart'; class VideoDetail extends StatefulWidget { int? vIdx; VideoDetail({ Key? key, this.vIdx, }) : super(key: key); @override _VideoDetailState createState() => _VideoDetailState(); } class _VideoDetailState ex.. 2024. 3. 4.
flutter에서 자식 위젯이 부모 위젯 함수 호출하기 flutter에서 자식 위젯이 부모 위젯 함수 호출하기를 샘플로 구현해 보았습니다. 구조를 조금 복잡하게 구성해 보았습니다. StatefulWidget A A의 자식인 StatefulWidget B B의 자식인 StatelessWidget C C의 자식인 StatelessWidget D 인 구조에서 D 리스트 뷰 클릭 시 A 내 call 함수 실행하게 만드는 샘플 import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold(.. 2024. 2. 23.
[flutter] Build failed due to use of deprecated Android v1 embedding. 를 만났을때 에러 수정 방법 "Build failed due to use of deprecated Android v1 embedding." 에러는 현재 플러터가 안드로이드 버전이 오래된 v1을 사용해서 발생한 문제입니다. 전체 에러 안내문 Warning Your Flutter application is created using an older version of the Android embedding. It is being deprecated in favor of Android embedding v2. Follow the steps at https://flutter.dev/go/android-project-migration to migrate your project. You may also pass the --ignore-depre.. 2024. 1. 31.
How to solve the problem of no sound when importing mkv file in DaVinci Resolve MKV files usually use H.264 for video and DTS for audio. So, we will use ffmpeg to change the video to H.264 and the audio to AAC. First, create an mp4 file using the mkv file as h.260 for video and mp3 for audio. ffmpeg -i The.Bourne.Legacy.2012.x264.DTS-WAF.mkv -ss 37:55 -to 40:28 -vcodec libx264 -acodec libmp3lame output.mp4 The above statement cut and converted only a specific section of the.. 2024. 1. 19.
macOS에서 ffmpeg를 이용해서 동영상 화면 특정 구간 자르기 // 그림 1.과 같이 brew update 시 에러 발생 시 실행 필요 git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow brew update // ffmpeg 설치 brew install ffmpeg 아래는 source.mp4 파일을 잘라서 output.mp4 파일을 만드는 명령문입니다. ffmpeg -i source.mp4 -ss 1:34:55 -to 1:55:28 -vcodec copy -acodec copy output.mp4 실제 작업을 해 보았습니다. 그림.. 2024. 1. 18.
728x90
반응형