Flutter Flame ile Geleceğe Oynayalım!

 


Herkese merhaba. Bugün sizlere Flame ile ilgili bir rehber hazırladım. Sürekli mobil uygulama geliştirmekten sıkılan, farklı bir şey denemek isteyen, fikri olan ve tanıdık bi yerden hayata geçirmek isteyen geliştiriciler, burası tam size göre! Önce Flame’i tanıyarak başlayalım.

Flutter Flame nedir?

Flutter Flame, Flutter tabanlı 2D oyunlar geliştirmek için kullanılan açık kaynaklı bir oyun motorudur. Dart dilini ullanarak mobil, web ve masaüstü platformları için oyunlar oluşturmanı sağlar. Flutter’ın gücünü ve esnekliğini oyun dünyasına taşıyabilir, hızlı ve kolay bir oyun geliştirme deneyimi yaşayabilirsin.

Neden Tercih Edilebilir?

İlk olarak genel Flutter işleyişinde olduğu gibi burada da tek kod tabanı ile Android, iOS ve web için oyunlar oluşturabilirsin.

Flutter bilgisine zaten sahip olduğunu düşünürsek, geliştireceğin basit oyunun için yeni bir teknolojide detaylara boğulmazsın, Flame’i de hızlıca kavrarsın.

Açık kaynaklıdır bu sebeple geliştirici topluluğundan kolaylıkla destek alabilirsin.

Şimdi Flame’in temel özelliklerine bakalım.

Oyun Döngüsü (Game Loop)

Flame, oyunların sürekli bir döngü (loop) içinde çalışmasını sağlar. Bu döngü sayesinde oyun ekranındaki tüm nesneler güncellenir ve çizilir. Bu döngü iki ana fonksiyona dayanır:

update(dt): Oyun nesnelerinin konum, durum gibi güncellemeleri burada yapılır.

render(canvas): Ekrana çizilecek grafikler burada tanımlanır.

Bileşen Tabanlı Sistem (Component System)

Flame, oyun nesnelerini oluşturmak için bileşen tabanlı bir yaklaşım sunar. Oyuncular, düşmanlar, engeller gibi nesneleri bileşenler olarak tanımlayabilir ve yönetebilirsin.

class Player extends PositionComponent {
@override
void render(Canvas canvas) {
// Oyuncu çizim kodlarını buraya yazabilirsin
}

@override
void update(double dt) {
// Oyuncu güncelleme kodlarını buraya yazabilirsin
}
}

Sprite ve Animasyon Desteği

Sprite’lar, oyun içindeki grafik öğeleridir. Flame, sprite tabanlı animasyonları kolayca yönetmeni sağlar.

final sprite = await Sprite.load('player.png');

Çarpışma Tespiti (Collision Detection)

Oyunlarda nesnelerin çarpışmasını algılamak önemlidir. Flame, bu süreci kolaylaştıran collision detection sistemine sahiptir.

bool collision = player.toRect().overlaps(enemy.toRect());

Flame ile Yapılabilecek Basit Bir Oyun Taslağı

Bu bölümde oyun geliştirmeye başladığında rehber olarak kullanabileceğin bir taslak hazırladım.

İlk olarak projeyi oluşturduktan sonra flame paketini yüklüyoruz.

flutter pub add flame

Sonrasında Ana Oyun sınıfımızı oluşturabiliriz.

import 'package:flame/game.dart';

class MyGame extends FlameGame {
@override
void render(Canvas canvas) {
// Oyun nesnelerini burada çiz
}

@override
void update(double dt) {
// Oyun güncellemelerini burada yap
}
}

Ve son olarak oyunu başlatıyoruz.

void main() {
runApp(GameWidget(game: MyGame()));
}

Bu tabiki çok basit ve genel bir taslak. Oyunun özellikleri ve türü ile ilgili olarak değiştirilecek, geliştirilecek çok fazla şey var. Bu noktada inceleyebileceğin bir repo mevcut. İçeriğinde çok fazla kaynak ve örnek var. Benim genel hatlarıyla oluşturduğum yazımdan sonra buradan faydalanarak ilerleyebilirsin. Ve elbette ki resmi dokümantasyonu da okumanda fayda var. Her ikisinin de linki aşağıda.

Sonuç olarak Flutter Flame, sadece oyun geliştirmekle kalmaz, Flutter bilginle yaratıcı projeler yapmanı sağlar. Kendini oyun dünyasında denemek için harika bir fırsat! Umarım faydalı olmuştur.

Teşekkürler.

Selin.

Google Gemini: A Whole New Era with iOS-Only App

 


Hello everyone, today I would like to announce a development from the world of software and technology.

Google has taken an exciting step for Gemini, its AI-powered assistant. No longer do iOS users have to use the Google app or mobile web browsers to access Gemini! Google has launched a dedicated app for Gemini for iOS worldwide. This new app is not just an AI assistant; it’s also a guide to make your life easier. But first, let’s take a closer look at Gemini.

What is Gemini?

Gemini is Google’s newest artificial intelligence assistant.
It offers many different functions from text-based commands to speech-based interactions and even visual content generation. While users can create visual content thanks to Google’s Imagen 3 model, Gemini also integrates with Google services such as Gmail, YouTube and Calendar, taking the personal assistant experience to a whole new level.

Gemini addresses both personal and professional needs. You can get recipe suggestions, ask questions to help you study, or discover solutions to boost your productivity. Thanks to its multilingual support, it can interact with users from all over the world.

What’s New with Gemini’s iOS App?

Gemini’s iOS app is especially notable for its Gemini Live feature. This new feature allows users to interact with Gemini in 12 different languages (including Turkish!). Of course, text-based command support is also very strong and can be used in 35 languages. Google’s announcement that it will expand this support in the coming days shows how much potential the app has for growth.

Previously, basic features such as getting recipe suggestions or information were available in the Google app. But Gemini Live offers a whole new experience that makes the iOS app special.

Visual Content Production and More

Thanks to Google’s Imagen 3, Gemini users can now create images. In August, images containing human figures were allowed to be recreated. This feature provides a powerful tool for visual content creators.

In addition, Gemini’s extensions feature allows you to get information about your other Google accounts such as Gmail, Maps, YouTube and Calendar. For example, it’s easy to find out the time of a meeting or ask for an email reminder.

Gemini’s Global Journey

Gemini’s Android app was launched in the US in February. It was then rolled out in European countries such as Germany, France, Italy and Asian markets such as India. By June, it was available in nine local languages in South Asia, including Bangladesh, Pakistan and Sri Lanka. Now, the application developed for iOS is the most important step in a global expansion.

Google and Apple Rivalry

Gemini’s iOS app is also directly linked to Apple’s AI moves. Apple is testing Siri integration with ChatGPT in the iOS 18.2 beta. There were also hints at Apple’s Worldwide Developers Conference that Gemini could be integrated with Apple Intelligence in the future. This suggests that the competition between Google and Apple will heat up even more when it comes to AI assistants.

Why Gemini for iOS matters?

Gemini’s iOS app is a move that could revolutionize Google’s AI ecosystem. Users can now communicate with AI through both text and voice commands and create visual content. Google’s determination to develop these innovations further shows that Gemini will be an important player in the field of artificial intelligence.

If you are interested in technology or looking for an assistant that will make your daily life easier, you should definitely try Gemini! I use it, I recommend it.

Thank you for reading.

See you in my new articles.

Selin.