This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
box-sizing: border-box; | |
font-family: monospace; | |
} | |
html, body { | |
height: 100vh; | |
padding: 0; | |
margin: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tyrian.* | |
import tyrian.Html.* | |
import org.scalajs.dom.document | |
import scala.scalajs.js.annotation.* | |
enum Msg: | |
case StartIndigo extends Msg | |
@JSExportTopLevel("TyrianApp") | |
object Main extends TyrianApp[Msg, TyrianModel]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,17 +1,15 @@ | |
import indigo._ | |
+import indigo.scenes._ | |
import scala.scalajs.js.annotation.JSExportTopLevel | |
@JSExportTopLevel("IndigoGame") | |
-object HelloIndigo extends IndigoSandbox[Unit, Model] { | |
+object HelloIndigo extends IndigoGame[Unit, Unit, Model, Unit] { | |
val magnification = 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import indigo._ | |
import indigo.scenes._ | |
import scala.scalajs.js.annotation.JSExportTopLevel | |
@JSExportTopLevel("IndigoGame") | |
object HelloIndigo extends IndigoGame[Unit, Unit, Model, Unit] { | |
val magnification = 3 | |
val config: GameConfig = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
changelog = log --merges --format=\"* %h %b\" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"default_line_ending": "unix", | |
"draw_minimap_border": true, | |
"font_size": 20.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"ignored_words": | |
[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo " $(tput setaf 1)" && | |
git branch --merged master | grep -v master | xargs --no-run-if-empty git branch -d && | |
echo " $(tput sgr0)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,2c1,3 | |
< #include <SDL/SDL.h> | |
< #include <SDL/SDL_image.h> | |
--- | |
> #include <SDL2/SDL.h> | |
> #include <SDL2/SDL_image.h> | |
> | |
8,9c9,11 | |
< SDL_Surface* Surf_Display; | |
< SDL_Surface* Surf_Image; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
namespace core | |
{ | |
class Game | |
{ | |
private: | |
SDL_Window* window; // Declare a pointer to an SDL_Window | |
SDL_Texture* Surf_Image; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL/SDL.h> | |
#include <SDL/SDL_image.h> | |
namespace core | |
{ | |
class Game | |
{ | |
private: | |
SDL_Surface* Surf_Display; | |
SDL_Surface* Surf_Image; | |
int x; |