diff --git a/style.tmpl b/css/style.css similarity index 96% rename from style.tmpl rename to css/style.css index c37fc79..8b81bb5 100644 --- a/style.tmpl +++ b/css/style.css @@ -69,7 +69,9 @@ a:hover { } img { + display: block; max-width: 500px; + margin: auto; } ul { @@ -120,9 +122,9 @@ ul { background-color: #ffffff; } -} - #menu ul{ + display: block; + margin: auto; float: center; text-align: center; list-style: none; diff --git a/images/20172802.png b/images/20172802.png new file mode 100644 index 0000000..d19279c Binary files /dev/null and b/images/20172802.png differ diff --git a/posts/Game Development Essentials - The Terminal b/posts/Game Development Essentials - The Terminal new file mode 100644 index 0000000..fb55041 --- /dev/null +++ b/posts/Game Development Essentials - The Terminal @@ -0,0 +1,10 @@ +
+ +

Around december I spoke with the butter-voiced-blessed Declan Dineen, for his podcast show Checkpoints.

+

Now that it's out there, and our conversation has been edited into a pleasant little bite, I thought, well, it's nice and all that I'm praising learning how to code, but it's important never to forget: Getting started is never as easy as an experienced person might make it sound.

+

Because of that, I thought I should introduce something that might seem very hard to grasp for newcomers in coding, yet really is quite fun to use: The Terminal!

+

The Terminal app, as it's called on mac, or CMD on Windows, or XTERM on Linux (if you're running Linux you probably know all of this already) is a text-based version of controlling you're computer. You can do all the usual stuff like open programs, copy files, shut down your computer, delete stuff or tweek your computer.

+

Using the terminal, is an interesting way of using your computer differently, for the same stuff. You navigate around the computer by writing cd [folder name], perhaps pressing tab to auto-complete, and cd .. or just .. to go back to a previous folder. Files can be opened by writing open [file name], or shortcuts can be made, so you can start Chrome by writing chr or something else.

+

The terminal is also the simplest way to create and execute your own programs. If you write a java program, you write javac [program name].java to make it a runnable program, and you run the program by writing java [program name] (no extension). Sometimes programs are even built so that you need the terminal to run them. Writing vim or vim [file name] opens a weird and hard-to-understand writing program called vim, and use it to edit text files.

+

The terminal even makes me think about game design in a different way. Games have evolved into what they are today, partly by shedding what they were years ago. They're definitely more accessible, but that doesn't guarantee they're always better. I think that it's important to tools that do things differently, in order to widen my perspective, and perhaps do design in a not necessarily more original way, but a less conventional way.

+

A weird tool like the terminal or a hard to understand text editor like Vim, a ways to understand, that the established can be done differently. This lesson is good for creative thinking, and the knowledge of using the terminal, is good for any aspiring game developer.

diff --git a/about.tmpl b/templates/about.tmpl similarity index 100% rename from about.tmpl rename to templates/about.tmpl diff --git a/blog.tmpl b/templates/blog.tmpl similarity index 93% rename from blog.tmpl rename to templates/blog.tmpl index f155efe..bcac748 100644 --- a/blog.tmpl +++ b/templates/blog.tmpl @@ -4,8 +4,7 @@ {{.Title}} - - +

{{.Title}}

diff --git a/blog_roll.tmpl b/templates/blog_roll.tmpl similarity index 100% rename from blog_roll.tmpl rename to templates/blog_roll.tmpl diff --git a/contact.tmpl b/templates/contact.tmpl similarity index 100% rename from contact.tmpl rename to templates/contact.tmpl diff --git a/past.tmpl b/templates/past.tmpl similarity index 100% rename from past.tmpl rename to templates/past.tmpl diff --git a/post.tmpl b/templates/post.tmpl similarity index 100% rename from post.tmpl rename to templates/post.tmpl diff --git a/websiteTemplate b/websiteTemplate index 20a6440..e8a6922 100755 Binary files a/websiteTemplate and b/websiteTemplate differ diff --git a/websiteTemplate.go b/websiteTemplate.go index 610062d..4e1d09f 100644 --- a/websiteTemplate.go +++ b/websiteTemplate.go @@ -18,7 +18,7 @@ type Page struct { var style = `` var name = "takunomi" var posts []Post -var templates = template.Must(template.ParseFiles("blog.tmpl", "about.tmpl", "past.tmpl", "contact.tmpl", "blog_roll.tmpl", "style.tmpl", "post.tmpl")) +var templates = template.Must(template.ParseFiles("templates/blog.tmpl", "templates/about.tmpl", "templates/past.tmpl", "templates/contact.tmpl", "templates/blog_roll.tmpl", "templates/post.tmpl")) func main() { @@ -29,6 +29,9 @@ func main() { http.HandleFunc("/contact/", contactHandler) http.HandleFunc("/post/", postHandler) http.HandleFunc("/", blogHandler) + http.Handle("/images/", http.StripPrefix("/images/", http.FileServer(http.Dir("images")))) + http.Handle("/css/", http.StripPrefix("/css/", http.FileServer(http.Dir("css")))) + posts = PostsCollection[:] if os.Args[1] == "local" {