Painel de Notícias

Tecnologia

874 posts · 26 feeds · tópicos e interesse por Jev

Filtros1
dev.to

Architecture of Modern Web Game Engines: Canvas Rendering, CSPRNG Fairness, and WebRTC Voice in Production

Architecture of Modern Web Game Engines: Canvas Rendering, CSPRNG Fairness, and WebRTC Voice in Production For decades, digital implementations of classical tabletop games—from chess and draughts to backgammon—suffered from clunky, lag-ridden interfaces. Early web iterations relied on heavy Flash plugins, clumsy Java applets, or fragile DOM manipulation where every checker drag triggered expensive browser reflows and repaints. In this comprehensive technical review and architectural breakdown, we examine what it takes to engineer a modern, low-latency, cross-platform tabletop engine capable of delivering 60/120 fps tactile responsiveness, mathematically verifiable randomness, and instant peer-to-peer voice streaming directly inside the browser. A classic 24-point backgammon board or an 8x8 checkerboard involves dozens of interactive assets: checkers, pips, dice animations, doubling cubes, and tactical highlights. When developers represent each checker piece as an independent HTML or SVG element: Every touch or mouse drag fires continuous pointermove events that mutate style transforms (transform: translate3d(...)). In complex DOM trees, mutating multiple nodes can trigger recalculation of styles and composite layer thrashing, resulting in dropped frames (jank) on mobile browsers and lower-tier Android devices. Z-index stacking contexts often become chaotic when multiple pieces are borne off, hit to the bar, or re-entered into home boards. Modern high-performance engines bypass the DOM entirely by mounting a single hardware-accelerated element. Using custom 2D drawing routines (or WebGL/WebGPU shaders for dynamic lighting and physical shadows): // High-performance requestAnimationFrame tick with frame-rate independence function renderTick(timestamp) { const deltaTime = timestamp - lastFrameTime; lastFrameTime = timestamp; // 1. Process interpolated animations (dice rolls, checker slides) updateAnimations(deltaTime); // 2. Clear canvas with dirty rect or full clear ct

GamesDevMobile
Interesse
dev.to

Fixing 'previously freed instance' errors in Godot 4 combat code

Combat is where Godot 4 projects start crashing for the first time. Everything works Trying to call a function on a previously freed instance. Invalid access to property or key 'global_position' on a base object of type 'previously freed'. Cannot call method 'take_damage' on a null value. Resumed function 'flash()' after await, but class instance is gone. (Exact wording shifts a little between 4.x versions — older builds say Invalid get index ... (on base: 'previously freed') — but the causes are the same.) "Previously freed" means your variable still points at a node that queue_free() already null — it's a dangling pointer, so if target: and if target != null: can both let it through. Here are the four ways combat code ends up Symptom. A homing projectile, a turret or an enemy AI crashes a few frames after Cause. You saved the target in a variable (var target: Node2D) and kept using it. queue_free(). Your variable never heard Fix. Check is_instance_valid() before every use — it's the only check that catches var target: Node2D func _physics_process(delta: float) -> void: if not is_instance_valid(target): target = null _pick_new_target() return var dir := global_position.direction_to(target.global_position) velocity = dir * speed move_and_slide() If many systems track the same enemy, clear the reference at the source instead of tree_exiting fires right before the node leaves the tree: func set_target(t: Node2D) -> void: target = t t.tree_exiting.connect(func(): target = null, CONNECT_ONE_SHOT) await Symptom. Hit-flash or knockback code crashes only sometimes, usually on the killing Cause. await pauses your function. Anything can happen while it's paused — await is suspect. # crashes when the hit also kills the enemy func hit_flash(enemy: Node2D) -> void: enemy.modulate = Color.RED await get_tree().create_timer(0.1).timeout enemy.modulate = Color.WHITE # enemy may be gone by now Fix. Treat every await as a checkpoint and re-validate after it: func hit_flash(enemy: Nod

GamesDev
Interesse
dev.to

I Built a Full PWA Game in One Day with Claude Opus 5.5 and Claude Code (Here Is the Real Token Cost & Harness Setup)

On a Sunday, I turned a slightly silly idea into an actual game: Montanha: Zero Day, a cyberpunk platformer in the style of Mega Man X that runs in the browser and on phones, offline, as a PWA. The hero is me (Montanha), the heroine is Gle, and the villain is a giant piece of ransomware called RANSOM-TITAN. I built it together with Claude Opus 5.5, orchestrated via Claude Code and Cowork (the agentic execution mode of the Claude ecosystem). By the end of the day, the usage panel showed I had spent about half of my daily token limit. This post covers what the model promises on benchmarks, how it operated seamlessly across local CLI and cloud runtime, and what it actually delivered on a real project when guided by a central engineering harness. 👉 Play it live: tiagovilasboas.github.io/montanha-zero-day (the in-game dialogue is in Brazilian Portuguese) 👉 Source Code: github.com/tiagovilasboas/montanha-zero-day People often ask what kind of 5-page prompt was required to spin up an entire game from scratch. The reality? Almost nothing. The kickoff prompt was surprisingly concise: "Build a cyberpunk Mega Man X–style platformer game in pure JavaScript (ES modules) with canvas. The hero is Montanha (backpack jetpack, cybernetic hacking watch), the heroine is Gle, and the final boss is a ransomware virus named RANSOM-TITAN. It needs to run offline as a PWA on mobile and desktop." How can a model go from a 3-sentence prompt to 24 modular ES architecture files without derailing into chaos or hallucinated spaghetti code? The secret wasn't prompt engineering. It was Harness Engineering. Rather than dumping monolithic instructions into every conversation, my local setup is governed by a central harness core (harness-core). This harness provides continuous feedforward rules (Guides) and automated feedback loops (Sensors): Clean Architectural Boundaries: Single Responsibility Principle (SRP) per module, decoupling state, physics, rendering, input, and audio into event-driven ES m

IADevMobileGames
Interesse
dev.to

How I Build and Ship Ten Roblox Games With a Shared Engine and Local AI

Ten Roblox games, a web app and a short-video pipeline, all built and run by one person from a single PC. Text generation runs on Ollama with Qwen3 14B. Images come from Flux.1 through ComfyUI. All of it runs on my own machine, so nothing is billed per piece and publishing doesn't add a fee. The lineup is a mix of simulators and obbies. As of October 7th, 2026, all ten are verified and published on Roblox with a 16+ rating. Player progress is saved safely, and a purchase is confirmed only after the save has gone through. The web app is Kairo. You enter your skills, your time, your budget and your hardware, and it shows which AI-related ways of earning fit your situation. The starter package is a one-time €50. The same local setup produces short videos through a pipeline. Nothing goes out without a human approving it first, and I get one Telegram message a day. If the configuration file can't be read, say because of an invisible character or a BOM, everything stops and I get an alert. The alternative would be falling back to default values without saying anything, and that's exactly how a video ends up on the wrong account. Every text starts from a sheet of verified facts. If that sheet is out of date, nothing gets written. That's why the quality check only looks at the writing: the facts are settled before the first sentence exists. The local model writes the drafts and a stronger model reviews them. Fact-checking stays its own step instead of being folded into that review. Store a long ID as a number and it can get rounded. Change a single digit and the post goes to a different account, so every social account ID is kept as text. A piece of content can only be published through the account of the channel it was made for. If the voice or the language is wrong, the video doesn't go out. Rewards are capped, and so are login streaks. Missions, for example, pay out a maximum number of gems per day. The goal is to keep the game fair for players who don't spend. I prepare

GamesDevIA
Interesse
dev.to

Securing Server Events in FiveM Scripts: A Short Checklist

Most money and item exploits on FiveM servers come from the same mistake: a script trusts the client. A modder can trigger any network event with any arguments, so every server event has to assume the request might be fake. Here is a short checklist I run through on every script before it goes live. If a client event says "pay me 500", a modder will send "pay me 5000000". The server should decide the amount based on its own config. -- bad RegisterNetEvent('job:pay', function(amount) Bridge.AddMoney(source, amount) end) -- better (Bridge.AddMoney is a small wrapper around your QBCore or ESX money function) RegisterNetEvent('job:pay', function() local src = source Bridge.AddMoney(src, Config.Payout) end) Before rewarding anything, check on the server that the player has the right job, is near the right location (#(GetEntityCoords(GetPlayerPed(src)) - Config.Location) < 5.0) and has actually started the task. Store a timestamp per player and reject events that come in faster than a human could do the task. That stops looped triggers even if every other check passes. When a check fails, log the player identifier and event name. A few failed checks can be lag; hundreds per minute is someone injecting events. All of this is only possible to verify if you can open the code. With escrowed resources you have to trust the author got it right. Open source FiveM scripts let you check every event yourself before installing. xFiveM Shop publishes its QBCore, ESX and RedM resources unescrowed, and the setup steps are at xfivem.shop/help/installation. Decide amounts on the server, validate job, distance and state, add cooldowns, log failures, and only run code you can read.

SegurançaDevGames
Interesse
dev.to

I run a one-person game studio on Claude Code. Two months, 7 games, about $1 in ad revenue.

I've shipped 7 Android games in the last two months, and I didn't write most of the code. My day job is vulnerability assessment here in Japan. The games happen on the side, with one Claude Code session acting as a "producer" and fifteen subagents under it, each playing a department: game design, programming, QA, a playtest critic, release, ads, analytics, and so on. When I say "level 3 is too easy," the producer has the designer pick new numbers, the programmer put them in, QA measure clear rates with an auto-player, and the critic play it cold. I touch the build on a real phone at the end and say yes or no. I started with 10 departments on August 23, 2026. There are 15 now. This is the log of what worked, what blew up, and what I added. 7 games built. Some are live on Google Play, some are still in closed testing. The first time I ran the full loop, a coin-pusher game's economy was producing 3.15 million coins in a 10-minute simulation. Three rounds later the median was 10,000, inside the target band. When a subagent died mid-task on a usage limit, one message brought it back with its context intact. Nothing was lost. Ad revenue over the last 30 days: ¥152. That's roughly one US dollar. I'm leaving that last line in on purpose. The department setup made building fast. It did nothing for getting found. More on that at the end. At first I gave everything to one session, and two things kept going wrong. The first was that it graded its own homework. Ask the session that wrote the code to also write tests and you get tests that pass, because they were written to pass. The second was that nobody ever asked whether the game was fun. Right after writing code, Claude cares whether the code matches the spec. It doesn't care whether the level is boring. To get that question asked, I needed someone standing somewhere else. So I gave each point of view its own subagent. In Claude Code, one Markdown file in .claude/agents/ is one subagent, and it starts with a blank context ev

IADevMobileGames
Interesse
dev.to

State Bags vs Events in FiveM: Syncing Vehicle and Player State the Simple Way

When you write a FiveM script that needs every player to agree on something (a car is locked, a player is on duty, the weather is rainy), there are two common tools: network events and state bags. Both work, but they solve different problems. Picking the wrong one is why some scripts show a car locked for one player and unlocked for another. This post compares the two with small Lua examples. Events are messages. The server says "this just happened" and every client that receives it reacts. If a client wasn't connected, or the entity wasn't loaded on their side, they never hear about it. State bags are stored values attached to something: an entity, a player or the whole server. Clients that come into range later still see the current value, because they read the state rather than waiting for a message. A useful rule: if you are describing something that happened, use an event. If you are describing how something currently is, use a state bag. Entity(entity).state: attached to a networked entity such as a vehicle, ped or object. Entity state bags rely on OneSync, which most roleplay servers run. Player(source).state on the server, LocalPlayer.state on the client: attached to a player. GlobalState: server-wide values that the server writes and every client can read. Values should be simple data (strings, numbers, booleans and small tables). Functions can't be stored, and large tables that change often are a bad fit. -- server RegisterNetEvent('locks:toggle', function(netId) TriggerClientEvent('locks:apply', -1, netId, true) end) -- client RegisterNetEvent('locks:apply', function(netId, locked) local veh = NetToVeh(netId) if veh ~= 0 then SetVehicleDoorsLocked(veh, locked and 2 or 1) end end) This works until a player drives into the area after the event fired, or joins later. Their client never got the message, so the doors are open for them. Patching that with "request current state" callbacks means rebuilding state bags by hand. -- server RegisterNetEvent('locks:to

DevGames
Interesse
dev.to

I turned my terminal game into an isometric world (plain SVG + Vue, no game engine)

DockerLinux is my free browser game for learning Linux and Docker in a simulated terminal. Until this week it was one terminal and a list of levels. Now every level is a building on a map of islands: finish one in the terminal, and the path to the next lights up while Byte, our pixel penguin, walks there. No canvas, no game engine. It's SVG drawn by Vue, and a small pure-JavaScript module that decides what goes where. Here's how it works. The whole world is built once, deterministically, from a few numbers per island: export const ISLANDS = [ { id: 'linux', kind: 'linux', parts: [[9, 10, 5.6, 5.0]], levels: [1, 2, 3, 4, 5] }, { id: 'harbour', kind: 'harbour', parts: [[23, 8, 6.4, 5.6]], levels: [6, 7, 8, 9, 10, 11], incidents: true }, // … Sandbox Atoll, Linux Highlands, and two islands still in the fog ] Each island is one or more ellipses on a shared tile grid (centre and radii, in tiles). A tiny hash wobbles the edge so coastlines don't look like perfect ovals, but it's a hash of the tile coordinates, not Math.random(), so everyone gets exactly the same map and the tests can check it. Then: Every level stands on a chosen tile and gets a small building that matches its topic (a library for files, a crane for Compose, a vault for permissions…). Paths are routed between consecutive levels with a little Dijkstra on the grid. Land is cheap, turns cost a bit extra (so roads look straight), and the sea is expensive but allowed, which is where the wooden bridges come from. Free tiles get decoration: trees on Linux Island, shipping containers in the harbour, mountains in the Highlands. // grid → screen: the top-left of a 64 × 44 tile export const iso = (i, j) => ({ x: (i - j) * 32, y: (i + j) * 16 }) Draw in order of i + j (back to front) and the overlap takes care of itself. Panning and zooming never move an element. They change the SVG's viewBox: drag shifts it, the wheel or a pinch scales it around the pointer, and "fly to this island" animates it with requestAnimation

GamesDev
Interesse
dev.to

How to Add Social Features to a Mobile Game (Right)

Most teams add social features to mobile games the way they add art - as polish at the end. By then the game loop is locked, the data model is set, and social turns into a bolt-on friends list that nobody uses. What actually decides which social features fit is whether they serve progression or interrupt it. Social features work when they give players a reason to return that feels earned, not when they replicate what the platform already does. The choice between platform auth, custom friends lists, and async multiplayer changes what you can ship, what you own, and how much surface area you maintain after launch. The game's retention model comes first. If players come back because they want to beat their own score, friends lists won't fix that. If they come back because they built something with others, solo leaderboards feel empty. Start with what keeps a player engaged past day seven. That pattern tells you whether social belongs in the core loop or sits next to it. Three retention anchors that shape social: Skill mastery - leaderboards and ghost runs work because players want proof they improved Collection completion - guilds and trading fit when players chase rare items together Narrative progress - async co-op works when the story moves forward in shared sessions Platform authentication decides the rest. Custom social graphs give you control but add maintenance. Need cross-platform play? You'll need custom. If your players already use Game Center or Google Play Games, platform SDKs handle friends lists and achievements without backend work. Progression systems define the stakes. Time-gated content pairs with guilds because waiting together feels less punitive. Skill gates pair with leaderboards because rank means something when the challenge is equal. The wrong feature doesn't just waste build time. It trains players to expect a social layer you won't support long-term. Ask what progression gates already exist in your game. Players unlock new areas by completing

GamesMobile
Interesse
dev.to

I built a game that replaces doomscrolling with quizzes, hidden history, and brain puzzles

I kept catching myself doomscrolling, so I built something to replace it: CurioQuest, a free web game where curiosity earns you XP. 👉 Try it: https://curio-quest-phi.vercel.app/ 🏛️ Forgotten Wonders: stories about obscure history and nature mysteries (the Antikythera Mechanism, the Dancing Plague of 1518, Göbekli Tepe), each with a 3-question quiz 🔬 Science Fact Lab: rapid true/false facts with sourced explanations and accuracy streak multipliers 🧩 Brain Games: memory match, word scramble, math sprint, and a daily cipher puzzle 🌍 World & Tech Pulse: live news cards plus a 3-question daily quiz Everything feeds one progression system: XP, unlimited levels, daily streaks with a calendar, 12 badges, 32+ collectible museum relics, and two leaderboards (points and streaks). Stack: React + TypeScript, built with Google AI Studio and Gemini Live news: a server-side endpoint calls Gemini with Google Search grounding, so cards come with citations and source links Feedback: procedural sounds with the Web Audio API, haptics with navigator.vibrate, and confetti on rewards Auth: salted and hashed passwords with session tokens, plus guest mode that saves progress when you sign in Hardening: security headers, an in-memory rate limiter, and a request body size limit Streak logic is trickier than it looks. Missed days, same-day logins, and migrating old saved state all needed careful handling. I had fake multipliers on the leaderboard early on and replaced them with real per-day XP tracking, so the timeframes now come from actual activity. Gemini works well for current-events content only when it's grounded with search and sources. Does the XP and leveling feel motivating or too grindy? Which game mode or content category should come next? Anything confusing or broken? Thanks for reading!

GamesDev
Interesse
dev.to

How my Mac game turns a screenshot into a destructible level (no OCR)

At the end of September, Destroy Any Website by Hugo Duprez went viral: a little guy with a jetpack and a gun wrecks whatever page you're on. I wanted the same thing for the apps I actually stare at all day, like Slack, Jira, Xcode and my inbox. The catch is that on a web page the DOM knows where every letter is, while a Mac desktop gives you a bitmap and nothing else. So Destroy Any Desktop works from a single screenshot. When a match starts, it captures the display, works out which pixels are letters, buttons, icons or chart bars, and turns each of them into a piece of the level you can stand on and shoot out. Everything from the keyboard shortcut to the first explosion has to fit in two seconds, and the analysis gets 400 ms of that on a base M1. Why not OCR or the Accessibility API OCR (Apple's Vision does it well, on the device) gives you boxes for lines and words. I need every letter as its own breakable piece, plus the icons, avatars and buttons that OCR ignores, and when a letter gets knocked out its exact pixels have to disappear, not a box around it. The Accessibility API means one more permission prompt, varies a lot from app to app and still hands you frames rather than pixels. So the detector looks only at pixels: about 700 lines of Swift, no dependencies, running on the CPU. It outputs a list of elements (a kind, a rectangle and a pixel count for each) and a label map with one UInt32 per pixel saying which element it belongs to. Game logic sees only the list, and the renderer uses the label map to erase exactly the right pixels. A screen doesn't have one background color. A dark sidebar sits next to a white document, which sits next to a wallpaper photo. So the screen is cut into 24-point tiles, a bit taller than a line of text, and each tile's background is its most frequent color. To keep this cheap on a 7.7-megapixel frame, colors are bucketed to 4 bits per channel and counted in a flat array of 4,096 slots. A pixel is foreground if the sum of its R,

GamesDev
Interesse
Phoronix

The Amazing Work By Valve's Timur Kristóf On Improving Old AMD GPUs On Linux

Over the past year Timur Kristóf of Valve's Linux graphics driver team has made multiple very nice improvements to the AMDGPU kernel driver for enhancing support for old (GCN 1.0/1.1 era from a decade ago) graphics cards so that they can better handle Linux gaming and other tasks. This week in Toronto, Kristóf presented on this AMDGPU work that he initially began as a kernel driver development exercise after initially spending years in user-space focused on the Mesa 3D driver code...

LinuxInfraDevGames
Interesse
dev.to

We Built a 3D Game Where Your Voice Breaks Reality, As Our Hacker House Submission

"How much of the world are you willing to destroy to create the world you want?" Our team — Alt F4 — built this as our submission for Hacker House Goa 2026 in collaboration with Wispr Flow. And we decided to break every rule we set for ourselves. No game engine. No Unity. No Godot. Just React, TypeScript, Three.js, and a slightly deranged idea: What if your voice was the controller? This is the story of ECHO — a cel-shaded dark fantasy RPG where you speak commands into the browser and the world obeys. Soldiers retreat. Bridges collapse. Rain drowns out torches. And every edit to reality leaves a scar. The player wakes up in the Meadowlands with no memory — but they have a power called The Echo. Whatever they speak aloud manifests in the physical world. Say "Call the rain" → storm clouds roll in, torches extinguish, raiders break rank and flee. "Destroy the bridge" → the stone bridge shatters into rubble, cutting off the enemy vanguard. "Protect Rowan" → a shimmering Chronal Barrier envelops your miller friend, making him immune to blades. Cool, right? Here's the catch: Rewriting reality doesn't erase what happened. It fractures the world into alternate branches. Every command leaves a silent scar. Mira the Seer carries the agonizing memory of every erased timeline. The ancient Architect tried to build a world without sorrow — and cracked the foundations of reality. You're next. Here's a bird's eye view of the pipeline: Microphone Input │ ▼ Web Speech API (streaming) │ ▼ CommandParser ├── Local keyword fallback (zero-latency, offline) └── Gemini Flash API (structured JSON, natural language) │ ▼ Command Dispatcher ├── WorldState (entities, weather, physics) ├── CampaignSystem (missions, objectives, dialogue) └── TimelineSystem (snapshots, branches, rewind engine) No bloated middleware. No event bus spaghetti. Each layer is a Zustand store, and commands flow downward like water. The hardest design constraint I imposed on myself: the game must feel instant. If Gemini is

GamesDev
Interesse
dev.to

I Opened the Palworld Breeding Dataset Behind My Calculator

I built a Palworld breeding calculator, but the part I most want other developers to use is the data. The dataset behind the site is now public as JSON and CSV: https://www.palworldonline.net/data Disclosure: I built and maintain the calculator I am linking to here. It is free to use, does not require an account, and is not affiliated with Pocketpair or Garena. This post is about what is in the dataset, why I opened it, and the breeding-data bugs it is designed to prevent. There are four lightweight endpoints: All Pals JSON All Pals CSV Special combos JSON Special combos CSV The data page also links the full Paldeck profile JSON used by newer lookup features. The breeding exports cover Palworld 1.0 breeding data: 299 Pal entries 297 Pals that can enter a Breeding Farm 183 ordinary formula-pool entries 164 special combo rows CombiRank values parent-pair counts element types gender ratio breedable and farm-eligible flags gender fields for special combos The endpoints are served with: Access-Control-Allow-Origin: * That means you can fetch them from another browser-based tool without needing a proxy. type PalRow = { name: string; slug: string; combi_rank: number; rank_position: number; special_only: boolean; breedable: boolean; breeding_farm_eligible: boolean; parent_pair_count: number; elements: string[]; male_percent: number; icon_url: string | null; guide_url: string; }; type PalsResponse = { pals: PalRow[]; }; const data: PalsResponse = await fetch( "https://www.palworldonline.net/api/pals.json", ).then((response) => response.json()); const pals = data.pals; const targets = pals .filter((pal) => pal.breedable && pal.parent_pair_count > 0) .sort((a, b) => b.parent_pair_count - a.parent_pair_count) .slice(0, 10); console.table(targets.map((pal) => ({ name: pal.name, pairs: pal.parent_pair_count, rank: pal.combi_rank, }))); For spreadsheet work, use the CSV versions. The schema is intentionally flat. Because breeding tools tend to hide the assumptions that matter. If

GamesDev
Interesse
Rock Paper Shotgun

RimWorld switches engine from Unity to the devs' own, faster Waylith Engine, all apparently without breaking mods somehow

Ludeon Studios, developers of sci-fi colony construction sim RimWorld, have announced in a Steam update that the game will be moving over from Unity to the studio's own in-house Waylith Engine in its upcoming update 1.7. Ludeon states that the game will "look and play exactly the same", but performance will see an improvement of around 2-4x. Update 1.7 on Waylith promises "faster startup time, game load time with big mod lists, map generation, world generation, general ticks-per-second, and just about everything else", with an example given that "a modpack with 1500 mods went from 14 minutes to 6 minutes to load." While this would be a pretty major improvement in itself, the simple fact that community mods still work after an engine switch is what really impresses and slightly confounds me here. Ludeon notes that some may appear as "potentially unsupported" due to the version changing, but will still function just the same. Saves also can be carried over from 1.6 to 1.7, meaning there'll be no loss of progress just for updating. Read more

GamesDev
Interesse
dev.to

Unity Character Controller Tutorial: Create Smooth Player Movement with C#

If you're building a 3D Unity game, simply changing the player's Transform isn't always enough. For a more reliable character controller, Unity provides the CharacterController component. In this beginner-friendly tutorial, we'll use CharacterController to create a simple player controller with movement, collision detection, gravity, and jumping. CharacterController is a Unity component designed for controlling characters without using a Rigidbody for their basic movement. It can help your player: Move around the environment Collide with walls and other objects Stay on the ground Handle slopes and steps Move without passing through colliders It's commonly used for first-person and third-person player controllers. Note: CharacterController is not a physics Rigidbody. If you need your player to behave like a physics object, a Rigidbody may be a better choice. For testing, let's create a simple Capsule. In Unity: Hierarchy → Right-click → 3D Object → Capsule Rename it: Player Set its position to: X = 0 Y = 1 Z = 0 You can later replace the Capsule with your actual character model. Select your Player object. In the Inspector, select: Add Component → Character Controller Unity will add a CharacterController component. You should see properties such as: Center Radius Height Slope Limit Step Offset For a Capsule player, Unity's default values are usually a good starting point. Create a new C# script: PlayerController Open it and add: using UnityEngine; public class PlayerController : MonoBehaviour { public float moveSpeed = 5f; public float gravity = -9.81f; public float jumpHeight = 1.5f; private CharacterController controller; private Vector3 velocity; void Start() { controller = GetComponent (); } void Update() { float horizontal = Input.GetAxisRaw("Horizontal"); float vertical = Input.GetAxisRaw("Vertical"); Vector3 direction = new Vector3(horizontal, 0f, vertical); direction = direction.normalized; controller.Move(direction * moveSpeed * Time.deltaTime); if (controlle

GamesDev
Interesse
Phoronix

Valve Lands VK_AMD_anti_lag Support For AMD RADV Driver In Mesa 26.3

There is yet another feature to get excited about for this quarter's Mesa 26.3 release. Months in the making, the Valve-contributed VK_AMD_anti_lag support for the Radeon RADV driver was merged today for benefiting AMD Linux gamers as a nice improvement over the former implementation...

GamesDevLinux
Interesse
dev.to

Building a No-Framework Solitaire Portal: What I Learned Shipping 15 Card Games Without React

The constraint that shaped everything When I started building a solitaire portal, I gave myself one rule: if a feature does not need a server, it does not get one. No user sessions, no API layer, no database. Progress and statistics live in localStorage. That single constraint eliminated most of the traditional game-portal stack before I wrote a line of game code. The result is SolitairePicks — 15 classic card games, statically generated, playable in the browser with no install and no signup wall. Each game (Klondike, Spider, FreeCell, Pyramid, Golf, TriPeaks...) is a self-contained JavaScript file with the same small interface: deal a deck, render a tableau, validate moves, detect a win. No framework lifecycle to fight. When I fixed a Spider-specific edge case last week, the diff touched exactly one file. The tradeoff is honest: I re-implement drag-and-drop per game instead of reusing a component library. For card games the interaction surface is small enough that this costs less than maintaining a shared abstraction nobody else depends on. Win-rate tracking runs entirely client-side. Every finished hand appends a row to localStorage; the stats page reads it on load. Cross-session progress persists without a single network request. If a player clears their browser data, they lose their history — acceptable for a free portal, and it keeps the privacy story simple: nothing about gameplay ever leaves the device. Klondike — the Windows-era standard, draw-one and draw-three modes Spider — 1/2/4 suit difficulty tiers with per-tier win-rate tracking FreeCell, Pyramid, Golf and a dozen more — the "second coffee" tier If I started today I'd still skip React for the game logic — but I'd add a tiny shared module for the drag layer earlier. Rebuilding it six times was the tuition fee for learning where the real commonality lives. The portal lives at SolitairePicks. Feedback welcome, especially on game feel and difficulty tuning.

DevGames
Interesse
Rock Paper Shotgun

Valve have released the Steam Frame's CAD files, but there’s already a cottage industry of DIY wrist straps and lifesize skull stands

Last week, Valve chose their absolute most favourite announcement time – Friday evening, after we all go home – to release the Steam Frame’s CAD files to the world. In short, this lets anyone with a 3D printer or a lathe or an injection moulder (etcetera) take the VR headset’s official blueprints and use them to make cool stuff for it. Non-commercially, of course. Even before this great declassifying, though, it seems some lucky first-wave Frame recipients were already putting their own headsets on the line to prototype homemade gadgets and accessories. Some are sensibly practical. Some look inventive, if janky. At least one of them is a melting skull. All of them, I salute, as standard bearers of this open, occasionally unhinged thing we call PC gaming. Read more

Games
Interesse
dev.to

3 Days to Build, 14 Days to Debug: The 14 Bugs I Fixed in My Vibe-Coded Game (Google Play Closed Testing)

In part 1 I made a game in 3 days with zero coding experience, just by describing it to an AI. I was ready to hit "publish" when Google Play stopped me: a new personal developer account has to run a closed test with at least 12 testers for 14 days before it can launch. Fourteen days. More than four times longer than building the game. Instead of just waiting, I decided to play it every day. And I found out that without those 14 days, launch would have been a disaster. 3 days to build, 14 days to debug. This is the story of the 14 bugs I fixed, from building through the closed test to after launch. If you created a personal Google Play developer account after November 13, 2023, you have to run a closed test before your app can go to production. Testers: at least 12 people who opted in Duration: those testers stay opted in for 14 days Then: apply for production access from the Play Console dashboard Organization accounts don't have this requirement. I found about 20 testers through test-for-test swaps with other indie developers. A lot of solo developers treat these 14 days as dead time. For me, they were the last chance to catch bugs before launch. I counted the code in the version files still on my computer (translation files excluded). In the first two days I got 16 revisions from the AI, and the code doubled. While turning it into an Android app, about 2,250 lines were added, and the "this used to be a bug" notes in the code went from 8 to 17. From the first version to the latest, about 10,900 lines were added. That includes new features like Survival mode and Play with friends, not just bug fixes. I didn't write a single one of those lines. All I did was play and describe what I saw. The code passed 8,000 lines, and a Claude Pro plan was still enough all the way to launch. If you want to know how many tokens your own code is, paste it into the Claude token counter. At first I just said "find the bug and fix it." The AI would confidently say "Fixed!", but the bug

MobileDevGames
Interesse