'games' Category

  • How to show packed sprites with CSS and scale them

    July 11, 2022

    Example:     Reactjs component and calculations: import React from 'react'; type props = { width: number, height: number, frame: { x: number, y: number, w: number, h: number }, textureUrl: string, background?: string, }; class TextureImageResizeComponent extends React.Component<props> { render() { let { width, height, background, frame, textureUrl, } = this.props; if (width === […]

  • PHP Games – Solution to The Impossible Bet

    April 8, 2016

    /** * 100 people put a number in box. * every one must find his box within 50 tries */ $allTries = 100000; $usedTries = $allTries; $players = 50; $tries = 25; $settings = []; $people = []; for ($i = 0; $i < $players; $i++) { $settings[$i] = $i; $people[$i] = $i; } $mostPeopleWon […]


Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /home/c2kblate/sites/ivangospodinow.com/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048
 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org